public final class RevocationServer extends Object
Issuer certificates can be registered with the server, and revocations of their certificates and be published and added to the revocation lists.
The server is only intended for testing usage, and runs entirely in a single thread.
| Modifier and Type | Method and Description |
|---|---|
URI |
getCrlUri(X509Bundle issuer)
Get the URI of the Certificate Revocation List for the given issuer.
|
static RevocationServer |
getInstance()
Get the shared revocation server instance.
|
void |
register(X509Bundle issuer)
Register an issuer with the revocation server.
|
void |
revoke(X509Bundle cert,
Instant time)
Revoke the given certificate with the given revocation time.
|
public static RevocationServer getInstance() throws Exception
Exception - If the server failed to start.public void register(X509Bundle issuer)
issuer - The issuer to register.public void revoke(X509Bundle cert, Instant time)
The issuer of the given certificate must be registered before its certifiactes can be revoked.
cert - The certificate to revoke.time - The time of revocation.public URI getCrlUri(X509Bundle issuer)
issuer - The issuer to get the CRL for.null if the issuer is not registered.Copyright © 2008–2024 The Netty Project. All rights reserved.