Field Summary |
|
final public static int | ANY_STRING_TYPE ANY_STRING type used as a place holder. |
final public static int | BITSTRING_TYPE ASN BIT STRING type used in certificate parsing. |
final public static int | BMPSTR_TYPE ASN BIT STRING type used in certificate parsing. |
final public static int | BOOLEAN_TYPE ASN BOOLEAN type used in certificate parsing. |
final public static int | CONSTRUCTED ASN constructed flag used in types (0x20). |
final public static int | CONTEXT ASN context specific flag used in types (0x80). |
final public static int | ENUMERATED_TYPE ASN ENUMERATED type. |
final public static int | EXPLICIT ASN constructed flag used in types (0x20). |
final public static int | EXTENSIONS_TYPE Context specific explicit type for certificate extensions. |
final public static int | GEN_TIME_TYPE ASN Generalized time type used in certificate parsing. |
final public static int | IA5STR_TYPE ASN IA5 STRING type used in certificate parsing. |
final public static int | INTEGER_TYPE ASN INTEGER type used in certificate parsing. |
final public static int | NULL_TYPE ASN NULL type used in certificate parsing. |
final public static int | OCTETSTR_TYPE ASN OCTET STRING type used in certificate parsing. |
final public static int | OID_TYPE ASN OBJECT ID type used in certificate parsing. |
final public static int | PRINTSTR_TYPE ASN PrintableString type used in certificate parsing. |
final public static int | SEQUENCE_TYPE ASN SEQUENCE type used in certificate parsing. |
final public static int | SET_TYPE ASN SET type used in certificate parsing. |
final public static int | TELETEXSTR_TYPE ASN TELETEX STRING type used in certificate parsing. |
final public static int | UCT_TIME_TYPE ASN UCT time type used in certificate parsing. |
final public static int | UNIVSTR_TYPE ASN UniversalString type used in certificate parsing. |
final public static int | UTF8STR_TYPE ASN UTF8String type used in certificate parsing. |
final public static int | VERSION_TYPE Context specific explicit type for certificate version. |
public TLV | child Non-null for constructed types, the first child TLV. |
public byte[] | data Buffer that contains the DER encoded TLV. |
public int | length Number of bytes that make up the value. |
public TLV | next The next TLV in the parent sequence. |
public int | type Raw DER type. |
public int | valueOffset Offset of the value. |
Method Summary |
|
public boolean | checkFlag(int index) Returns the value of flag stored in bitsring value. |
public TLV | copy() Creates a copy of this TLV. |
public static TLV | createIA5String(String s) Creates TLV object of type IA5 string. |
public static TLV | createInteger(byte[] data) Creates TLV object of type integer. |
public static TLV | createInteger(long value) Creates TLV object of type integer. |
public static TLV | createOID(String oid) Creates TLV object of type OID. |
public static TLV | createOctetString(byte[] data) Creates TLV object of type octet string. |
public static TLV | createSequence() Creates TLV object of type sequence. |
public static TLV | createUTCTime(Calendar time) Creates UTCTime TLV structure for given date. |
public static TLV | createUTF8String(String s) Creates TLV object of type UTF8 string. |
public byte[] | getDERData() Returns DER encoded TLV. |
public int | getDERData(byte[] buffer, int offset) Returns DER encoded TLV. |
public int | getDERSize() Returns the size of DER encoded TLV. |
public int | getEnumerated() Returns the value of enumerated type. |
public int | getId() Returns octet string value as integer. |
public int | getInteger() Returns integer value. |
public Calendar | getTime() Returns time represented by this TLV. |
public String | getUTF8() Returns string represented by this UTF8 string. |
public byte[] | getValue() Returns the value field of this TLV. |
public boolean | isString() Returns true if this value represents string. |
public boolean | match(TLV t) Compares this object with other TLV object. |
public TLV | setChild(TLV child) Sets child element for this TLV object. |
public TLV | setNext(TLV next) Sets next element for this TLV object. |
public TLV | setTag(int tag) Sets the (implicit) tag value for this object. |
public TLV | skipOptional(int type) Skips optional element of DER structure with given tag. |
public boolean | valueEquals(byte[] data) Compares the value of this TLV with given value. |