Class ASN1GeneralString

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

    
    public abstract class ASN1GeneralString
    extends ASN1Primitive implements ASN1String
                        

    ASN.1 GENERAL-STRING data type.

    This is an 8-bit encoded ISO 646 (ASCII) character set with optional escapes to other character sets.

    • 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 ASN1GeneralString getInstance(Object obj) Return a GeneralString from the given object.
      static ASN1GeneralString getInstance(ASN1TaggedObject taggedObject, boolean explicit) Return a GeneralString from a tagged object.
      final String getString() Return a Java String representation of our contained String.
      String toString()
      final Array<byte> getOctets() Return a byte array representation of our contained String.
      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 ASN1GeneralString getInstance(Object obj)

        Return a GeneralString from the given object.

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

        an ASN1GeneralString instance, or null.

      • getInstance

         static ASN1GeneralString getInstance(ASN1TaggedObject taggedObject, boolean explicit)

        Return a GeneralString from a tagged object.

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

        an ASN1GeneralString instance.

      • getString

         final String getString()

        Return a Java String representation of our contained String.

        Returns:

        a Java String representing our contents.

      • getOctets

         final Array<byte> getOctets()

        Return a byte array representation of our contained String.

        Returns:

        a byte array representing our contents.