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 java.util.Vector |
generateOcts() |
java.util.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, toString
equals, fromByteArray, toASN1Primitive
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toASN1Primitive
private 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()
ASN1OctetString
getOctets
in class ASN1OctetString
public java.util.Enumeration getObjects()
private java.util.Vector generateOcts()
boolean isConstructed()
isConstructed
in class ASN1Primitive
int encodedLength() throws java.io.IOException
encodedLength
in class ASN1Primitive
java.io.IOException
public void encode(ASN1OutputStream out) throws java.io.IOException
encode
in class ASN1OctetString
java.io.IOException
static BEROctetString fromSequence(ASN1Sequence seq)