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 class
An ASN.1 class for decoding the SecretDecoderRing result. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
private OBJECT_IDENTIFIER
private byte[]
private byte[]
private SEQUENCE
static final Tag
private static final Encoding.Template
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.void
encode
(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:ASN1Value
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
implicitTag
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
getTemplate
-