Methods Summary |
---|
public final boolean | checkTag(int identifier)Tests provided identifier.
return true; //all tags are OK
|
public java.lang.Object | decode(BerInputStream in)
// only read content, doesn't check it
in.readContent();
if (in.isVerify) {
return null;
}
return getDecodedObject(in);
|
public void | encodeASN(BerOutputStream out)
out.encodeANY();
|
public void | encodeContent(BerOutputStream out)
out.encodeANY();
|
public java.lang.Object | getDecodedObject(BerInputStream in)Extracts array of bytes that represents full encoding from BER input
stream.
byte[] bytesEncoded = new byte[in.offset - in.tagOffset];
System.arraycopy(in.buffer, in.tagOffset, bytesEncoded, 0,
bytesEncoded.length);
return bytesEncoded;
|
public int | getEncodedLength(BerOutputStream out)
return out.length;
|
public static org.apache.harmony.security.asn1.ASN1Any | getInstance()Returns ASN.1 ANY type default implementation
The default implementation works with full encoding
that is represented as raw byte array.
return ASN1;
|
public void | setEncodingContent(BerOutputStream out)
out.length = ((byte[]) out.content).length;
|