Package org.faceless.pdf2
Class PKCS7SignatureHandler.OCSPResponse
- java.lang.Object
-
- org.faceless.pdf2.PKCS7SignatureHandler.OCSPResponse
-
- Enclosing class:
- PKCS7SignatureHandler
public static class PKCS7SignatureHandler.OCSPResponse extends java.lang.Object
An OCSP response relating to the validity of a digital signature.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PKCS7SignatureHandler.OCSPResponse.SingleResponse
Represents a SingleResponse item from the OCSP response
-
Field Summary
Fields Modifier and Type Field Description static int
STATUS_INTERNAL_ERROR
A return value fromgetStatus()
indicating that the OCSP check failed due to server error.static int
STATUS_MALFORMED_REQUEST
A return value fromgetStatus()
indicating that the OCSP check failed due to client error.static int
STATUS_SIG_REQUIRED
A return value fromgetStatus()
indicating that the OCSP check required missing signature information.static int
STATUS_SUCCESSFUL
A return value fromgetStatus()
indicating that the OCSP check was successful.static int
STATUS_TRY_LATER
A return value fromgetStatus()
indicating that the OCSP check could not be performed at the specified time.static int
STATUS_UNAUTHORIZED
A return value fromgetStatus()
indicates that the client was not authorized to perform this check.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getEncoded()
Return the DER encoded version of this objectjava.util.Calendar
getProducedAt()
Returns the time at which this OCSP response was emitted.java.util.List<PKCS7SignatureHandler.OCSPResponse.SingleResponse>
getResponses()
Returns a list of the individual certificate status responses in this OCSP response.byte[]
getSignature()
Returns the raw bytes of the digital signature.int
getStatus()
Returns the response status.java.lang.String
toString()
-
-
-
Field Detail
-
STATUS_SUCCESSFUL
public static final int STATUS_SUCCESSFUL
A return value fromgetStatus()
indicating that the OCSP check was successful.
-
STATUS_MALFORMED_REQUEST
public static final int STATUS_MALFORMED_REQUEST
A return value fromgetStatus()
indicating that the OCSP check failed due to client error.
-
STATUS_INTERNAL_ERROR
public static final int STATUS_INTERNAL_ERROR
A return value fromgetStatus()
indicating that the OCSP check failed due to server error.
-
STATUS_TRY_LATER
public static final int STATUS_TRY_LATER
A return value fromgetStatus()
indicating that the OCSP check could not be performed at the specified time.
-
STATUS_SIG_REQUIRED
public static final int STATUS_SIG_REQUIRED
A return value fromgetStatus()
indicating that the OCSP check required missing signature information.
-
STATUS_UNAUTHORIZED
public static final int STATUS_UNAUTHORIZED
A return value fromgetStatus()
indicates that the client was not authorized to perform this check.
-
-
Method Detail
-
getEncoded
public byte[] getEncoded()
Return the DER encoded version of this object
-
getStatus
public int getStatus()
Returns the response status.
-
getSignature
public byte[] getSignature()
Returns the raw bytes of the digital signature.
-
getProducedAt
public java.util.Calendar getProducedAt()
Returns the time at which this OCSP response was emitted.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getResponses
public java.util.List<PKCS7SignatureHandler.OCSPResponse.SingleResponse> getResponses()
Returns a list of the individual certificate status responses in this OCSP response.
-
-