Package es.gob.jmulticard.asn1.der
Class GeneralizedTime
- java.lang.Object
-
- es.gob.jmulticard.asn1.DecoderObject
-
- es.gob.jmulticard.asn1.der.GeneralizedTime
-
public final class GeneralizedTime extends DecoderObject
Tipo UTF8String de ASN.1. Incorpora soporte además para GeneralizedTime.
-
-
Constructor Summary
Constructors Constructor Description GeneralizedTime()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddecodeValue()Decodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.java.util.DategetDateValue()Obtiene el valor de la fecha.protected bytegetDefaultTag()Obtiene la etiqueta de tipo ASN.1 del objeto.java.lang.StringtoString()-
Methods inherited from class es.gob.jmulticard.asn1.DecoderObject
checkTag, getBytes, setDerValue
-
-
-
-
Field Detail
-
TAG
private static final byte TAG
Tipo ASN.1 "GeneralizedTime".- See Also:
- Constant Field Values
-
strValue
private java.lang.String strValue
-
-
Method Detail
-
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.
-
decodeValue
protected void decodeValue() throws Asn1Exception, TlvExceptionDescription 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.
-
getDateValue
public java.util.Date getDateValue() throws Asn1ExceptionObtiene el valor de la fecha.- Returns:
- Valor de la fecha.
- Throws:
Asn1Exception- Si la fecha no están en el formato esperado.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-