public class AcmeAgreementRequiredException extends AcmeServerException
Constructor and Description |
---|
AcmeAgreementRequiredException(String type,
String detail,
URI agreementUri,
URI instance)
Creates a new
AcmeAgreementRequiredException . |
Modifier and Type | Method and Description |
---|---|
URI |
getAgreementUri()
Returns the
URI of the agreement document to accept, or null if
the server did not provide a link to such a document. |
URI |
getInstance()
Returns the
URI of a document showing a human how to agree to the terms and
conditions, or null if the server did not provide such a link. |
getAcmeErrorType, getType
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AcmeAgreementRequiredException(String type, String detail, URI agreementUri, URI instance)
AcmeAgreementRequiredException
.type
- System readable error type (here
"urn:ietf:params:acme:error:agreementRequired"
)detail
- Human readable error messageagreementUri
- URI
of the agreement document to acceptinstance
- URI
to be visited by a human, showing instructions for how to
agree to the terms and conditions.public URI getAgreementUri()
URI
of the agreement document to accept, or null
if
the server did not provide a link to such a document.public URI getInstance()
URI
of a document showing a human how to agree to the terms and
conditions, or null
if the server did not provide such a link.Copyright © 2015–2019. All rights reserved.