public class DEROctetString extends ASN1OctetString
| Modifier and Type | Field and Description |
|---|---|
static DEROctetString |
EMPTY |
| Constructor and Description |
|---|
DEROctetString(ASN1Encodable obj)
Constructor from the encoding of an ASN.1 object.
|
DEROctetString(byte[] string)
Base constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static DEROctetString |
fromContents(byte[] contents) |
static DEROctetString |
fromContentsOptional(byte[] contents) |
static DEROctetString |
withContents(byte[] contents) |
static DEROctetString |
withContentsOptional(byte[] contents) |
getInstance, getInstance, getLoadedObject, getOctets, getOctetsLength, getOctetStream, getTagged, hashCode, parser, toStringencodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1PrimitivegetEncoded, getEncoded, hasEncodedTagValueclone, finalize, getClass, notify, notifyAll, wait, wait, waittoASN1Primitivepublic static final DEROctetString EMPTY
public DEROctetString(byte[] string)
string - the octets making up the octet string.public DEROctetString(ASN1Encodable obj) throws java.io.IOException
obj - the object to be encoded.java.io.IOExceptionpublic static DEROctetString fromContents(byte[] contents)
public static DEROctetString fromContentsOptional(byte[] contents)
public static DEROctetString withContents(byte[] contents)
public static DEROctetString withContentsOptional(byte[] contents)