public class OcspClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static Property<Boolean> |
EXCEPTION_ON_NO_PATH |
static Property<Boolean> |
EXCEPTION_ON_REVOKED |
static Property<Boolean> |
EXCEPTION_ON_UNKNOWN |
static Property<OcspFetcher> |
FETCHER |
static Property<List<X509Certificate>> |
INTERMEDIATES |
static Property<Boolean> |
NONCE |
static Property<URI> |
OVERRIDE_URL |
protected Properties |
properties
Properties provided by the builder.
|
| Modifier and Type | Method and Description |
|---|---|
static Builder<OcspClient> |
builder()
Builder to create an instance of the client.
|
protected URI |
detectOcspUri(X509Certificate certificate) |
protected network.oxalis.ocsp.OcspResponse |
fetch(network.oxalis.ocsp.OcspRequest ocspReq,
URI uri) |
protected X509Certificate |
findIntermediate(X509Certificate certificate)
Method for finding issuer by provided issuers in properties given an issued certificate.
|
CertificateResult |
verify(CertificateIssuer issuer,
X509Certificate certificate) |
CertificateResult |
verify(URI uri,
CertificateIssuer issuer,
BigInteger serialNumber) |
CertificateResult |
verify(X509Certificate certificate) |
CertificateResult |
verify(X509Certificate certificate,
X509Certificate issuer) |
public static final Property<OcspFetcher> FETCHER
public static final Property<List<X509Certificate>> INTERMEDIATES
protected final Properties properties
public static Builder<OcspClient> builder()
public CertificateResult verify(X509Certificate certificate) throws OcspException
OcspExceptionpublic CertificateResult verify(X509Certificate certificate, X509Certificate issuer) throws OcspException
OcspExceptionpublic CertificateResult verify(CertificateIssuer issuer, X509Certificate certificate) throws OcspException
OcspExceptionpublic CertificateResult verify(URI uri, CertificateIssuer issuer, BigInteger serialNumber) throws OcspException
OcspExceptionprotected X509Certificate findIntermediate(X509Certificate certificate) throws OcspException
certificate - Issued certificate.OcspException - Thrown when no issuer is found.protected URI detectOcspUri(X509Certificate certificate) throws OcspException
OcspExceptionprotected network.oxalis.ocsp.OcspResponse fetch(network.oxalis.ocsp.OcspRequest ocspReq,
URI uri)
throws OcspException
OcspExceptionCopyright © 2022 NorStella. All rights reserved.