org.bouncycastle.asn1

Class ASN1OctetString

public abstract class ASN1OctetString extends ASN1Object implements ASN1OctetStringParser

Constructor Summary
ASN1OctetString(byte[] string)
ASN1OctetString(DEREncodable obj)
Method Summary
static ASN1OctetStringgetInstance(ASN1TaggedObject obj, boolean explicit)
return an Octet String from a tagged object.
static ASN1OctetStringgetInstance(Object obj)
return an Octet String from the given object.
byte[]getOctets()
InputStreamgetOctetStream()
inthashCode()
ASN1OctetStringParserparser()
StringtoString()

Constructor Detail

ASN1OctetString

public ASN1OctetString(byte[] string)

Parameters: string the octets making up the octet string.

ASN1OctetString

public ASN1OctetString(DEREncodable obj)

Method Detail

getInstance

public static ASN1OctetString getInstance(ASN1TaggedObject obj, boolean explicit)
return an Octet String from a tagged object.

Parameters: obj the tagged object holding the object we want. explicit true if the object is meant to be explicitly tagged false otherwise.

Throws: IllegalArgumentException if the tagged object cannot be converted.

getInstance

public static ASN1OctetString getInstance(Object obj)
return an Octet String from the given object.

Parameters: obj the object we want converted.

Throws: IllegalArgumentException if the object cannot be converted.

getOctets

public byte[] getOctets()

getOctetStream

public InputStream getOctetStream()

hashCode

public int hashCode()

parser

public ASN1OctetStringParser parser()

toString

public String toString()