Login into an account.
A login is bound to a Session. However, a Session can handle multiple
logins in parallel.
To create a login, you need to specify the location URI of the Account, and
need to provide the KeyPair the account was created with. If the account's
location URL is unknown, the account can be re-registered with the
AccountBuilder, using AccountBuilder.onlyExisting() to make sure that
no new account will be created. If the key pair was lost though, there is no automatic
way to regain access to your account, and you have to contact your CA's support hotline
for assistance.
Note that Login objects are intentionally not serializable, as they contain a
keypair and volatile data. On distributed systems, you can create a Login to
the same account for every service instance.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbindAuthorization(URL location) Creates a new instance of an existingAuthorizationand binds it to this login.bindCertificate(URL location) Creates a new instance of an existingCertificateand binds it to this login.bindChallenge(URL location) Creates a new instance of an existingChallengeand binds it to this login.<C extends Challenge>
CbindChallenge(URL location, Class<C> type) Creates a new instance of an existingChallengeand binds it to this login.Creates a new instance of an existingOrderand binds it to this login.bindRenewalInfo(URL location) Creates a new instance of an existingRenewalInfoand binds it to this login.bindRenewalInfo(X509Certificate certificate) Creates a new instance of an existingRenewalInfoand 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.newOrder()Creates a builder for a newOrder.protected voidsetKeyPair(KeyPair keyPair) Sets a differentKeyPair.
-
Konstruktordetails
-
Methodendetails
-
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.- Gibt zurück:
Accountbound to the login
-
bindAuthorization
Creates a new instance of an existingAuthorizationand binds it to this login.- Parameter:
location- Location of the Authorization- Gibt zurück:
Authorizationbound to the login
-
bindCertificate
Creates a new instance of an existingCertificateand binds it to this login.- Parameter:
location- Location of the Certificate- Gibt zurück:
Certificatebound to the login
-
bindOrder
Creates a new instance of an existingOrderand binds it to this login.- Parameter:
location- Location URL of the order- Gibt zurück:
Orderbound to the login
-
bindRenewalInfo
Creates a new instance of an existingRenewalInfoand binds it to this login.- Parameter:
location- Location URL of the renewal info- Gibt zurück:
RenewalInfobound to the login- Seit:
- 3.0.0
-
bindRenewalInfo
Creates a new instance of an existingRenewalInfoand binds it to this login.- Parameter:
certificate-X509Certificateto get theRenewalInfofor- Gibt zurück:
RenewalInfobound to the login- Löst aus:
AcmeException- Seit:
- 3.2.0
- Draft:
- This method is currently based on an RFC draft. It may be changed or removed without notice to reflect future changes to the draft. SemVer rules do not apply here.
-
bindChallenge
Creates a new instance of an existingChallengeand binds it to this login. Use this method only if the resulting challenge type is unknown.- Parameter:
location- Location URL of the challenge- Gibt zurück:
Challengebound to the login- Seit:
- 2.8
- Siehe auch:
-
bindChallenge
Creates a new instance of an existingChallengeand binds it to this login. Use this method if the resulting challenge type is known.- Parameter:
location- Location URL of the challengetype- Expected challenge type- Gibt zurück:
- Challenge bound to the login
- Löst aus:
AcmeProtocolException- if the challenge found at the location does not match the expected challenge type.- Seit:
- 2.12
-
createChallenge
Creates aChallengeinstance for the given challenge data.- Parameter:
data- Challenge JSON data- Gibt zurück:
Challengeinstance
-
newOrder
Creates a builder for a newOrder.- Gibt zurück:
OrderBuilderobject- Seit:
- 3.0.0
-
setKeyPair
Sets a differentKeyPair. The new key pair is only used locally in this instance, but is not set on server side!
-