java.lang.Object
org.shredzone.acme4j.AcmeResource
org.shredzone.acme4j.AcmeJsonResource
org.shredzone.acme4j.Authorization
- Alle implementierten Schnittstellen:
Serializable
,PollableResource
Represents an authorization request at the ACME server.
- Siehe auch:
-
Feldübersicht
Von Schnittstelle geerbte Felder org.shredzone.acme4j.PollableResource
DEFAULT_RETRY_AFTER
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Permanently deactivates theAuthorization
.findChallenge
(Class<T> type) Finds aChallenge
of the given class type.findChallenge
(String type) Finds aChallenge
of the given type.Gets a list of all challenges offered by the server, in no specific order.Gets the expiry date of the authorization, if set by the server.Gets theIdentifier
to be authorized.Gets the authorization status.boolean
Returnstrue
if certificates for subdomains can be issued according to RFC9444.boolean
waitForCompletion
(Duration timeout) Waits until the authorization is completed.Von Klasse geerbte Methoden org.shredzone.acme4j.AcmeJsonResource
fetch, getJSON, getRetryAfter, invalidate, isValid, setJSON, setRetryAfter, update
Von Klasse geerbte Methoden org.shredzone.acme4j.AcmeResource
finalize, getLocation, getLogin, getSession, rebind
Von Klasse geerbte Methoden java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.shredzone.acme4j.PollableResource
fetch, waitForStatus
-
Konstruktordetails
-
Authorization
-
-
Methodendetails
-
getIdentifier
Gets theIdentifier
to be authorized.For wildcard domain orders, the domain itself (without wildcard prefix) is returned here. To find out if this
Authorization
is related to a wildcard domain order, check theisWildcard()
method.- Seit:
- 2.3
-
getStatus
Gets the authorization status.Possible values are:
Status.PENDING
,Status.VALID
,Status.INVALID
,Status.DEACTIVATED
,Status.EXPIRED
,Status.REVOKED
.- Angegeben von:
getStatus
in SchnittstellePollableResource
-
getExpires
Gets the expiry date of the authorization, if set by the server. -
isWildcard
-
isSubdomainAuthAllowed
Returnstrue
if certificates for subdomains can be issued according to RFC9444.- Seit:
- 3.3.0
-
getChallenges
Gets a list of all challenges offered by the server, in no specific order. -
findChallenge
Finds aChallenge
of the given type. Responding to thisChallenge
is sufficient for authorization.findChallenge(Class)
should be preferred, as this variant is not type safe.- Parameter:
type
- Challenge name (e.g. "http-01")- Gibt zurück:
Challenge
matching that name, or empty if there is no such challenge, or if the challenge alone is not sufficient for authorization.- Löst aus:
ClassCastException
- if the type does not match the expected Challenge class type
-
findChallenge
Finds aChallenge
of the given class type. Responding to thisChallenge
is sufficient for authorization.- Parameter:
type
- Challenge type (e.g. "Http01Challenge.class")- Gibt zurück:
Challenge
of that type, or empty if there is no such challenge, or if the challenge alone is not sufficient for authorization.- Seit:
- 2.8
-
waitForCompletion
Waits until the authorization is completed.Is is completed if it reaches either
Status.VALID
orStatus.INVALID
.This method is synchronous and blocks the current thread.
- Parameter:
timeout
- Timeout until a terminal status must have been reached- Gibt zurück:
- Status that was reached
- Löst aus:
AcmeException
InterruptedException
- Seit:
- 3.4.0
-
deactivate
Permanently deactivates theAuthorization
.- Löst aus:
AcmeException
-