Class DERTaggedObject
java.lang.Object
org.jolokia.jvmagent.security.asn1.DERTaggedObject
- All Implemented Interfaces:
DERObject
An implementation of tagged object according to X.690, 8.1.2 Identifier octets
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.jolokia.jvmagent.security.asn1.DERObject
DER_CONSTRUCTED_FLAG -
Constructor Summary
ConstructorsConstructorDescriptionDERTaggedObject(DERTaggedObject.TagClass tagClass, boolean primitive, int tagNumber, DERObject value) Tagged object is an encoded content of aDERObjectassociated with: Identifier octets - ASN.1 tag (class + number) of the type of the data value. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]booleanWhether the object is encoded as ASN.1 primitive (see 3.10 "primitive encoding").
-
Constructor Details
-
DERTaggedObject
public DERTaggedObject(DERTaggedObject.TagClass tagClass, boolean primitive, int tagNumber, DERObject value) Tagged object is an encoded content of aDERObjectassociated with:- Identifier octets - ASN.1 tag (class + number) of the type of the data value. This is one octet for tags with a number between 0 and 30 and more octets for tags with numbers greater than 30.
- Length octets - encode the length of the content octets which encode actual value.
- Parameters:
tagClass-primitive- specifies whether the type is primitive or constructed. Each type is specified explicitly as primitive or constructed (for example SEQUENCE is constructed, while BOOLEAN is primitive)tagNumber-value-
-
-
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
-