Class DERIA5String

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

    
    public class DERIA5String
    extends ASN1IA5String
                        

    DER IA5String object - this is a ISO 646 (ASCII) string encoding code points 0 to 127.

    Explicit character set escape sequences are not allowed.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      DERIA5String(String string) Basic constructor - without validation.
      DERIA5String(String string, boolean validate) Constructor with optional validation.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static DERIA5String getInstance(Object obj) Return an IA5 string from the passed in object
      static DERIA5String getInstance(ASN1TaggedObject obj, boolean explicit) Return an IA5 String from a tagged object.
      • Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1IA5String

        getInstance, getInstance, getOctets, getString, hashCode, isIA5String, 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

      • DERIA5String

        DERIA5String(String string)
        Basic constructor - without validation.
        Parameters:
        string - the base string to use..
      • DERIA5String

        DERIA5String(String string, boolean validate)
        Constructor with optional validation.
        Parameters:
        string - the base string to wrap.
        validate - whether or not to check the string.
    • Method Detail

      • getInstance

         static DERIA5String getInstance(Object obj)

        Return an IA5 string from the passed in object

        Parameters:
        obj - a DERIA5String or an object that can be converted into one.
        Returns:

        a DERIA5String instance, or null.

      • getInstance

         static DERIA5String getInstance(ASN1TaggedObject obj, boolean explicit)

        Return an IA5 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 DERIA5String instance, or null.