java.lang.Object
org.shredzone.acme4j.AcmeResource
org.shredzone.acme4j.AcmeJsonResource
org.shredzone.acme4j.Account
- Alle implementierten Schnittstellen:
Serializable
A representation of an account at the ACME server.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidChanges theKeyPairassociated with the account.voidPermanently deactivates an account.List of registered contact addresses (emails, phone numbers etc).Returns the key identifier of the external non-ACME account.Returns the current status of the account.Returns if the user agreed to the terms of service.booleanReturnstrueif the account is bound to an external non-ACME account.modify()Modifies the account data of the account.newOrder()Creates a builder for a newOrder.preAuthorize(Identifier identifier) Pre-authorizes anIdentifier.preAuthorizeDomain(String domain) Pre-authorizes a domain.Von Klasse geerbte Methoden org.shredzone.acme4j.AcmeJsonResource
fetch, getJSON, getRetryAfter, invalidate, isValid, setJSON, setRetryAfter, updateVon Klasse geerbte Methoden org.shredzone.acme4j.AcmeResource
finalize, getLocation, getLogin, getSession, rebind
-
Konstruktordetails
-
Account
-
-
Methodendetails
-
getTermsOfServiceAgreed
Returns if the user agreed to the terms of service.- Gibt zurück:
trueif the user agreed to the terms of service. May be empty if the server did not provide such an information.
-
getContacts
List of registered contact addresses (emails, phone numbers etc).This list is unmodifiable. Use
modify()to change the contacts. May be empty, but is nevernull. -
getStatus
Returns the current status of the account.Possible values are:
Status.VALID,Status.DEACTIVATED,Status.REVOKED. -
hasExternalAccountBinding
Returnstrueif the account is bound to an external non-ACME account.- Seit:
- 2.8
-
getKeyIdentifier
Returns the key identifier of the external non-ACME account. If this account is not bound to an external account, the result is empty.- Seit:
- 2.8
-
getOrders
Returns anIteratorof allOrderbelonging to thisAccount.Using the iterator will initiate one or more requests to the ACME server.
- Gibt zurück:
Iteratorinstance that returnsOrderobjects in no specific sorting order.Iterator.hasNext()andIterator.next()may throwAcmeProtocolExceptionif a batch of authorization URIs could not be fetched from the server.
-
newOrder
Creates a builder for a newOrder.- Gibt zurück:
OrderBuilderobject
-
preAuthorizeDomain
Pre-authorizes a domain. The CA will check if it accepts the domain for certification, and returns the necessary challenges.Some servers may not allow pre-authorization.
It is not possible to pre-authorize wildcard domains.
- Parameter:
domain- Domain name to be pre-authorized. IDN names are accepted and will be ACE encoded automatically.- Gibt zurück:
Authorizationobject for this domain- Löst aus:
AcmeException- if the server does not allow pre-authorizationAcmeServerException- if the server allows pre-authorization, but will refuse to issue a certificate for this domain
-
preAuthorize
Pre-authorizes anIdentifier. The CA will check if it accepts the identifier for certification, and returns the necessary challenges.Some servers may not allow pre-authorization.
It is not possible to pre-authorize wildcard domains.
- Parameter:
identifier-Identifierto be pre-authorized.- Gibt zurück:
Authorizationobject for this identifier- Löst aus:
AcmeException- if the server does not allow pre-authorizationAcmeServerException- if the server allows pre-authorization, but will refuse to issue a certificate for this identifier- Seit:
- 2.3
-
changeKey
Changes theKeyPairassociated with the account.After a successful call, the new key pair is already set in the associated
Login. The old key pair can be discarded.- Parameter:
newKeyPair- newKeyPairto be used for identifying this account- Löst aus:
AcmeException
-
deactivate
Permanently deactivates an account. Related certificates may still be valid after account deactivation, and need to be revoked separately if neccessary.A deactivated account cannot be reactivated!
- Löst aus:
AcmeException
-
modify
Modifies the account data of the account.- Gibt zurück:
Account.EditableAccountwhere the account can be modified
-