mcne.util
Class TimeStampDecoder

java.lang.Object
  |
  +--mcne.util.TimeStampDecoder

public class TimeStampDecoder
extends java.lang.Object

Author:
naza

Constructor Summary
TimeStampDecoder()
          Creates a new instance of TimeStampDecoder
 
Method Summary
static TimeStampResp decodeTimeStampResp(byte[] sello)
          Decodifica un Sello de Tiempo obtenido del Notario Electrónico
static java.util.Date getFechaYHoraSelloTiempo(TimeStampResp tsr)
          Devuelve la fecha y hora LOCAL del sello de tiempo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeStampDecoder

public TimeStampDecoder()
Creates a new instance of TimeStampDecoder

Method Detail

decodeTimeStampResp

public static TimeStampResp decodeTimeStampResp(byte[] sello)
                                         throws java.lang.Exception
Decodifica un Sello de Tiempo obtenido del Notario Electrónico

Parameters:
sello - Sello de Tiempo en formato DER
Returns:
TimeStampResp
java.lang.Exception

getFechaYHoraSelloTiempo

public static java.util.Date getFechaYHoraSelloTiempo(TimeStampResp tsr)
                                               throws ClienteNotarioException
Devuelve la fecha y hora LOCAL del sello de tiempo.

Parameters:
tsr - Sello de Tiempo
Returns:
java.util.Date
ClienteNotarioException