Package io.anyline.nfc.bouncycastle.asn1
Class DERVisibleString
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable
,io.anyline.nfc.bouncycastle.asn1.ASN1String
,io.anyline.nfc.bouncycastle.util.Encodable
public class DERVisibleString extends ASN1VisibleString
DER VisibleString object encoding ISO 646 (ASCII) character code points 32 to 126.
Explicit character set escape sequences are not allowed.
-
-
Constructor Summary
Constructors Constructor Description DERVisibleString(String string)
Basic constructor
-
Method Summary
Modifier and Type Method Description static DERVisibleString
getInstance(Object obj)
Return a Visible String from the passed in object. static DERVisibleString
getInstance(ASN1TaggedObject obj, boolean explicit)
Return a Visible String from a tagged object. -
Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1VisibleString
getInstance, getInstance, getOctets, getString, hashCode, toString
-
Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1Primitive
encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1Primitive
-
Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DERVisibleString
DERVisibleString(String string)
Basic constructor- Parameters:
string
- the string to be carried in the VisibleString object,
-
-
Method Detail
-
getInstance
static DERVisibleString getInstance(Object obj)
Return a Visible String from the passed in object.
- Parameters:
obj
- a DERVisibleString or an object that can be converted into one.- Returns:
a DERVisibleString instance, or null
-
getInstance
static DERVisibleString getInstance(ASN1TaggedObject obj, boolean explicit)
Return a Visible String from a tagged object.
- Parameters:
obj
- the tagged object holding the object we wantexplicit
- true if the object is meant to be explicitly tagged false otherwise.- Returns:
a DERVisibleString instance, or null
-
-
-
-