Class Utf8String
java.lang.Object
es.gob.jmulticard.asn1.DecoderObject
es.gob.jmulticard.asn1.der.Utf8String
Tipo UTF8String de ASN.1.
Incorpora soporte además para PrintableString y T61String.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate static final byteTipo ASN.1 "PrintableString".private static final byteTipo ASN.1 "T61String".private static final byteTipo ASN.1 "UTF8String". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckTag(byte tag) Comprueba que el tipo proporcionado sea compatible con el del objeto ASN.1.protected voidDecodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.protected byteObtiene la etiqueta de tipo ASN.1 del objeto.toString()Methods inherited from class DecoderObject
getBytes, getRawDerValue, setDerValue
-
Field Details
-
TAG_UTF8STRING
private static final byte TAG_UTF8STRINGTipo ASN.1 "UTF8String".- See Also:
-
TAG_PRINTABLESTRING
private static final byte TAG_PRINTABLESTRINGTipo ASN.1 "PrintableString".- See Also:
-
TAG_T61STRING
private static final byte TAG_T61STRINGTipo ASN.1 "T61String".- See Also:
-
stringValue
-
-
Constructor Details
-
Utf8String
public Utf8String()
-
-
Method Details
-
getDefaultTag
protected byte getDefaultTag()Description copied from class:DecoderObjectObtiene la etiqueta de tipo ASN.1 del objeto.- Specified by:
getDefaultTagin classDecoderObject- Returns:
- Etiqueta de tipo ASN.1 del objeto.
-
checkTag
Description copied from class:DecoderObjectComprueba que el tipo proporcionado sea compatible con el del objeto ASN.1.- Overrides:
checkTagin classDecoderObject- Parameters:
tag- Etiqueta de tipo a comprobar.- Throws:
Asn1Exception- Si las etiquetas de tipo no son compatibles.
-
decodeValue
Description copied from class:DecoderObjectDecodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.- Specified by:
decodeValuein classDecoderObject- Throws:
Asn1Exception- Si hay errores correspondientes a las estructuras ASN.1 DER.TlvException- Si hay errores relativos a los TLV DER.
-
toString
-