public class DERGraphicString extends ASN1Primitive implements ASN1String
Constructor and Description |
---|
DERGraphicString(byte[] string)
basic constructor - with bytes.
|
Modifier and Type | Method and Description |
---|---|
static DERGraphicString |
getInstance(ASN1TaggedObject obj,
boolean explicit)
return a Graphic String from a tagged object.
|
static DERGraphicString |
getInstance(java.lang.Object obj)
return a Graphic String from the passed in object
|
byte[] |
getOctets() |
java.lang.String |
getString()
Return a Java String representation of this STRING type's content.
|
int |
hashCode() |
equals, fromByteArray, toASN1Primitive
getEncoded, getEncoded, hasEncodedTagValue
public DERGraphicString(byte[] string)
string
- the byte encoding of the characters making up the string.public static DERGraphicString getInstance(java.lang.Object obj)
obj
- a DERGraphicString or an object that can be converted into one.java.lang.IllegalArgumentException
- if the object cannot be converted.public static DERGraphicString 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 byte[] getOctets()
public int hashCode()
hashCode
in class ASN1Primitive
public java.lang.String getString()
ASN1String
getString
in interface ASN1String