Class ASN1BitString
java.lang.Object
com.hierynomus.asn1.types.ASN1Object<boolean[]>
com.hierynomus.asn1.types.string.ASN1String<boolean[]>
com.hierynomus.asn1.types.string.ASN1BitString
- All Implemented Interfaces:
ASN1Constructed, ASN1Primitive, Iterable<ASN1Object>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields inherited from class ASN1String
valueBytesFields inherited from class ASN1Object
tag -
Constructor Summary
ConstructorsConstructorDescriptionASN1BitString(boolean[] bits) ASN1BitString(byte[] bytes, int unusedBits) ASN1BitString(BitSet bitSet) Constructor for ASN.1 BIT STRING. -
Method Summary
Methods inherited from class ASN1String
getValueBytes, iteratorMethods inherited from class ASN1Object
equals, getTag, hashCode, toStringMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
ASN1BitString
public ASN1BitString(byte[] bytes, int unusedBits) -
ASN1BitString
public ASN1BitString(boolean[] bits) -
ASN1BitString
Constructor for ASN.1 BIT STRING. The passed in BitSet will be treated as having no unused bits.- Parameters:
bitSet-
-
-
Method Details
-
getValue
public boolean[] getValue()- Specified by:
getValuein classASN1Object<boolean[]>
-
valueString
- Overrides:
valueStringin classASN1Object<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:
trueif bit 'x' is set,falseotherwise.
-
length
public int length()- Specified by:
lengthin classASN1String<boolean[]>
-