Class DERNumericString

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

    
    public class DERNumericString
    extends ASN1NumericString
                        

    DER NumericString object - this is an ascii string of characters {0,1,2,3,4,5,6,7,8,9, }. ASN.1 NUMERIC-STRING object.

    This is an ASCII string of characters {0,1,2,3,4,5,6,7,8,9} + space.

    See X.680 section 37.2.

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

      Enum Constants 
      Enum Constant Description
    • Method Summary

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

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

      • DERNumericString

        DERNumericString(String string)
        Basic constructor - without validation..
      • DERNumericString

        DERNumericString(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 DERNumericString getInstance(Object obj)

        Return a Numeric string from the passed in object

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

        a DERNumericString instance, or null

      • getInstance

         static DERNumericString getInstance(ASN1TaggedObject obj, boolean explicit)

        Return an Numeric 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 DERNumericString instance, or null.