Package io.anyline.nfc.bouncycastle.asn1
Class ASN1IA5String
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable,io.anyline.nfc.bouncycastle.asn1.ASN1String,io.anyline.nfc.bouncycastle.util.Encodable
public abstract class ASN1IA5String extends ASN1Primitive implements ASN1String
ASN.1 IA5String object - this is a ISO 646 (ASCII) string encoding code points 0 to 127.
Explicit character set escape sequences are not allowed.
-
-
Method Summary
Modifier and Type Method Description static ASN1IA5StringgetInstance(Object obj)Return an IA5 string from the passed in object static ASN1IA5StringgetInstance(ASN1TaggedObject taggedObject, boolean explicit)Return an IA5 String from a tagged object. final StringgetString()Return a Java String representation of this STRING type's content. StringtoString()final Array<byte>getOctets()final inthashCode()static booleanisIA5String(String str)return true if the passed in String can be represented without loss as an IA5String, false otherwise. -
Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1Primitive
encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1Primitive -
Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getInstance
static ASN1IA5String getInstance(Object obj)
Return an IA5 string from the passed in object
- Parameters:
obj- an ASN1IA5String or an object that can be converted into one.- Returns:
a ASN1IA5String instance, or null.
-
getInstance
static ASN1IA5String getInstance(ASN1TaggedObject taggedObject, boolean explicit)
Return an IA5 String from a tagged object.
- Parameters:
explicit- true if the object is meant to be explicitly tagged false otherwise.- Returns:
an ASN1IA5String instance, or null.
-
getString
final String getString()
Return a Java String representation of this STRING type's content.
- Returns:
a Java String representation of this STRING.
-
hashCode
final int hashCode()
-
isIA5String
static boolean isIA5String(String str)
return true if the passed in String can be represented without loss as an IA5String, false otherwise.
- Parameters:
str- the string to check.- Returns:
true if character set in IA5String set, false otherwise.
-
-
-
-