Class ASN1BitString

    • Constructor Summary

      Constructors 
      Constructor Description
      ASN1BitString​(boolean[] bits)  
      ASN1BitString​(byte[] bytes, int unusedBits)  
      ASN1BitString​(java.util.BitSet bitSet)
      Constructor for ASN.1 BIT STRING.
    • Method Summary

      Modifier and Type Method Description
      boolean[] getValue()  
      boolean isSet​(int x)
      Check whether bit 'x' is set in the ASN.1 BIT_STRING
      int length()  
      protected java.lang.String valueString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • ASN1BitString

        public ASN1BitString​(byte[] bytes,
                             int unusedBits)
      • ASN1BitString

        public ASN1BitString​(boolean[] bits)
      • ASN1BitString

        public ASN1BitString​(java.util.BitSet bitSet)
        Constructor for ASN.1 BIT STRING. The passed in BitSet will be treated as having no unused bits.
        Parameters:
        bitSet -
    • Method Detail

      • getValue

        public boolean[] getValue()
        Specified by:
        getValue in class ASN1Object<boolean[]>
      • valueString

        protected java.lang.String valueString()
        Overrides:
        valueString in class ASN1Object<boolean[]>
      • isSet

        public boolean isSet​(int x)
        Check whether bit 'x' is set in the ASN.1 BIT_STRING
        Parameters:
        x - The bit to check
        Returns:
        true if bit 'x' is set, false otherwise.
      • length

        public int length()
        Specified by:
        length in class ASN1String<boolean[]>