public class DERVisibleString extends ASN1Primitive implements ASN1String
Explicit character set escape sequences are not allowed.
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
string |
| Constructor and Description |
|---|
DERVisibleString(byte[] string)
Basic constructor - byte encoded string.
|
DERVisibleString(java.lang.String string)
Basic constructor
|
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
asn1Equals(ASN1Primitive o) |
(package private) void |
encode(ASN1OutputStream out) |
(package private) int |
encodedLength() |
static DERVisibleString |
getInstance(ASN1TaggedObject obj,
boolean explicit)
Return a Visible String from a tagged object.
|
static DERVisibleString |
getInstance(java.lang.Object obj)
Return a Visible String from the passed in object.
|
byte[] |
getOctets() |
java.lang.String |
getString() |
int |
hashCode() |
(package private) boolean |
isConstructed() |
java.lang.String |
toString() |
equals, fromByteArray, toASN1Primitive, toDERObject, toDLObjectgetEncoded, getEncoded, hasEncodedTagValue, toASN1Objectprivate byte[] string
DERVisibleString(byte[] string)
public DERVisibleString(java.lang.String string)
public static DERVisibleString getInstance(java.lang.Object obj)
obj - a DERVisibleString or an object that can be converted into one.java.lang.IllegalArgumentException - if the object cannot be converted.public static DERVisibleString 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 byte[] getOctets()
boolean isConstructed()
isConstructed in class ASN1Primitiveint encodedLength()
encodedLength in class ASN1Primitivevoid encode(ASN1OutputStream out) throws java.io.IOException
encode in class ASN1Primitivejava.io.IOExceptionboolean asn1Equals(ASN1Primitive o)
asn1Equals in class ASN1Primitivepublic int hashCode()
hashCode in class ASN1Primitive