public class T61String extends ASN1String
An ASN.1 T61String object may represent any arbitrary string of T.61 (eight-bit extension of the ASCII character set) characters. The T61String character set is defined by CCITT Recommendation T.61.
When creating a new T61String
object the value to be represented
has to be supplied as Java String
type:
String s = ...; T61String t61String = new T61String(s);Attention: When supplying the string value to be represented, no check is performed if it actually is composed only of characters belonging to T61String character set! An application itself has to take care for supplying a proper T61String value.
When calling the getValue
method for getting the inherent string
value from an ASN.1 T61String instance, a Java object of type String
is returned:
String s = (String)t61String.getValue();DER en/decoding generally is done by means of the several methods of the
DerCoder
class; decoding alternatively may be performed by
using the DerInputStream
utility.ASN1Object
,
ASN
value
asnType, constructed, encode_listener, indefinite_length, isStringType, stream_mode
Modifier | Constructor and Description |
---|---|
protected |
T61String()
Creates an empty T61String object.
|
|
T61String(java.lang.String value)
Creates a new ASN.1 T61String object for the given String value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getValue()
Returns the value of this T61String as a String object.
|
void |
setValue(java.lang.Object object)
Sets the value of this T61String.
|
clone, decode, encode, equals, getByteValue, hashCode, setIgnoreConstructedEncodingForSimpleTypes, setIndefiniteLength, toString
addComponent, addEncodeListener, countComponents, encodeObject, getAsnType, getComponentAt, indefiniteLength, isA, isConstructed, isStringType
protected T61String()
public T61String(java.lang.String value)
Attention: No check is performed if the supplied String value actually is composed only of characters belonging to the T61String character set! An application itself has to take care for supplying a proper T61String value.
value
- the String value this T61String object should be initialized withpublic java.lang.Object getValue()
getValue
in class ASN1Object
public void setValue(java.lang.Object object)
The supplied value has to be a Java object of type String
.
Attention: No check is performed if the supplied String value
actually is composed only of characters belonging to T61String character
set! An application itself has to take care for supplying a proper T61String
value.
setValue
in class ASN1Object
object
- the Java String value to be set for this T61String