Class OCSPEnhancedResponse

  • All Implemented Interfaces:
    java.io.Serializable

    public class OCSPEnhancedResponse
    extends java.lang.Object
    implements java.io.Serializable

    Class 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 int STATUS_INTERNAL_ERROR
      Constant attribute that identifies the OCSP response status: Internal error in issuer.
      static int STATUS_MALFORMED_REQUEST
      Constant attribute that identifies the OCSP response status: Illegal confirmation request.
      static int STATUS_SIGREQUIRED
      Constant attribute that identifies the OCSP response status: Must sign the request.
      static int STATUS_SUCCESSFUL
      Constant attribute that identifies the OCSP response status: Response has valid confirmations.
      static int STATUS_TRY_LATER
      Constant attribute that identifies the OCSP response status: Try again later.
      static int STATUS_UNAUTHORIZED
      Constant attribute that identifies the OCSP response status: Request unauthorized.
    • 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
    • Constructor Detail

      • OCSPEnhancedResponse

        public OCSPEnhancedResponse()
    • Method Detail

      • getMaxAge

        public final java.util.Date getMaxAge()
        Gets the value of the attribute maxAge.
        Returns:
        the value of the attribute maxAge.
      • setMaxAge

        public final void setMaxAge​(java.util.Date maxAgeParam)
        Sets the value of the attribute maxAge.
        Parameters:
        maxAgeParam - The value for the attribute maxAge.
      • getStatus

        public final int getStatus()
        Gets the value of the attribute status.
        Returns:
        the value of the attribute status.
      • setStatus

        public final void setStatus​(int statusParam)
        Sets the value of the attribute status.
        Parameters:
        statusParam - The value for the attribute status.
      • getRevocationDate

        public final java.util.Date getRevocationDate()
        Gets the value of the attribute revocationDate.
        Returns:
        the value of the attribute revocationDate.
      • setRevocationDate

        public final void setRevocationDate​(java.util.Date revocationDateParam)
        Sets the value of the attribute revocationDate.
        Parameters:
        revocationDateParam - The value for the attribute revocationDate.
      • getErrorMsg

        public final java.lang.String getErrorMsg()
        Gets the value of the attribute errorMsg.
        Returns:
        the value of the attribute errorMsg.
      • setErrorMsg

        public final void setErrorMsg​(java.lang.String errorMsgParam)
        Sets the value of the attribute errorMsg.
        Parameters:
        errorMsgParam - The value for the attribute errorMsg.