Package io.anyline.nfc.bouncycastle.asn1
Class DERUTF8String
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable,io.anyline.nfc.bouncycastle.asn1.ASN1String,io.anyline.nfc.bouncycastle.util.Encodable
public class DERUTF8String extends ASN1UTF8String
DER UTF8String object.
-
-
Constructor Summary
Constructors Constructor Description DERUTF8String(String string)Basic constructor
-
Method Summary
Modifier and Type Method Description static DERUTF8StringgetInstance(Object obj)Return an UTF8 string from the passed in object. static DERUTF8StringgetInstance(ASN1TaggedObject obj, boolean explicit)Return an UTF8 String from a tagged object. -
Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1UTF8String
getInstance, getInstance, 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
-
DERUTF8String
DERUTF8String(String string)
Basic constructor- Parameters:
string- the string to be carried in the UTF8String object,
-
-
Method Detail
-
getInstance
static DERUTF8String getInstance(Object obj)
Return an UTF8 string from the passed in object.
- Parameters:
obj- a DERUTF8String or an object that can be converted into one.- Returns:
a DERUTF8String instance, or null
-
getInstance
static DERUTF8String getInstance(ASN1TaggedObject obj, boolean explicit)
Return an UTF8 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 DERUTF8String instance, or null
-
-
-
-