Methods Summary |
---|
public final boolean | checkTag(int identifier)Tests provided identifier.
return this.id == identifier || this.constrId == identifier;
|
public java.lang.Object | decode(BerInputStream in)
in.readString(this);
if (in.isVerify) {
return null;
}
return getDecodedObject(in);
|
public void | encodeASN(BerOutputStream out)
out.encodeTag(id);
encodeContent(out);
|
public void | encodeContent(BerOutputStream out)
out.encodeString();
|
public java.lang.Object | getDecodedObject(BerInputStream in)Extracts String object from BER input stream.
return new String(in.buffer, in.contentOffset, in.length);
|
public void | setEncodingContent(BerOutputStream out)
byte[] bytes = ((String) out.content).getBytes();
out.content = bytes;
out.length = bytes.length;
|