Constructs ASN.1 Bitstring type The constructor is provided for inheritance purposes when there is a need to create a custom ASN.1 Bitstring type. To get a default implementation it is recommended to use getInstance() method. super(TAG_BITSTRING);
super(TAG_BITSTRING);
in.readBitString(); if (in.isVerify) { return null; } return getDecodedObject(in);
out.encodeBitString();
Extracts BitString object from BER input stream.paramin - BER input streamreturnBitString object byte[] bytes = new byte[in.length - 1]; System.arraycopy(in.buffer, in.contentOffset + 1, bytes, 0, in.length - 1); return new BitString(bytes, in.buffer[in.contentOffset]);
byte[] bytes = new byte[in.length - 1]; System.arraycopy(in.buffer, in.contentOffset + 1, bytes, 0, in.length - 1); return new BitString(bytes, in.buffer[in.contentOffset]);
Returns ASN.1 Bitstring type default implementation The default implementation works with encoding that is represented as BitString object.returnASN.1 Bitstring type default implementationseeorg.apache.harmony.security.asn1.BitString return ASN1;
return ASN1;
out.length = ((BitString) out.content).bytes.length + 1;