Package es.gob.afirma.ocsp
Class OCSPEnhancedResponse
- java.lang.Object
-
- es.gob.afirma.ocsp.OCSPEnhancedResponse
-
- All Implemented Interfaces:
java.io.Serializable
public class OCSPEnhancedResponse extends java.lang.Object implements java.io.SerializableClass that represents an OCSP response with the date when the cached OCSP response expires, as defined on the lightweight profile recommendations defined in the RFC 5019.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.0, 20/11/2014.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intSTATUS_INTERNAL_ERRORConstant attribute that identifies the OCSP response status:Internal error in issuer.static intSTATUS_MALFORMED_REQUESTConstant attribute that identifies the OCSP response status:Illegal confirmation request.static intSTATUS_SIGREQUIREDConstant attribute that identifies the OCSP response status:Must sign the request.static intSTATUS_SUCCESSFULConstant attribute that identifies the OCSP response status:Response has valid confirmations.static intSTATUS_TRY_LATERConstant attribute that identifies the OCSP response status:Try again later.static intSTATUS_UNAUTHORIZEDConstant attribute that identifies the OCSP response status:Request unauthorized.
-
Constructor Summary
Constructors Constructor Description OCSPEnhancedResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetErrorMsg()Gets the value of the attributeerrorMsg.java.util.DategetMaxAge()Gets the value of the attributemaxAge.java.util.DategetRevocationDate()Gets the value of the attributerevocationDate.intgetStatus()Gets the value of the attributestatus.voidsetErrorMsg(java.lang.String errorMsgParam)Sets the value of the attributeerrorMsg.voidsetMaxAge(java.util.Date maxAgeParam)Sets the value of the attributemaxAge.voidsetRevocationDate(java.util.Date revocationDateParam)Sets the value of the attributerevocationDate.voidsetStatus(int statusParam)Sets the value of the attributestatus.
-
-
-
Field Detail
-
STATUS_SUCCESSFUL
public static final int STATUS_SUCCESSFUL
Constant attribute that identifies the OCSP response status:Response has valid confirmations.- See Also:
- Constant Field Values
-
STATUS_MALFORMED_REQUEST
public static final int STATUS_MALFORMED_REQUEST
Constant attribute that identifies the OCSP response status:Illegal confirmation request.- See Also:
- Constant Field Values
-
STATUS_INTERNAL_ERROR
public static final int STATUS_INTERNAL_ERROR
Constant attribute that identifies the OCSP response status:Internal error in issuer.- See Also:
- Constant Field Values
-
STATUS_TRY_LATER
public static final int STATUS_TRY_LATER
Constant attribute that identifies the OCSP response status:Try again later.- See Also:
- Constant Field Values
-
STATUS_SIGREQUIRED
public static final int STATUS_SIGREQUIRED
Constant attribute that identifies the OCSP response status:Must sign the request.- See Also:
- Constant Field Values
-
STATUS_UNAUTHORIZED
public static final int STATUS_UNAUTHORIZED
Constant attribute that identifies the OCSP response status:Request unauthorized.- See Also:
- Constant Field Values
-
-
Method Detail
-
getMaxAge
public final java.util.Date getMaxAge()
Gets the value of the attributemaxAge.- Returns:
- the value of the attribute
maxAge.
-
setMaxAge
public final void setMaxAge(java.util.Date maxAgeParam)
Sets the value of the attributemaxAge.- Parameters:
maxAgeParam- The value for the attributemaxAge.
-
getStatus
public final int getStatus()
Gets the value of the attributestatus.- Returns:
- the value of the attribute
status.
-
setStatus
public final void setStatus(int statusParam)
Sets the value of the attributestatus.- Parameters:
statusParam- The value for the attributestatus.
-
getRevocationDate
public final java.util.Date getRevocationDate()
Gets the value of the attributerevocationDate.- Returns:
- the value of the attribute
revocationDate.
-
setRevocationDate
public final void setRevocationDate(java.util.Date revocationDateParam)
Sets the value of the attributerevocationDate.- Parameters:
revocationDateParam- The value for the attributerevocationDate.
-
getErrorMsg
public final java.lang.String getErrorMsg()
Gets the value of the attributeerrorMsg.- Returns:
- the value of the attribute
errorMsg.
-
-