Class AcmeChallenge
- java.lang.Object
- 
- org.wildfly.security.x500.cert.acme.AcmeChallenge
 
- 
 public final class AcmeChallenge extends Object A class that represents an Automatic Certificate Management Environment (ACME) challenge.- Since:
- 1.5.0
- Author:
- Farah Juma
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classAcmeChallenge.TypeAn Automatic Certificate Management Environment (ACME) challenge type.static classAcmeChallenge.UnknownTypeAn unknown challenge type.
 - 
Field SummaryFields Modifier and Type Field Description private StringidentifierTypeprivate StringidentifierValueprivate Stringtokenprivate AcmeChallenge.Typetypeprivate Stringurl
 - 
Constructor SummaryConstructors Constructor Description AcmeChallenge(AcmeChallenge.Type type, String url, String token, String identifierType, String identifierValue)Construct a new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetIdentifierType()Get the identifier type associated with the challenge.StringgetIdentifierValue()Get the identifier value associated with the challenge.StringgetKeyAuthorization(AcmeAccount account)Get the key authorization string for this challenge.StringgetToken()Get the challenge token.AcmeChallenge.TypegetType()Get the challenge type.StringgetUrl()Get the challenge URL.
 
- 
- 
- 
Field Detail- 
typeprivate final AcmeChallenge.Type type 
 - 
urlprivate final String url 
 - 
tokenprivate final String token 
 - 
identifierTypeprivate final String identifierType 
 - 
identifierValueprivate final String identifierValue 
 
- 
 - 
Constructor Detail- 
AcmeChallengepublic AcmeChallenge(AcmeChallenge.Type type, String url, String token, String identifierType, String identifierValue) Construct a new instance.- Parameters:
- type- the challenge type (must not be- null)
- url- the challenge URL (must not be- null)
- token- the challenge token (must not be- null)
- identifierType- the identifier type associated with the challenge (must not be- null)
- identifierValue- the identifier value associated with the challenge (must not be- null)
 
 
- 
 - 
Method Detail- 
getTypepublic AcmeChallenge.Type getType() Get the challenge type.- Returns:
- the challenge type
 
 - 
getUrlpublic String getUrl() Get the challenge URL.- Returns:
- the challenge URL
 
 - 
getTokenpublic String getToken() Get the challenge token.- Returns:
- the challenge token
 
 - 
getIdentifierTypepublic String getIdentifierType() Get the identifier type associated with the challenge.- Returns:
- the identifier type associated with the challenge
 
 - 
getIdentifierValuepublic String getIdentifierValue() Get the identifier value associated with the challenge.- Returns:
- the identifier value associated with the challenge
 
 - 
getKeyAuthorizationpublic String getKeyAuthorization(AcmeAccount account) throws AcmeException Get the key authorization string for this challenge.- Parameters:
- account- the ACME account information to use (must not be- null)
- Returns:
- the key authorization string for this challenge
- Throws:
- AcmeException- if the key authorization string cannot be determined
 
 
- 
 
-