Class GeneralizedTime


  • public final class GeneralizedTime
    extends DecoderObject
    Tipo UTF8String de ASN.1. Incorpora soporte además para GeneralizedTime.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String strValue  
      private static byte TAG
      Tipo ASN.1 "GeneralizedTime".
    • Constructor Summary

      Constructors 
      Constructor Description
      GeneralizedTime()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void decodeValue()
      Decodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.
      java.util.Date getDateValue()
      Obtiene el valor de la fecha.
      protected byte getDefaultTag()
      Obtiene la etiqueta de tipo ASN.1 del objeto.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • strValue

        private java.lang.String strValue
    • Constructor Detail

      • GeneralizedTime

        public GeneralizedTime()
    • Method Detail

      • getDefaultTag

        protected byte getDefaultTag()
        Description copied from class: DecoderObject
        Obtiene la etiqueta de tipo ASN.1 del objeto.
        Specified by:
        getDefaultTag in class DecoderObject
        Returns:
        Etiqueta de tipo ASN.1 del objeto.
      • getDateValue

        public java.util.Date getDateValue()
                                    throws Asn1Exception
        Obtiene 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:
        toString in class java.lang.Object