org.mozilla.jss.asn1

Interface ASN1Value

public interface ASN1Value

A value that can be decoded from BER and encoded to DER.

See Also: ASN1Template

Method Summary
voidencode(OutputStream ostream)
Write this value's DER encoding to an output stream using its own base tag.
voidencode(Tag implicitTag, OutputStream ostream)
Write this value's DER encoding to an output stream using an implicit tag.
TaggetTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.

Method Detail

encode

public void encode(OutputStream ostream)
Write this value's DER encoding to an output stream using its own base tag.

encode

public void encode(Tag implicitTag, OutputStream ostream)
Write this value's DER encoding to an output stream using an implicit tag.

getTag

public Tag getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.