Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class DERPrintableString

extends ASN1PrintableString
Class Inheritance

DER PrintableString object.

X.680 section 37.4 defines PrintableString character codes as ASCII subset of following characters:

Explicit character set escape sequences are not allowed.

Field Summary

Inherited from org.bouncycastle.asn1.ASN1PrintableString:
contentsTYPE

Constructor Summary

AccessConstructor and Description
public
DERPrintableString(String string)

Basic constructor - this does not validate the string

public
DERPrintableString(String
the base string to wrap.
string
,
boolean
whether or not to check the string.
validate
)

Constructor with optional validation.

pack-priv
DERPrintableString(byte[] contents, boolean clone)

Method Summary

Inherited from org.bouncycastle.asn1.ASN1PrintableString:
asn1EqualscreatePrimitiveencodeencodeConstructedencodedLengthgetInstancegetInstancegetOctetsgetStringhashCodeisPrintableStringtoString

Constructor Detail

DERPrintableStringback to summary
public DERPrintableString(String string)

Basic constructor - this does not validate the string

DERPrintableStringback to summary
public DERPrintableString(String string, boolean validate)

Constructor with optional validation.

Parameters
string:String

the base string to wrap.

validate:boolean

whether or not to check the string.

Exceptions
IllegalArgumentException:
if validate is true and the string contains characters that should not be in a PrintableString.
DERPrintableStringback to summary
pack-priv DERPrintableString(byte[] contents, boolean clone)