Class ASN1Integer
java.lang.Object
de.christofreichardt.asn1.ASN1
de.christofreichardt.asn1.ASN1Integer
- All Implemented Interfaces:
de.christofreichardt.diagnosis.Traceable
ASN.1 helper class representing an arbitrary INTEGER
- Author:
- Christof Reichardt
-
Constructor Summary
ConstructorsConstructorDescriptionASN1Integer(byte[] bytes) Creates an ASN.1 INTEGER.ASN1Integer(byte[] bytes, int from) Creates an ASN.1 INTEGER. -
Method Summary
Modifier and TypeMethodDescriptionstatic ASN1Integerencode(byte[] bytes) Creates an ASN.1 INTEGER by augmenting the given content octets with identifier and length octets.toString()Methods inherited from class ASN1
actualBytes, encoded, getCurrentTracer, isShortForm
-
Constructor Details
-
ASN1Integer
public ASN1Integer(byte[] bytes) Creates an ASN.1 INTEGER.- Parameters:
bytes- the DER encoded bytes representing an ASN.1 INTEGER.
-
ASN1Integer
public ASN1Integer(byte[] bytes, int from) Creates an ASN.1 INTEGER.- Parameters:
bytes- the DER encoded bytes representing an ASN.1 INTEGER.from- starting position in the given byte array.
-
-
Method Details
-
toString
-
encode
Creates an ASN.1 INTEGER by augmenting the given content octets with identifier and length octets.- Parameters:
bytes- the content octets that is the actual value.- Returns:
- a proper ASN.1 INTEGER.
-