public class BEROctetString extends ASN1OctetString
| Modifier and Type | Field and Description |
|---|---|
private static int |
MAX_LENGTH |
private ASN1OctetString[] |
octs |
string| Constructor and Description |
|---|
BEROctetString(ASN1OctetString[] octs) |
BEROctetString(byte[] string) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(ASN1OutputStream out) |
(package private) int |
encodedLength() |
(package private) static BEROctetString |
fromSequence(ASN1Sequence seq) |
private Vector |
generateOcts() |
Enumeration |
getObjects()
return the DER octets that make up this string.
|
byte[] |
getOctets()
Return the content of the OCTET STRING as a byte array.
|
(package private) boolean |
isConstructed() |
private static byte[] |
toBytes(ASN1OctetString[] octs)
convert a vector of octet strings into a single byte string
|
asn1Equals, getInstance, getInstance, getLoadedObject, getOctetStream, hashCode, parser, toDERObject, toDLObject, toStringequals, fromByteArray, toASN1PrimitivegetEncoded, getEncoded, hasEncodedTagValue, toASN1Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waittoASN1Primitiveprivate static final int MAX_LENGTH
private ASN1OctetString[] octs
public BEROctetString(byte[] string)
string - the octets making up the octet string.public BEROctetString(ASN1OctetString[] octs)
private static byte[] toBytes(ASN1OctetString[] octs)
public byte[] getOctets()
ASN1OctetStringgetOctets in class ASN1OctetStringpublic Enumeration getObjects()
private Vector generateOcts()
boolean isConstructed()
isConstructed in class ASN1Primitiveint encodedLength() throws IOException
encodedLength in class ASN1PrimitiveIOExceptionpublic void encode(ASN1OutputStream out) throws IOException
encode in class ASN1OctetStringIOExceptionstatic BEROctetString fromSequence(ASN1Sequence seq)