Class DERBMPString

  • All Implemented Interfaces:
    io.anyline.nfc.bouncycastle.asn1.ASN1Encodable , io.anyline.nfc.bouncycastle.asn1.ASN1String , io.anyline.nfc.bouncycastle.util.Encodable

    
    public class DERBMPString
    extends ASN1BMPString
                        

    DER BMPString object encodes BMP (Basic Multilingual Plane) subset (aka UCS-2) of UNICODE (ISO 10646) characters in codepoints 0 to 65535.

    At ISO-10646:2011 the term "BMP" has been withdrawn, and replaced by term "UCS-2".

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      DERBMPString(String string) Basic constructor
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static DERBMPString getInstance(Object obj) Return a BMP String from the given object.
      static DERBMPString getInstance(ASN1TaggedObject obj, boolean explicit) Return a BMP String from a tagged object.
      • Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1BMPString

        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

      • DERBMPString

        DERBMPString(String string)
        Basic constructor
        Parameters:
        string - a String to wrap as a BMP STRING.
    • Method Detail

      • getInstance

         static DERBMPString getInstance(Object obj)

        Return a BMP String from the given object.

        Parameters:
        obj - the object we want converted.
        Returns:

        a DERBMPString instance, or null.

      • getInstance

         static DERBMPString getInstance(ASN1TaggedObject obj, boolean explicit)

        Return a BMP String from a tagged object.

        Parameters:
        obj - the tagged object holding the object we want
        explicit - true if the object is meant to be explicitly tagged false otherwise.
        Returns:

        a DERBMPString instance.