|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.util.asn1.ASN1Encodable org.apache.geronimo.util.asn1.x509.DisplayText
public class DisplayText
DisplayText
class, used in
CertificatePolicies
X509 V3 extensions (in policy qualifiers).
It stores a string in a chosen encoding.
DisplayText ::= CHOICE { ia5String IA5String (SIZE (1..200)), visibleString VisibleString (SIZE (1..200)), bmpString BMPString (SIZE (1..200)), utf8String UTF8String (SIZE (1..200)) }
PolicyQualifierInfo
,
PolicyInformation
Field Summary | |
---|---|
static int |
CONTENT_TYPE_BMPSTRING
Constant corresponding to bmpString encoding. |
static int |
CONTENT_TYPE_IA5STRING
Constant corresponding to ia5String encoding. |
static int |
CONTENT_TYPE_UTF8STRING
Constant corresponding to utf8String encoding. |
static int |
CONTENT_TYPE_VISIBLESTRING
Constant corresponding to visibleString encoding. |
static int |
DISPLAY_TEXT_MAXIMUM_SIZE
Describe constant DISPLAY_TEXT_MAXIMUM_SIZE here. |
Constructor Summary | |
---|---|
DisplayText(DERString de)
Creates a new DisplayText instance. |
|
DisplayText(int type,
String text)
Creates a new DisplayText instance. |
|
DisplayText(String text)
Creates a new DisplayText instance. |
Method Summary | |
---|---|
static DisplayText |
getInstance(ASN1TaggedObject obj,
boolean explicit)
|
static DisplayText |
getInstance(Object de)
|
String |
getString()
Returns the stored String object. |
DERObject |
toASN1Object()
|
Methods inherited from class org.apache.geronimo.util.asn1.ASN1Encodable |
---|
equals, getDERObject, getEncoded, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CONTENT_TYPE_IA5STRING
public static final int CONTENT_TYPE_BMPSTRING
public static final int CONTENT_TYPE_UTF8STRING
public static final int CONTENT_TYPE_VISIBLESTRING
public static final int DISPLAY_TEXT_MAXIMUM_SIZE
DISPLAY_TEXT_MAXIMUM_SIZE
here.
Constructor Detail |
---|
public DisplayText(int type, String text)
DisplayText
instance.
type
- the desired encoding type for the text.text
- the text to store. Strings longer than 200
characters are truncated.public DisplayText(String text)
DisplayText
instance.
text
- the text to encapsulate. Strings longer than 200
characters are truncated.public DisplayText(DERString de)
DisplayText
instance.
Useful when reading back a DisplayText
class
from it's ASN1Encodable/DEREncodable form.
de
- a DEREncodable
instance.Method Detail |
---|
public static DisplayText getInstance(Object de)
public static DisplayText getInstance(ASN1TaggedObject obj, boolean explicit)
public DERObject toASN1Object()
toASN1Object
in class ASN1Encodable
public String getString()
String
object.
String
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |