Package org.mozilla.jss.asn1
Class OCTET_STRING
java.lang.Object
org.mozilla.jss.asn1.OCTET_STRING
- All Implemented Interfaces:
ASN1Value
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) byte[]
static final Form
static final Tag
private static final OCTET_STRING.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.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static OCTET_STRING.Template
byte[]
-
Field Details
-
TAG
-
FORM
-
data
byte[] data -
templateInstance
-
-
Constructor Details
-
OCTET_STRING
public OCTET_STRING(byte[] data)
-
-
Method Details
-
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. -
toByteArray
public byte[] toByteArray() -
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
-