Class ASN1BMPString

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

    
    public abstract class ASN1BMPString
    extends ASN1Primitive implements ASN1String
                        

    ASN.1 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
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static ASN1BMPString getInstance(Object obj) Return a BMP String from the given object.
      static ASN1BMPString getInstance(ASN1TaggedObject taggedObject, boolean explicit) Return a BMP String from a tagged object.
      final String getString() Return a Java String representation of this STRING type's content.
      String toString()
      final int hashCode()
      • 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

    • Method Detail

      • getInstance

         static ASN1BMPString getInstance(Object obj)

        Return a BMP String from the given object.

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

        an ASN1BMPString instance, or null.

      • getInstance

         static ASN1BMPString getInstance(ASN1TaggedObject taggedObject, boolean explicit)

        Return a BMP String from a tagged object.

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

        an ASN1BMPString instance.

      • getString

         final String getString()

        Return a Java String representation of this STRING type's content.

        Returns:

        a Java String representation of this STRING.