This is an ASCII string of characters {0,1,2,3,4,5,6,7,8,9} + space.
See X.680 section 37.2.
Explicit character set escape sequences are not allowed.
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public | |
| public | DERNumericString(String
the base string to wrap. string, boolean whether or not to check the string. validate)Constructor with optional validation. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | asn1Equals(ASN1Primitive o)
Implements abstract org. |
| pack-priv void | |
| pack-priv int | encodedLength()
Implements abstract org. |
| public static DERNumericString | Returns: a DERNumericString instance, or nulla DERNumericString or an object that can be converted into one. obj)Return a Numeric string from the passed in object |
| public static DERNumericString | Returns: a DERNumericString instance, or null.the tagged object holding the object we want obj, boolean true if the object is meant to be explicitly
tagged false otherwise. explicit)Return an Numeric String from a tagged object. |
| public byte[] | |
| public String | getString()
Implements org. |
| public int | hashCode()
Implements abstract org. |
| pack-priv boolean | isConstructed()
Implements abstract org. |
| public static boolean | Returns: true if numeric, fale otherwise.string to validate. str)Return true if the string can be represented as a NumericString ('0'..'9', ' ') |
| public String |
| string | back to summary |
|---|---|
| private final byte[] string | |
| DERNumericString | back to summary |
|---|---|
| pack-priv DERNumericString(byte[] string) Basic constructor - with bytes. | |
| DERNumericString | back to summary |
|---|---|
| public DERNumericString(String string) Basic constructor - without validation.. | |
| DERNumericString | back to summary |
|---|---|
| public DERNumericString(String string, boolean validate) Constructor with optional validation.
| |
| asn1Equals | back to summary |
|---|---|
| pack-priv boolean asn1Equals(ASN1Primitive o) Implements abstract org. Doc from org. Equality (similarity) comparison for two ASN1Primitive objects. | |
| encode | back to summary |
|---|---|
| pack-priv void encode(ASN1OutputStream out) throws IOException Implements abstract org. | |
| encodedLength | back to summary |
|---|---|
| pack-priv int encodedLength() Implements abstract org. Doc from org. Return the length of the encoding this object will produce.
| |
| getInstance | back to summary |
|---|---|
| public static DERNumericString getInstance(Object obj) Return a Numeric string from the passed in object
| |
| getInstance | back to summary |
|---|---|
| public static DERNumericString getInstance(ASN1TaggedObject obj, boolean explicit) Return an Numeric String from a tagged object.
| |
| getOctets | back to summary |
|---|---|
| public byte[] getOctets() | |
| getString | back to summary |
|---|---|
| public String getString() Implements org. Doc from org. Return a Java String representation of this STRING type's content.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract org. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isConstructed | back to summary |
|---|---|
| pack-priv boolean isConstructed() Implements abstract org. Doc from org. Return true if this objected is a CONSTRUCTED one, false otherwise.
| |
| isNumericString | back to summary |
|---|---|
| public static boolean isNumericString(String str) Return true if the string can be represented as a NumericString ('0'..'9', ' ')
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |