org.mozilla.jss.asn1

Class OCTET_STRING

Implemented Interfaces:
ASN1Value

public class OCTET_STRING
extends java.lang.Object
implements ASN1Value

Nested Class Summary

static class
OCTET_STRING.Template

Field Summary

static Form
FORM
static Tag
TAG

Constructor Summary

OCTET_STRING(byte[] data)

Method Summary

void
encode(OutputStream ostream)
void
encode(Tag implicitTag, OutputStream ostream)
Tag
getTag()
static OCTET_STRING.Template
getTemplate()
byte[]
toByteArray()

Field Details

FORM

public static final Form FORM


TAG

public static final Tag TAG

Constructor Details

OCTET_STRING

public OCTET_STRING(byte[] data)

Method Details

encode

public void encode(OutputStream ostream)
            throws IOException
Specified by:
encode in interface ASN1Value


encode

public void encode(Tag implicitTag,
                   OutputStream ostream)
            throws IOException
Specified by:
encode in interface ASN1Value


getTag

public Tag getTag()
Specified by:
getTag in interface ASN1Value


getTemplate

public static OCTET_STRING.Template getTemplate()


toByteArray

public byte[] toByteArray()