Class DERTaggedObject

java.lang.Object
org.jolokia.jvmagent.security.asn1.DERTaggedObject
All Implemented Interfaces:
DERObject

public class DERTaggedObject extends Object implements DERObject
An implementation of tagged object according to X.690, 8.1.2 Identifier octets
  • Constructor Details

    • DERTaggedObject

      public DERTaggedObject(DERTaggedObject.TagClass tagClass, boolean primitive, int tagNumber, DERObject value)
      Tagged object is an encoded content of a DERObject associated 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:
      getEncoded in interface DERObject
    • isPrimitive

      public boolean isPrimitive()
      Description copied from interface: DERObject
      Whether 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:
      isPrimitive in interface DERObject
      Returns:
      true if the object encodes its value directly