Package | Description |
---|---|
org.shredzone.acme4j | |
org.shredzone.acme4j.challenge | |
org.shredzone.acme4j.connector | |
org.shredzone.acme4j.exception | |
org.shredzone.acme4j.provider |
Modifier and Type | Method and Description |
---|---|
void |
ClientTest.acceptAgreement(Registration reg,
URI agreement)
Presents the user a link to the Terms of Service, and asks for confirmation.
|
void |
ClientTest.acceptChallenge(String message)
Presents the instructions for preparing the challenge validation, and waits for
dismissal.
|
Authorization |
Registration.authorizeDomain(String domain)
Authorizes a domain.
|
void |
Registration.changeKey(KeyPair newKeyPair)
Changes the
KeyPair associated with the registration. |
void |
Registration.EditableRegistration.commit()
Commits the changes and updates the account.
|
Registration |
RegistrationBuilder.create(Session session)
Creates a new account.
|
void |
Authorization.deactivate()
Permanently deactivates the
Authorization . |
void |
Registration.deactivate()
Permanently deactivates an account.
|
Challenge |
ClientTest.dnsChallenge(Authorization auth,
String domain)
Prepares a DNS challenge.
|
X509Certificate |
Certificate.download()
Downloads the certificate.
|
X509Certificate[] |
Certificate.downloadChain()
Downloads the issuer chain.
|
X509Certificate[] |
Certificate.downloadFullChain()
Downloads the certificate and the corresponding issuer chain.
|
void |
ClientTest.fetchCertificate(Collection<String> domains)
Generates a certificate for the given domains.
|
Iterator<Authorization> |
Registration.getAuthorizations()
|
Iterator<Certificate> |
Registration.getCertificates()
|
Metadata |
Session.getMetadata()
Gets the metadata of the provider's directory.
|
Challenge |
ClientTest.httpChallenge(Authorization auth,
String domain)
Prepares a HTTP challenge.
|
Certificate |
Registration.requestCertificate(byte[] csr)
Requests a certificate for the given CSR.
|
Certificate |
Registration.requestCertificate(byte[] csr,
Instant notBefore,
Instant notAfter)
Requests a certificate for the given CSR.
|
URL |
Session.resourceUrl(Resource resource)
|
void |
Certificate.revoke()
Revokes this certificate.
|
void |
Certificate.revoke(RevocationReason reason)
Revokes this certificate.
|
static void |
Certificate.revoke(Session session,
X509Certificate cert,
RevocationReason reason)
Revoke a certificate.
|
void |
Authorization.update()
Updates the
Authorization . |
void |
Registration.update()
Updates the registration to the current account status.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Challenge> |
Challenge.bind(Session session,
URL location)
Returns a
Challenge object of an existing challenge. |
void |
Challenge.trigger()
Triggers this
Challenge . |
void |
Challenge.update()
Updates the state of this challenge.
|
Modifier and Type | Method and Description |
---|---|
int |
DefaultConnection.accept(int... httpStatus) |
int |
Connection.accept(int... httpStatus)
Checks if the HTTP response status is in the given list of acceptable HTTP states,
otherwise raises an
AcmeException matching the error. |
void |
DefaultConnection.handleRetryAfter(String message) |
void |
Connection.handleRetryAfter(String message)
Throws an
AcmeRetryAfterException if the last status was HTTP Accepted and
a Retry-After header was received. |
X509Certificate |
DefaultConnection.readCertificate() |
X509Certificate |
Connection.readCertificate()
Reads a certificate.
|
JSON |
DefaultConnection.readJsonResponse() |
JSON |
Connection.readJsonResponse()
Reads a server response as JSON data.
|
void |
DefaultConnection.sendRequest(URL url,
Session session) |
void |
Connection.sendRequest(URL url,
Session session)
Sends a simple GET request.
|
void |
DefaultConnection.sendSignedRequest(URL url,
JSONBuilder claims,
Session session) |
void |
Connection.sendSignedRequest(URL url,
JSONBuilder claims,
Session session)
Sends a signed POST request.
|
Modifier and Type | Class and Description |
---|---|
class |
AcmeAgreementRequiredException
An exception that is thrown when the client needs to accept the terms of service in
order to continue.
|
class |
AcmeConflictException
An exception that is thrown when there is a conflict with the request.
|
class |
AcmeNetworkException
This exception is thrown when a network error occured while communicating with the
server.
|
class |
AcmeRateLimitExceededException
An exception that is thrown when a rate limit was exceeded.
|
class |
AcmeRetryAfterException
This exception is thrown when a server side process has not been completed yet, and the
server returned an estimated retry date.
|
class |
AcmeServerException
An exception that is thrown when the ACME server returned an error.
|
class |
AcmeUnauthorizedException
An exception that is thrown when the client is not authorized.
|
Modifier and Type | Method and Description |
---|---|
JSON |
AbstractAcmeProvider.directory(Session session,
URI serverUri) |
JSON |
AcmeProvider.directory(Session session,
URI serverUri)
Returns the provider's directory.
|
Copyright © 2015–2019. All rights reserved.