java.lang.Object
org.shredzone.acme4j.AcmeResource
org.shredzone.acme4j.AcmeJsonResource
org.shredzone.acme4j.Authorization
- All Implemented Interfaces:
Serializable
Represents an authorization request at the ACME server.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Permanently deactivates theAuthorization
.<T extends Challenge>
TfindChallenge
(Class<T> type) Finds aChallenge
of the given class type.<T extends Challenge>
TfindChallenge
(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
Methods inherited from class org.shredzone.acme4j.AcmeJsonResource
getJSON, invalidate, isValid, setJSON, update
Methods inherited from class org.shredzone.acme4j.AcmeResource
getLocation, getLogin, getSession, rebind
-
Constructor Details
-
Authorization
-
-
Method Details
-
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.- Since:
- 2.3
-
getStatus
Gets the authorization status.Possible values are:
Status.PENDING
,Status.VALID
,Status.INVALID
,Status.DEACTIVATED
,Status.EXPIRED
,Status.REVOKED
. -
getExpires
Gets the expiry date of the authorization, if set by the server. -
isWildcard
-
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.- Parameters:
type
- Challenge name (e.g. "http-01")- Returns:
Challenge
matching that name, ornull
if there is no such challenge, or if the challenge alone is not sufficient for authorization.- Throws:
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.- Parameters:
type
- Challenge type (e.g. "Http01Challenge.class")- Returns:
Challenge
of that type, ornull
if there is no such challenge, or if the challenge alone is not sufficient for authorization.- Since:
- 2.8
-
deactivate
Permanently deactivates theAuthorization
.- Throws:
AcmeException
-