org.mozilla.jss.SecretDecoderRing
Class Encoding
java.lang.Object
org.mozilla.jss.SecretDecoderRing.Encoding
- ASN1Value
public class Encoding
extends java.lang.Object
An ASN.1 class for encoding the SecretDecoderRing result.
This class is used internally by the SecretDecoderRing.
You need not use this class directly in order to use the SecretDecoderRing.
static class | Encoding.Template - An ASN.1 class for decoding the SecretDecoderRing result.
|
TAG
public static final Tag TAG
Encoding
public Encoding(byte[] keyID,
byte[] iv,
OBJECT_IDENTIFIER encOID,
byte[] ctext)
encode
public void encode(OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
its own base tag.
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
an implicit tag.
- encode in interface ASN1Value
getCiphertext
public byte[] getCiphertext()
getIv
public byte[] getIv()
getKeyID
public byte[] getKeyID()
getTag
public Tag getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
- getTag in interface ASN1Value