public class DERBMPString extends ASN1Primitive implements ASN1String
| Modifier and Type | Field and Description |
|---|---|
private char[] |
string |
| Constructor and Description |
|---|
DERBMPString(byte[] string)
basic constructor - byte encoded string.
|
DERBMPString(char[] string) |
DERBMPString(java.lang.String string)
basic constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
asn1Equals(ASN1Primitive o) |
(package private) void |
encode(ASN1OutputStream out) |
(package private) int |
encodedLength() |
static DERBMPString |
getInstance(ASN1TaggedObject obj,
boolean explicit)
return a BMP String from a tagged object.
|
static DERBMPString |
getInstance(java.lang.Object obj)
return a BMP String from the given object.
|
java.lang.String |
getString() |
int |
hashCode() |
(package private) boolean |
isConstructed() |
java.lang.String |
toString() |
equals, fromByteArray, toASN1Primitive, toDERObject, toDLObjectgetEncoded, getEncoded, hasEncodedTagValue, toASN1Objectprivate char[] string
DERBMPString(byte[] string)
string - the encoded BMP STRING to wrap.DERBMPString(char[] string)
public DERBMPString(java.lang.String string)
string - a String to wrap as a BMP STRING.public static DERBMPString getInstance(java.lang.Object obj)
obj - the object we want converted.java.lang.IllegalArgumentException - if the object cannot be converted.public static DERBMPString getInstance(ASN1TaggedObject obj, boolean explicit)
obj - the tagged object holding the object we wantexplicit - true if the object is meant to be explicitly
tagged false otherwise.java.lang.IllegalArgumentException - if the tagged object cannot
be converted.public java.lang.String getString()
getString in interface ASN1Stringpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class ASN1Primitiveprotected boolean asn1Equals(ASN1Primitive o)
asn1Equals in class ASN1Primitiveboolean isConstructed()
isConstructed in class ASN1Primitiveint encodedLength()
encodedLength in class ASN1Primitivevoid encode(ASN1OutputStream out) throws java.io.IOException
encode in class ASN1Primitivejava.io.IOException