org.bouncycastle.asn1

Class DERT61String

public class DERT61String extends ASN1Object implements DERString

DER T61String (also the teletex string)
Constructor Summary
DERT61String(byte[] string)
basic constructor - with bytes.
DERT61String(String string)
basic constructor - with string.
Method Summary
static DERT61StringgetInstance(Object obj)
return a T61 string from the passed in object.
static DERT61StringgetInstance(ASN1TaggedObject obj, boolean explicit)
return an T61 String from a tagged object.
byte[]getOctets()
StringgetString()
inthashCode()
StringtoString()

Constructor Detail

DERT61String

public DERT61String(byte[] string)
basic constructor - with bytes.

DERT61String

public DERT61String(String string)
basic constructor - with string.

Method Detail

getInstance

public static DERT61String getInstance(Object obj)
return a T61 string from the passed in object.

Throws: IllegalArgumentException if the object cannot be converted.

getInstance

public static DERT61String getInstance(ASN1TaggedObject obj, boolean explicit)
return an T61 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.

getOctets

public byte[] getOctets()

getString

public String getString()

hashCode

public int hashCode()

toString

public String toString()