Constructs ASN.1 Enumerated type The constructor is provided for inheritance purposes when there is a need to create a custom ASN.1 Enumerated type. To get a default implementation it is recommended to use getInstance() method. super(TAG_ENUM);
super(TAG_ENUM);
in.readEnumerated(); if (in.isVerify) { return null; } return getDecodedObject(in);
out.encodeInteger();
Extracts array of bytes from BER input stream.paramin - BER input streamreturnarray of bytes byte[] bytesEncoded = new byte[in.length]; System.arraycopy(in.buffer, in.contentOffset, bytesEncoded, 0, in.length); return bytesEncoded;
byte[] bytesEncoded = new byte[in.length]; System.arraycopy(in.buffer, in.contentOffset, bytesEncoded, 0, in.length); return bytesEncoded;
Returns ASN.1 Enumerated type default implementation The default implementation works with encoding that is represented as byte array.returnASN.1 Enumerated type default implementation return ASN1;
return ASN1;
out.length = ((byte[]) out.content).length;