public class

DERIA5String

extends ASN1Object
implements DERString
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.DERObject
       ↳ org.bouncycastle.asn1.ASN1Object
         ↳ org.bouncycastle.asn1.DERIA5String
Known Direct Subclasses

Class Overview

DER IA5String object - this is an ascii string.

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
From interface org.bouncycastle.asn1.DERTags
Public Constructors
DERIA5String(byte[] string)
basic constructor - with bytes.
DERIA5String(String string)
basic constructor - without validation.
DERIA5String(String string, boolean validate)
Constructor with optional validation.
Public Methods
static DERIA5String getInstance(ASN1TaggedObject obj, boolean explicit)
return an IA5 String from a tagged object.
static DERIA5String getInstance(Object obj)
return a IA5 string from the passed in object
byte[] getOctets()
String getString()
int hashCode()
static boolean isIA5String(String str)
return true if the passed in String can be represented without loss as an IA5String, false otherwise.
String toString()
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Object
From class org.bouncycastle.asn1.DERObject
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.ASN1String
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public DERIA5String (byte[] string)

basic constructor - with bytes.

public DERIA5String (String string)

basic constructor - without validation.

public DERIA5String (String string, boolean validate)

Constructor with optional validation.

Parameters
string the base string to wrap.
validate whether or not to check the string.
Throws
IllegalArgumentException if validate is true and the string contains characters that should not be in an IA5String.

Public Methods

public static DERIA5String getInstance (ASN1TaggedObject obj, boolean explicit)

return an IA5 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.

public static DERIA5String getInstance (Object obj)

return a IA5 string from the passed in object

Throws
IllegalArgumentException if the object cannot be converted.

public byte[] getOctets ()

public String getString ()

public int hashCode ()

public static boolean isIA5String (String str)

return true if the passed in String can be represented without loss as an IA5String, false otherwise.

Returns
  • true if in printable set, false otherwise.

public String toString ()