Package io.anyline.nfc.bouncycastle.asn1
Class DERUniversalString
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable
,io.anyline.nfc.bouncycastle.asn1.ASN1String
,io.anyline.nfc.bouncycastle.util.Encodable
public class DERUniversalString extends ASN1UniversalString
DER UniversalString object - encodes UNICODE (ISO 10646) characters using 32-bit format. In Java we have no way of representing this directly so we rely on byte arrays to carry these.
-
-
Constructor Summary
Constructors Constructor Description DERUniversalString(Array<byte> string)
Basic constructor - byte encoded string.
-
Method Summary
Modifier and Type Method Description static DERUniversalString
getInstance(Object obj)
Return a Universal String from the passed in object. static DERUniversalString
getInstance(ASN1TaggedObject obj, boolean explicit)
Return a Universal String from a tagged object. -
Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1UniversalString
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
-
DERUniversalString
DERUniversalString(Array<byte> string)
Basic constructor - byte encoded string.- Parameters:
string
- the byte encoding of the string to be carried in the UniversalString object,
-
-
Method Detail
-
getInstance
static DERUniversalString getInstance(Object obj)
Return a Universal String from the passed in object.
- Parameters:
obj
- a DERUniversalString or an object that can be converted into one.- Returns:
a DERUniversalString instance, or null
-
getInstance
static DERUniversalString getInstance(ASN1TaggedObject obj, boolean explicit)
Return a Universal 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 DERUniversalString instance, or null
-
-
-
-