java.lang.Object
org.shredzone.acme4j.Login
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbindAuthorization(URL location) Creates a new instance ofAuthorizationand binds it to this login.bindCertificate(URL location) Creates a new instance ofCertificateand binds it to this login.bindChallenge(URL location) Creates a new instance ofChallengeand binds it to this login.<C extends Challenge>
CbindChallenge(URL location, Class<C> type) Creates a new instance of a challenge and binds it to this login.Creates a new instance ofOrderand binds it to this login.createChallenge(JSON data) Creates aChallengeinstance for the given challenge data.Gets theAccountthat is bound to this login.Gets the locationURLof the account.Gets theKeyPairof the ACME account.Gets theSessionthat is used.protected voidsetKeyPair(KeyPair keyPair) Sets a differentKeyPair.
-
Constructor Details
-
Method Details
-
getSession
Gets theSessionthat is used. -
getKeyPair
Gets theKeyPairof the ACME account. -
getAccountLocation
Gets the locationURLof the account. -
getAccount
Gets theAccountthat is bound to this login.- Returns:
Accountbound to the login
-
bindAuthorization
Creates a new instance ofAuthorizationand binds it to this login.- Parameters:
location- Location of the Authorization- Returns:
Authorizationbound to the login
-
bindCertificate
Creates a new instance ofCertificateand binds it to this login.- Parameters:
location- Location of the Certificate- Returns:
Certificatebound to the login
-
bindOrder
Creates a new instance ofOrderand binds it to this login.- Parameters:
location- Location URL of the order- Returns:
Orderbound to the login
-
bindChallenge
Creates a new instance ofChallengeand binds it to this login.- Parameters:
location- Location URL of the challenge- Returns:
Challengebound to the login- Since:
- 2.8
-
bindChallenge
Creates a new instance of a challenge and binds it to this login.- Parameters:
location- Location URL of the challengetype- Expected challenge type- Returns:
- Challenge bound to the login
- Throws:
AcmeProtocolException- if the challenge found at the location does not match the expected challenge type.- Since:
- 2.12
-
createChallenge
Creates aChallengeinstance for the given challenge data.- Parameters:
data- Challenge JSON data- Returns:
Challengeinstance
-
setKeyPair
Sets a differentKeyPair.
-