org.mozilla.jss.SecretDecoderRing

Class Encoding

public class Encoding extends Object implements ASN1Value

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.
Nested Class Summary
static classEncoding.Template
An ASN.1 class for decoding the SecretDecoderRing result.
Field Summary
static TagTAG
Constructor Summary
Encoding(byte[] keyID, byte[] iv, OBJECT_IDENTIFIER encOID, byte[] ctext)
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicitTag, OutputStream ostream)
byte[]getCiphertext()
OBJECT_IDENTIFIERgetEncryptionOID()
byte[]getIv()
byte[]getKeyID()
TaggetTag()
static Encoding.TemplategetTemplate()

Field Detail

TAG

public static final Tag TAG

Constructor Detail

Encoding

public Encoding(byte[] keyID, byte[] iv, OBJECT_IDENTIFIER encOID, byte[] ctext)

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicitTag, OutputStream ostream)

getCiphertext

public byte[] getCiphertext()

getEncryptionOID

public OBJECT_IDENTIFIER getEncryptionOID()

getIv

public byte[] getIv()

getKeyID

public byte[] getKeyID()

getTag

public Tag getTag()

getTemplate

public static Encoding.Template getTemplate()