com.lowagie.bc.asn1

Class ASN1OctetString

Implemented Interfaces:
DEREncodable, DERTags
Known Direct Subclasses:
DEROctetString

public abstract class ASN1OctetString
extends DERObject

Field Summary

(package private) byte[]
string

Fields inherited from interface com.lowagie.bc.asn1.DERTags

APPLICATION, BIT_STRING, BMP_STRING, BOOLEAN, CONSTRUCTED, ENUMERATED, EXTERNAL, GENERALIZED_TIME, GENERAL_STRING, GRAPHIC_STRING, IA5_STRING, INTEGER, NULL, NUMERIC_STRING, OBJECT_IDENTIFIER, OCTET_STRING, PRINTABLE_STRING, SEQUENCE, SEQUENCE_OF, SET, SET_OF, T61_STRING, TAGGED, UNIVERSAL_STRING, UTC_TIME, UTF8_STRING, VIDEOTEX_STRING, VISIBLE_STRING

Constructor Summary

ASN1OctetString(byte[] string)
ASN1OctetString(DEREncodable obj)

Method Summary

(package private) abstract void
encode(DEROutputStream out)
boolean
equals(Object o)
static ASN1OctetString
getInstance(Object obj)
return an Octet String from the given object.
static ASN1OctetString
getInstance(ASN1TaggedObject obj, boolean explicit)
return an Octet String from a tagged object.
byte[]
getOctets()
int
hashCode()

Methods inherited from class com.lowagie.bc.asn1.DERObject

encode, getDERObject

Field Details

string

(package private)  byte[] string

Constructor Details

ASN1OctetString

public ASN1OctetString(byte[] string)
Parameters:
string - the octets making up the octet string.

ASN1OctetString

public ASN1OctetString(DEREncodable obj)

Method Details

encode

(package private)  abstract void encode(DEROutputStream out)
            throws IOException
Overrides:
encode in interface DERObject

equals

public boolean equals(Object o)

getInstance

public static ASN1OctetString getInstance(Object obj)
return an Octet String from the given object.
Parameters:
obj - the object we want converted.

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.

getOctets

public byte[] getOctets()

hashCode

public int hashCode()