Class AcmeChallenge
java.lang.Object
org.wildfly.security.x500.cert.acme.AcmeChallenge
A class that represents an Automatic Certificate
Management Environment (ACME) challenge.
- Since:
- 1.5.0
- Author:
- Farah Juma
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn Automatic Certificate Management Environment (ACME) challenge type.static classAn unknown challenge type. -
Constructor Summary
ConstructorsConstructorDescriptionAcmeChallenge(AcmeChallenge.Type type, String url, String token, String identifierType, String identifierValue) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGet the identifier type associated with the challenge.Get the identifier value associated with the challenge.getKeyAuthorization(AcmeAccount account) Get the key authorization string for this challenge.getToken()Get the challenge token.getType()Get the challenge type.getUrl()Get the challenge URL.
-
Constructor Details
-
AcmeChallenge
public AcmeChallenge(AcmeChallenge.Type type, String url, String token, String identifierType, String identifierValue) Construct a new instance.- Parameters:
type- the challenge type (must not benull)url- the challenge URL (must not benull)token- the challenge token (must not benull)identifierType- the identifier type associated with the challenge (must not benull)identifierValue- the identifier value associated with the challenge (must not benull)
-
-
Method Details
-
getType
Get the challenge type.- Returns:
- the challenge type
-
getUrl
Get the challenge URL.- Returns:
- the challenge URL
-
getToken
Get the challenge token.- Returns:
- the challenge token
-
getIdentifierType
Get the identifier type associated with the challenge.- Returns:
- the identifier type associated with the challenge
-
getIdentifierValue
Get the identifier value associated with the challenge.- Returns:
- the identifier value associated with the challenge
-
getKeyAuthorization
Get the key authorization string for this challenge.- Parameters:
account- the ACME account information to use (must not benull)- Returns:
- the key authorization string for this challenge
- Throws:
AcmeException- if the key authorization string cannot be determined
-