Class DERBitString

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

    
    public class DERBitString
    extends ASN1BitString
                        

    A BIT STRING with DER encoding - the first byte contains the count of padding bits included in the byte array's last byte.

    • 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 DERBitString convert(ASN1BitString bitString)
      static DERBitString getInstance(Object obj) return a Bit String from the passed in object
      static DERBitString getInstance(ASN1TaggedObject obj, boolean explicit) return a Bit String from a tagged object.
      • Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1BitString

        getBitStream, getBytes, getInstance, getInstance, getLoadedObject, getOctetStream, getOctets, getPadBits, getString, hashCode, intValue, parser, 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

      • DERBitString

        DERBitString(Array<byte> data)
      • DERBitString

        DERBitString(byte data, int padBits)
      • DERBitString

        DERBitString(Array<byte> data, int padBits)
      • DERBitString

        DERBitString(int value)
    • Method Detail

      • getInstance

         static DERBitString getInstance(Object obj)

        return a Bit String from the passed in object

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

        a DERBitString instance, or null.

      • getInstance

         static DERBitString getInstance(ASN1TaggedObject obj, boolean explicit)

        return a Bit 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 DERBitString instance, or null.