public class RegistrationBuilder extends Object
Constructor and Description |
---|
RegistrationBuilder() |
Modifier and Type | Method and Description |
---|---|
RegistrationBuilder |
addContact(String contact)
Add a contact address to the list of contacts.
|
RegistrationBuilder |
addContact(URI contact)
Add a contact URI to the list of contacts.
|
Registration |
create(Session session)
Creates a new account.
|
public RegistrationBuilder()
public RegistrationBuilder addContact(URI contact)
contact
- Contact URIpublic RegistrationBuilder addContact(String contact)
This is a convenience call for addContact(URI)
.
contact
- Contact URI as stringIllegalArgumentException
- if there is a syntax error in the URI stringpublic Registration create(Session session) throws AcmeException
session
- Session
to be used for registrationRegistration
referring to the new accountAcmeConflictException
- if there is already an account for the connection's key pair.
AcmeConflictException.getLocation()
contains the registration's
location URI.AcmeException
Copyright © 2015–2019. All rights reserved.