Class Encoding
java.lang.Object
org.mozilla.jss.SecretDecoderRing.Encoding
- All Implemented Interfaces:
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
Nested ClassesModifier and TypeClassDescriptionstatic classAn ASN.1 class for decoding the SecretDecoderRing result. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]private OBJECT_IDENTIFIERprivate byte[]private byte[]private SEQUENCEstatic final Tagprivate static final Encoding.Template -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(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.byte[]byte[]getIv()byte[]getKeyID()getTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static Encoding.Template
-
Field Details
-
seq
-
iv
private byte[] iv -
encOID
-
ctext
private byte[] ctext -
keyID
private byte[] keyID -
TAG
-
templateInstance
-
-
Constructor Details
-
Encoding
-
-
Method Details
-
getKeyID
public byte[] getKeyID() -
getIv
public byte[] getIv() -
getEncryptionOID
-
getCiphertext
public byte[] getCiphertext() -
getTag
Description copied from interface:ASN1ValueReturns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using its own base tag.- Specified by:
encodein interfaceASN1Value- Parameters:
ostream- Output stream.- Throws:
IOException- If an error occurred.
-
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using an implicit tag.- Specified by:
encodein interfaceASN1Value- Parameters:
implicitTag- Implicit tag.ostream- Output stream.- Throws:
IOException- If an error occurred.
-
getTemplate
-