OCSPResponse ::= SEQUENCE {
responseStatus OCSPResponseStatus,
responseBytes [0] EXPLICIT ResponseBytes OPTIONAL }
OCSPResponseStatus ::= ENUMERATED {
successful (0), --Response has valid confirmations
malformedRequest (1), --Illegal confirmation request
internalError (2), --Internal error in issuer
tryLater (3), --Try again later
--(4) is not used
sigRequired (5), --Must sign the request
unauthorized (6) --Request unauthorized
}
ResponseBytes ::= SEQUENCE {
responseType OBJECT IDENTIFIER,
response OCTET STRING }
BasicOCSPResponse ::= SEQUENCE {
tbsResponseData ResponseData,
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING,
certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
The value for signature SHALL be computed on the hash of the DER
encoding ResponseData.
ResponseData ::= SEQUENCE {
version [0] EXPLICIT Version DEFAULT v1,
responderID ResponderID,
producedAt GeneralizedTime,
responses SEQUENCE OF SingleResponse,
responseExtensions [1] EXPLICIT Extensions OPTIONAL }
ResponderID ::= CHOICE {
byName [1] Name,
byKey [2] KeyHash }
KeyHash ::= OCTET STRING -- SHA-1 hash of responder's public key
(excluding the tag and length fields)
SingleResponse ::= SEQUENCE {
certID CertID,
certStatus CertStatus,
thisUpdate GeneralizedTime,
nextUpdate [0] EXPLICIT GeneralizedTime OPTIONAL,
singleExtensions [1] EXPLICIT Extensions OPTIONAL }
CertStatus ::= CHOICE {
good [0] IMPLICIT NULL,
revoked [1] IMPLICIT RevokedInfo,
unknown [2] IMPLICIT UnknownInfo }
RevokedInfo ::= SEQUENCE {
revocationTime GeneralizedTime,
revocationReason [0] EXPLICIT CRLReason OPTIONAL }
UnknownInfo ::= NULL -- this can be replaced with an enumeration
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | OCSPResponse.
Helper class that allows consumers to pass in issuer information. |
| public static enum | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private final List | |
| private static final Debug | |
| private static final int | |
| private static final boolean | |
| private static final int | |
| private static final int | MAX_CLOCK_SKEW
Integer value indicating the maximum allowable clock skew, in milliseconds, to be used for the OCSP check. |
| private static final int | |
| private static final ObjectIdentifier | |
| private Date | |
| private final ResponderId | |
| private final Map | |
| private final byte[] | |
| private final OCSPResponse. | |
| private static final OCSPResponse. | |
| private final AlgorithmId | |
| private final byte[] | |
| private X509CertImpl | |
| private final Map | |
| private final byte[] | |
| private static final CRLReason[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | Returns: an unmodifiable set containing everyCertId in this
response.Return a set of all CertIds in this |
| public ResponderId | Returns: theResponderId from this response or null
if no responder ID is in the body of the response, e.g. a
response with a status other than SUCCESS.Get the |
| public OCSPResponse. | Returns: theResponseStatus for this OCSP responseReturns the OCSP ResponseStatus. |
| pack-priv X509Certificate | |
| public OCSPResponse. | Returns: theSingleResponse for the provided CertId,
or null if it is not found.the certId)CertId for a SingleResponse to be
searched for in the OCSP response.Returns the SingleResponse of the specified CertId, or null if there is no response for that CertId. |
| private static int | initializeClockSkew()
Initialize the maximum allowable clock skew by getting the OCSP clock skew system property. |
| private static Map | Returns: aMap using the OID in string form as the keys. If no
extensions are found or an empty SEQUENCE is passed in, then
an empty Map will be returned.A derVal)DerValue object built from a SEQUENCE of
extensionsBuild a String-Extension map from DER encoded data. |
| public String | Returns: a human-readable representation of the OCSPResponseOverrides java. Provide a String representation of an OCSPResponse |
| pack-priv void | verify(List<CertId> certIds, OCSPResponse.
|
| private boolean |
| CERT_STATUS_GOOD | back to summary |
|---|---|
| private static final int CERT_STATUS_GOOD | |
| CERT_STATUS_REVOKED | back to summary |
|---|---|
| private static final int CERT_STATUS_REVOKED | |
| CERT_STATUS_UNKNOWN | back to summary |
|---|---|
| private static final int CERT_STATUS_UNKNOWN | |
| certs | back to summary |
|---|---|
| private final List<X509CertImpl> certs | |
| debug | back to summary |
|---|---|
| private static final Debug debug | |
| DEFAULT_MAX_CLOCK_SKEW | back to summary |
|---|---|
| private static final int DEFAULT_MAX_CLOCK_SKEW | |
| dump | back to summary |
|---|---|
| private static final boolean dump | |
| KEY_TAG | back to summary |
|---|---|
| private static final int KEY_TAG | |
| MAX_CLOCK_SKEW | back to summary |
|---|---|
| private static final int MAX_CLOCK_SKEW Integer value indicating the maximum allowable clock skew, in milliseconds, to be used for the OCSP check. | |
| NAME_TAG | back to summary |
|---|---|
| private static final int NAME_TAG | |
| OCSP_BASIC_RESPONSE_OID | back to summary |
|---|---|
| private static final ObjectIdentifier OCSP_BASIC_RESPONSE_OID | |
| producedAtDate | back to summary |
|---|---|
| private Date producedAtDate | |
| respId | back to summary |
|---|---|
| private final ResponderId respId | |
| responseExtensions | back to summary |
|---|---|
| private final Map<String, Extension> responseExtensions | |
| responseNonce | back to summary |
|---|---|
| private final byte[] responseNonce | |
| responseStatus | back to summary |
|---|---|
| private final OCSPResponse. | |
| rsvalues | back to summary |
|---|---|
| private static final OCSPResponse. | |
| sigAlgId | back to summary |
|---|---|
| private final AlgorithmId sigAlgId | |
| signature | back to summary |
|---|---|
| private final byte[] signature | |
| signerCert | back to summary |
|---|---|
| private X509CertImpl signerCert | |
| singleResponseMap | back to summary |
|---|---|
| private final Map<CertId, OCSPResponse. | |
| tbsResponseData | back to summary |
|---|---|
| private final byte[] tbsResponseData | |
| values | back to summary |
|---|---|
| private static final CRLReason[] values | |
| OCSPResponse | back to summary |
|---|---|
| public OCSPResponse(byte[] bytes) throws IOException | |
| getCertIds | back to summary |
|---|---|
| public Set Return a set of all CertIds in this | |
| getResponderId | back to summary |
|---|---|
| public ResponderId getResponderId() Get the
| |
| getResponseStatus | back to summary |
|---|---|
| public OCSPResponse. Returns the OCSP ResponseStatus.
| |
| getSignerCertificate | back to summary |
|---|---|
| pack-priv X509Certificate getSignerCertificate() | |
| getSingleResponse | back to summary |
|---|---|
| public OCSPResponse. Returns the SingleResponse of the specified CertId, or null if there is no response for that CertId.
| |
| initializeClockSkew | back to summary |
|---|---|
| private static int initializeClockSkew() Initialize the maximum allowable clock skew by getting the OCSP clock skew system property. If the property has not been set, or if its value is negative, set the skew to the default. | |
| parseExtensions | back to summary |
|---|---|
| private static Map Build a String-Extension map from DER encoded data.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Provide a String representation of an OCSPResponse | |
| verify | back to summary |
|---|---|
| pack-priv void verify(List<CertId> certIds, OCSPResponse. | |
| verifySignature | back to summary |
|---|---|
| private boolean verifySignature(X509Certificate cert) throws CertPathValidatorException | |
| Modifier and Type | Field and Description |
|---|---|
| private final TrustAnchor | |
| private final X509Certificate | |
| private final X500Principal | |
| private final PublicKey |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv TrustAnchor | |
| pack-priv X509Certificate | Returns: theX509Certificate used to create this IssuerInfo
object, or null if a certificate was not used in its
creation.Get the certificate in this IssuerInfo if present. |
| pack-priv X500Principal | Returns: anX500Principal corresponding to this issuer's
name. If derived from an issuer's X509Certificate this
would be equivalent to the certificate subject name.Get the name of this issuer. |
| pack-priv PublicKey | |
| public String | Returns: aString form of this IssuerInfo object.Overrides java. Create a string representation of this IssuerInfo. |
| anchor | back to summary |
|---|---|
| private final TrustAnchor anchor | |
| certificate | back to summary |
|---|---|
| private final X509Certificate certificate | |
| name | back to summary |
|---|---|
| private final X500Principal name | |
| pubKey | back to summary |
|---|---|
| private final PublicKey pubKey | |
| IssuerInfo | back to summary |
|---|---|
| pack-priv IssuerInfo(TrustAnchor anchor) | |
| IssuerInfo | back to summary |
|---|---|
| pack-priv IssuerInfo(X509Certificate issuerCert) | |
| IssuerInfo | back to summary |
|---|---|
| pack-priv IssuerInfo(TrustAnchor anchor, X509Certificate issuerCert) | |
| getAnchor | back to summary |
|---|---|
| pack-priv TrustAnchor getAnchor() Get the TrustAnchor for the certificate chain.
| |
| getCertificate | back to summary |
|---|---|
| pack-priv X509Certificate getCertificate() Get the certificate in this IssuerInfo if present.
| |
| getName | back to summary |
|---|---|
| pack-priv X500Principal getName() Get the name of this issuer.
| |
| getPublicKey | back to summary |
|---|---|
| pack-priv PublicKey getPublicKey() Get the public key for this issuer.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Create a string representation of this IssuerInfo. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final OCSPResponse. | |
| public static final OCSPResponse. | |
| public static final OCSPResponse. | |
| public static final OCSPResponse. | |
| public static final OCSPResponse. | |
| public static final OCSPResponse. | |
| public static final OCSPResponse. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static OCSPResponse. | |
| public static OCSPResponse. |
| INTERNAL_ERROR | back to summary |
|---|---|
| public static final OCSPResponse. | |
| MALFORMED_REQUEST | back to summary |
|---|---|
| public static final OCSPResponse. | |
| SIG_REQUIRED | back to summary |
|---|---|
| public static final OCSPResponse. | |
| SUCCESSFUL | back to summary |
|---|---|
| public static final OCSPResponse. | |
| TRY_LATER | back to summary |
|---|---|
| public static final OCSPResponse. | |
| UNAUTHORIZED | back to summary |
|---|---|
| public static final OCSPResponse. | |
| UNUSED | back to summary |
|---|---|
| public static final OCSPResponse. | |
| ResponseStatus | back to summary |
|---|---|
| private ResponseStatus() | |
| valueOf | back to summary |
|---|---|
| public static OCSPResponse. | |
| values | back to summary |
|---|---|
| public static OCSPResponse. | |
| Modifier and Type | Field and Description |
|---|---|
| private final CertId | |
| private final OCSP. | |
| private final Date | |
| private final CRLReason | |
| private final Date | |
| private final Map | |
| private final Date |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public CertId | Returns: theCertId for this SingleResponseGet the Cert ID that this SingleResponse is for. |
| public OCSP. | getCertStatus()
Implements sun. Returns the revocation status. |
| public Date | Returns: aDate object containing the nexUpdate date or
null if a nextUpdate field is not present in the response.Get the |
| public CRLReason | Returns: aCRLReason containing the revocation reason, or
null if a revocation reason was not provided or the
response status is not REVOKED.Implements sun. Get the |
| public Date | Returns: aDate object containing the revocationTime date or
null if the SingleResponse does not have a status
of REVOKED.Implements sun. Get the |
| public Map | getSingleExtensions()
Implements sun. Get the |
| public Date | Returns: aDate object containing the thisUpdate dateGet the |
| public String | toString()
Overrides java. Construct a string representation of a single OCSP response. |
| certId | back to summary |
|---|---|
| private final CertId certId | |
| certStatus | back to summary |
|---|---|
| private final OCSP. | |
| nextUpdate | back to summary |
|---|---|
| private final Date nextUpdate | |
| revocationReason | back to summary |
|---|---|
| private final CRLReason revocationReason | |
| revocationTime | back to summary |
|---|---|
| private final Date revocationTime | |
| singleExtensions | back to summary |
|---|---|
| private final Map<String, Extension> singleExtensions | |
| thisUpdate | back to summary |
|---|---|
| private final Date thisUpdate | |
| SingleResponse | back to summary |
|---|---|
| private SingleResponse(DerValue der) throws IOException | |
| getCertId | back to summary |
|---|---|
| public CertId getCertId() Get the Cert ID that this SingleResponse is for.
| |
| getCertStatus | back to summary |
|---|---|
| public OCSP. Implements sun. Doc from sun. Returns the revocation status.
| |
| getNextUpdate | back to summary |
|---|---|
| public Date getNextUpdate() Get the | |
| getRevocationReason | back to summary |
|---|---|
| public CRLReason getRevocationReason() Implements sun. Get the | |
| getRevocationTime | back to summary |
|---|---|
| public Date getRevocationTime() Implements sun. Get the | |
| getSingleExtensions | back to summary |
|---|---|
| public Map Implements sun. Get the | |
| getThisUpdate | back to summary |
|---|---|
| public Date getThisUpdate() Get the | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Construct a string representation of a single OCSP response.
| |