Field Summary |
|
final static int | ANY_STRING_TYPE ANY_STRING type used as a place holder. |
final static int | BITSTRING_TYPE ASN BIT STRING type used in certificate parsing. |
final static int | BMPSTR_TYPE ASN BIT STRING type used in certificate parsing. |
final static int | BOOLEAN_TYPE ASN BOOLEAN type used in certificate parsing. |
final static int | CONSTRUCTED ASN constructed flag used in types (0x20). |
final static int | CONTEXT ASN context specific flag used in types (0x80). |
final static int | ENUMERATED_TYPE ASN ENUMERATED type. |
final static int | EXPLICIT ASN constructed flag used in types (0x20). |
final static int | EXTENSIONS_TYPE Context specific explicit type for certificate extensions. |
final static int | GEN_TIME_TYPE ASN Generalized time type used in certificate parsing. |
final static int | IA5STR_TYPE ASN IA5 STRING type used in certificate parsing. |
final static int | INTEGER_TYPE ASN INTEGER type used in certificate parsing. |
final static int | NULL_TYPE ASN NULL type used in certificate parsing. |
final static int | OCTETSTR_TYPE ASN OCTET STRING type used in certificate parsing. |
final static int | OID_TYPE ASN OBJECT ID type used in certificate parsing. |
final static int | PRINTSTR_TYPE ASN PrintableString type used in certificate parsing. |
final static int | SEQUENCE_TYPE ASN SEQUENCE type used in certificate parsing. |
final static int | SET_TYPE ASN SET type used in certificate parsing. |
final static int | TELETEXSTR_TYPE ASN TELETEX STRING type used in certificate parsing. |
final static int | UCT_TIME_TYPE |
final static int | UNIVSTR_TYPE ASN UniversalString type used in certificate parsing. |
final static int | UTF8STR_TYPE ASN UTF8String type used in certificate parsing. |
final static int | VERSION_TYPE Context specific explicit type for certificate version. |
TLV | child Non-null for constructed types, the first child TLV. |
byte[] | data Buffer that contains the DER encoded TLV. |
int | length Number of bytes that make up the value. |
TLV | next The next TLV in the parent sequence. |
int | type Raw DER type. |
int | valueOffset Offset of the value. |
Method Summary |
|
public TLV | copy() Creates a copy of this TLV. |
public static TLV | createInteger(byte[] data) Creates new integer. |
public static TLV | createInteger(long value) Creates new integer. |
public static TLV | createOID(String oid) Creates new OID object.
Parameters: oid - string representation of OID. |
public static TLV | createOctetString(byte[] data) Creates new octet string. |
public static TLV | createSequence() Creates new sequence. |
public static TLV | createUTCTime(Calendar time) Creates UTCTime TLV structure for given date. |
public static TLV | createUTF8String(String s) Creates new 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 String | getOID() Returns string representation of OID represented by this TLV. |
public byte[] | getValue() Returns the value field of this TLV. |
public int | getValue(byte[] buffer, int offset) Places the value field of this TLV into the buffer. |
public void | print() Print the a TLV structure, recursing down for constructed types. |
public void | print(PrintStream out) Print the a TLV structure, recursing down for constructed types. |
public TLV | setChild(TLV child) Sets the child DER entry for this object. |
public TLV | setNext(TLV next) Sets the next DER entry for this object. |
public TLV | setTag(int tag) Sets the (implicit) tag value for this object. |