X.680 section 37.4 defines PrintableString character codes as ASCII subset of following characters:
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 | ASN1PrintableString(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 ASN1PrintableString | |
| 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 ASN1PrintableString | Returns: an ASN1PrintableString instance, or null.an ASN1PrintableString or an object that can be converted into one. obj)Return a printable string from the passed in object. |
| public static ASN1PrintableString | Returns: an ASN1PrintableString 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 a Printable 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 in printable set, false otherwise.return true if the passed in String can be represented without loss as a PrintableString, false otherwise. |
| public String |
| contents | back to summary |
|---|---|
| pack-priv final byte[] contents | |
| TYPE | back to summary |
|---|---|
| pack-priv static final ASN1UniversalType TYPE | |
| ASN1PrintableString | back to summary |
|---|---|
| pack-priv ASN1PrintableString(String string, boolean validate) Constructor with optional validation.
| |
| ASN1PrintableString | back to summary |
|---|---|
| pack-priv ASN1PrintableString(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 ASN1PrintableString 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 ASN1PrintableString getInstance(Object obj) Return a printable string from the passed in object.
| |
| getInstance | back to summary |
|---|---|
| public static ASN1PrintableString getInstance(ASN1TaggedObject taggedObject, boolean explicit) Return a Printable 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
| |
| isPrintableString | back to summary |
|---|---|
| public static boolean isPrintableString(String str) return true if the passed in String can be represented without loss as a PrintableString, false otherwise.
| |
| 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-
| |