Creates a PrintableString or UTF8string DER value from a string
Creates a string type DER value from a string object @param stringTag the tag for the DER value to create @param value the string object to use for the DER value
Creates a DerValue from a tag and some DER-encoded data.
Get an ASN.1/DER encoded datum from a buffer. The entire buffer must hold exactly one datum, including its tag and length.
Get an ASN.1/DER encoded datum from part of a buffer. That part of the buffer must hold exactly one datum, including its tag and length.
Get an ASN1/DER encoded datum from an input stream. The stream may have additional data following the encoded datum. In case of indefinite length encoded datum, the input stream must hold only one datum.
Returns the name component as a Java string, regardless of its encoding restrictions (ASCII, T61, Printable, IA5, BMP, UTF8).
Returns the ASN.1 BMP (Unicode) STRING value as a Java string.
Returns an ASN.1 INTEGER value as a BigInt.
Returns an ASN.1 BOOLEAN
Helper routine to return all the bytes contained in the DerInputStream associated with this object.
Returns the ASN.1 GENERAL STRING value as a Java string.
Returns an ASN.1 IA5 (ASCII) STRING value
Returns an ASN.1 INTEGER value as an integer.
Returns an ASN.1 OCTET STRING
Returns an ASN.1 INTEGER value as a positive BigInt. This is just to deal with implementations that incorrectly encode some values as negative.
Returns an ASN.1 STRING value
Returns an ASN.1 T61 (Teletype) STRING value
Returns the ASN.1 UTF-8 STRING value as a Java string.
Returns an ASN.1 BIT STRING value that need not be byte-aligned.
Returns an ASN.1 BIT STRING value, with the tag assumed implicit based on the parameter. The bit string need not be byte-aligned.
Returns true if the tag class is APPLICATION.
Returns true iff the CONSTRUCTED bit is set in the type tag.
Returns true iff the CONSTRUCTED TAG matches the passed tag.
Returns true iff the CONTEXT SPECIFIC bit is set in the type tag. This is associated with the ASN.1 "DEFINED BY" syntax.
Returns true iff the CONTEXT SPECIFIC TAG matches the passed tag.
Returns true if the tag class is UNIVERSAL.
Get the length of the encoded value.
Returns true iff the other object is a DER value which is bitwise equal to this one.
Bitwise equality comparison. DER encoded values have a single encoding, so that bitwise equality of the encoded values is an efficient way to establish equivalence of the unencoded values.
Set the tag of the attribute. Commonly used to reset the tag value used for IMPLICIT encodings.
Returns a DER-encoded value, such that if it's passed to the DerValue constructor, a value equivalent to "this" is returned.
Returns a hashcode for this DerValue.
Returns a printable representation of the value.
Create the tag of the attribute.
Determine if a character is one of the permissible characters for PrintableString: A-Z, a-z, 0-9, space, apostrophe (39), left and right parentheses, plus sign, comma, hyphen, period, slash, colon, equals sign, and question mark.
The tag class types
The DER tag of the value; one of the tag_ constants.
Tag value indicating an ASN.1 "BMPString" value.
Tag value indicating an ASN.1 "BIT STRING" value.
Tag value indicating an ASN.1 "BOOLEAN" value.
Tag value including an ASN.1 "ENUMERATED" value
Tag value indicating an ASN.1 "GenerallString" value.
Tag value indicating an ASN.1 "GeneralizedTime" value.
Tag value including an ASCII string
Tag value indicating an ASN.1 "INTEGER" value.
Tag value indicating an ASN.1 "NULL" value.
Tag value indicating an ASN.1 "OBJECT IDENTIFIER" value.
Tag value indicating an ASN.1 "OCTET STRING" value.
Tag value including a "printable" string
Tag value indicating an ASN.1 "SEQUENCE" (zero to N elements, order is significant).
Tag value indicating an ASN.1 "SEQUENCE OF" (one to N elements, order is significant).
Tag value indicating an ASN.1 "SET" (zero to N members, order does not matter).
Tag value indicating an ASN.1 "SET OF" (one to N members, order does not matter).
Tag value including a "teletype" string
Tag value indicating an ASN.1 "UTF8String" value.
Tag value indicating an ASN.1 "UniversalString" value.
Tag value indicating an ASN.1 "UTCTime" value.
Represents a single DER-encoded value. DER encoding rules are a subset of the "Basic" Encoding Rules (BER), but they only support a single way ("Definite" encoding) to encode any given value.
<P>All DER-encoded data are triples <em>{type, length, data}</em>. This class represents such tagged values as they have been read (or constructed), and provides structured access to the encoded data.
<P>At this time, this class supports only a subset of the types of DER data encodings which are defined. That subset is sufficient for parsing most X.509 certificates, and working with selected additional formats (such as PKCS #10 certificate requests, and some kinds of PKCS #7 data).
A note with respect to T61/Teletex strings: From RFC 1617, section 4.1.3 and RFC 3280, section 4.1.2.4., we assume that this kind of string will contain ISO-8859-1 characters only.