java.lang.Object
org.shredzone.acme4j.Login
public class Login extends java.lang.Object
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Authorization
bindAuthorization(java.net.URL location)
Creates a new instance ofAuthorization
and binds it to this login.Certificate
bindCertificate(java.net.URL location)
Creates a new instance ofCertificate
and binds it to this login.Challenge
bindChallenge(java.net.URL location)
Creates a new instance ofChallenge
and binds it to this login.Order
bindOrder(java.net.URL location)
Creates a new instance ofOrder
and binds it to this login.Challenge
createChallenge(JSON data)
Creates aChallenge
instance for the given challenge data.Account
getAccount()
Gets theAccount
that is bound to this login.java.net.URL
getAccountLocation()
Gets the locationURL
of the account.java.security.KeyPair
getKeyPair()
Gets theKeyPair
of the ACME account.Session
getSession()
Gets theSession
that is used.protected void
setKeyPair(java.security.KeyPair keyPair)
Sets a differentKeyPair
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Method Details
-
getSession
Gets theSession
that is used. -
getKeyPair
Gets theKeyPair
of the ACME account. -
getAccountLocation
Gets the locationURL
of the account. -
getAccount
Gets theAccount
that is bound to this login.- Returns:
Account
bound to the login
-
bindAuthorization
Creates a new instance ofAuthorization
and binds it to this login.- Parameters:
location
- Location of the Authorization- Returns:
Authorization
bound to the login
-
bindCertificate
Creates a new instance ofCertificate
and binds it to this login.- Parameters:
location
- Location of the Certificate- Returns:
Certificate
bound to the login
-
bindOrder
Creates a new instance ofOrder
and binds it to this login.- Parameters:
location
- Location URL of the order- Returns:
Order
bound to the login
-
bindChallenge
Creates a new instance ofChallenge
and binds it to this login.- Parameters:
location
- Location URL of the order- Returns:
Challenge
bound to the login- Since:
- 2.8
-
createChallenge
Creates aChallenge
instance for the given challenge data.- Parameters:
data
- Challenge JSON data- Returns:
Challenge
instance
-
setKeyPair
Sets a differentKeyPair
.
-