|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.ASN1Primitive
org.bouncycastle.asn1.ASN1PrintableString
ASN.1 PrintableString object.
X.680 section 37.4 defines PrintableString character codes as ASCII subset of following characters:
Latin capital letters: 'A' .. 'Z' Latin small letters: 'a' .. 'z' Digits: '0'..'9' Space Apostrophe: '\'' Left parenthesis: '(' Right parenthesis: ')' Plus sign: '+' Comma: ',' Hyphen-minus: '-' Full stop: '.' Solidus: '/' Colon: ':' Equals sign: '=' Question mark: '?'Explicit character set escape sequences are not allowed.
| Method Summary | |
static ASN1PrintableString |
getInstance(ASN1TaggedObject taggedObject,
boolean declaredExplicit)
Return a Printable String from a tagged object. |
static ASN1PrintableString |
getInstance(java.lang.Object obj)
Return a printable string from the passed in object. |
byte[] |
getOctets()
|
java.lang.String |
getString()
Return a Java String representation of this STRING type's content. |
static ASN1PrintableString |
getTagged(ASN1TaggedObject taggedObject,
boolean declaredExplicit)
|
int |
hashCode()
|
static boolean |
isPrintableString(java.lang.String str)
return true if the passed in String can be represented without loss as a PrintableString, false otherwise. |
java.lang.String |
toString()
|
| Methods inherited from class org.bouncycastle.asn1.ASN1Primitive |
encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1Primitive |
| Methods inherited from class org.bouncycastle.asn1.ASN1Object |
getEncoded, getEncoded, hasEncodedTagValue |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static ASN1PrintableString getInstance(java.lang.Object obj)
obj - an ASN1PrintableString or an object that can be converted into one.
java.lang.IllegalArgumentException - if the object cannot be converted.
public static ASN1PrintableString getInstance(ASN1TaggedObject taggedObject,
boolean declaredExplicit)
taggedObject - the tagged object holding the object we wantdeclaredExplicit - true if the object is meant to be explicitly
tagged false otherwise.
java.lang.IllegalArgumentException - if the tagged object cannot
be converted.
public static ASN1PrintableString getTagged(ASN1TaggedObject taggedObject,
boolean declaredExplicit)
public final java.lang.String getString()
ASN1String
getString in interface ASN1Stringpublic final byte[] getOctets()
public final int hashCode()
hashCode in class ASN1Primitivepublic java.lang.String toString()
public static boolean isPrintableString(java.lang.String str)
|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||