Class DERGeneralString

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

    
    public class DERGeneralString
    extends ASN1GeneralString
                        

    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
      DERGeneralString(String string) Construct a GeneralString from the passed in String.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

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

        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

      • DERGeneralString

        DERGeneralString(String string)
        Construct a GeneralString from the passed in String.
        Parameters:
        string - the string to be contained in this object.
    • Method Detail

      • getInstance

         static DERGeneralString getInstance(Object obj)

        Return a GeneralString from the given object.

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

        a DERBMPString instance, or null.

      • getInstance

         static DERGeneralString getInstance(ASN1TaggedObject obj, boolean explicit)

        Return a GeneralString 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 DERGeneralString instance.