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 |
|---|---|
| pack-priv final byte[] | |
| pack-priv static final ASN1UniversalType |
| Access | Constructor and Description |
|---|---|
| pack-priv | ASN1NumericString(String
the base string to wrap. string, boolean whether or not to check the string. validate)Constructor with optional validation. |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final boolean | asn1Equals(ASN1Primitive other)
Implements abstract org. Equality (similarity) comparison for two ASN1Primitive objects. |
| pack-priv static ASN1NumericString | |
| pack-priv final void | encode(ASN1OutputStream out, boolean withTag)
Implements abstract org.
|
| pack-priv final boolean | encodeConstructed()
Implements abstract org. Return true if this objected is a CONSTRUCTED one, false otherwise. |
| pack-priv final int | encodedLength(boolean withTag)
Implements abstract org.
|
| public static ASN1NumericString | Returns: an ASN1NumericString instance, or nullan ASN1NumericString or an object that can be converted into one. obj)Return a Numeric string from the passed in object |
| public static ASN1NumericString | Returns: an ASN1NumericString instance, or null.the tagged object holding the object we want taggedObject, boolean true if the object is meant to be explicitly tagged false
otherwise. explicit)Return an Numeric String from a tagged object. |
| public final byte[] | |
| public final String | getString()
Implements org. Return a Java String representation of this STRING type's content. |
| public final int | hashCode()
Implements abstract org. Returns a hash code value for this object. |
| public static boolean | Returns: true if numeric, false otherwise.string to validate. str)Return true if the string can be represented as a NumericString ('0'..'9', ' ') |
| pack-priv static boolean | |
| public String |
| contents | back to summary |
|---|---|
| pack-priv final byte[] contents | |
| TYPE | back to summary |
|---|---|
| pack-priv static final ASN1UniversalType TYPE | |
| ASN1NumericString | back to summary |
|---|---|
| pack-priv ASN1NumericString(String string, boolean validate) Constructor with optional validation.
| |
| ASN1NumericString | back to summary |
|---|---|
| pack-priv ASN1NumericString(byte[] contents, boolean clone) | |
| asn1Equals | back to summary |
|---|---|
| pack-priv final boolean asn1Equals(ASN1Primitive other) Implements abstract org. Doc from org. Equality (similarity) comparison for two ASN1Primitive objects. | |
| createPrimitive | back to summary |
|---|---|
| pack-priv static ASN1NumericString createPrimitive(byte[] contents) | |
| encode | back to summary |
|---|---|
| pack-priv final void encode(ASN1OutputStream out, boolean withTag) throws IOException Implements abstract org. | |
| encodeConstructed | back to summary |
|---|---|
| pack-priv final boolean encodeConstructed() Implements abstract org. Doc from org. Return true if this objected is a CONSTRUCTED one, false otherwise.
| |
| encodedLength | back to summary |
|---|---|
| pack-priv final int encodedLength(boolean withTag) Implements abstract org. | |
| getInstance | back to summary |
|---|---|
| public static ASN1NumericString getInstance(Object obj) Return a Numeric string from the passed in object
| |
| getInstance | back to summary |
|---|---|
| public static ASN1NumericString getInstance(ASN1TaggedObject taggedObject, boolean explicit) Return an Numeric String from a tagged object.
| |
| getOctets | back to summary |
|---|---|
| public final byte[] getOctets() | |
| getString | back to summary |
|---|---|
| public final String getString() Implements org. Doc from org. Return a Java String representation of this STRING type's content.
| |
| hashCode | back to summary |
|---|---|
| public final 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
| |
| isNumericString | back to summary |
|---|---|
| public static boolean isNumericString(String str) Return true if the string can be represented as a NumericString ('0'..'9', ' ')
| |
| isNumericString | back to summary |
|---|---|
| pack-priv static boolean isNumericString(byte[] contents) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |