Class DERInteger
java.lang.Object
org.jolokia.jvmagent.security.asn1.DERInteger
- All Implemented Interfaces:
DERObject
-
Field Summary
Fields inherited from interface org.jolokia.jvmagent.security.asn1.DERObject
DER_CONSTRUCTED_FLAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintasInt()byte[]booleanWhether the object is encoded as ASN.1 primitive (see 3.10 "primitive encoding").static DERIntegerparse(byte[] encoded, int length, int offset)
-
Constructor Details
-
DERInteger
public DERInteger(int value) -
DERInteger
-
-
Method Details
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceDERObject
-
isPrimitive
public boolean isPrimitive()Description copied from interface:DERObjectWhether the object is encoded as ASN.1 primitive (see 3.10 "primitive encoding"). If not primitive, the object is constructed, which means its contents octets are the complete encoding of one or more data values.- Specified by:
isPrimitivein interfaceDERObject- Returns:
trueif the object encodes its value directly
-
asInt
public int asInt() -
asBigInteger
-
parse
-