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 Summary
Nested Classes Modifier and Type Class Description static class
AcmeChallenge.Type
An Automatic Certificate Management Environment (ACME) challenge type.static class
AcmeChallenge.UnknownType
An unknown challenge type.
-
Field Summary
Fields Modifier and Type Field Description private String
identifierType
private String
identifierValue
private String
token
private AcmeChallenge.Type
type
private String
url
-
Constructor Summary
Constructors Constructor Description AcmeChallenge(AcmeChallenge.Type type, String url, String token, String identifierType, String identifierValue)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIdentifierType()
Get the identifier type associated with the challenge.String
getIdentifierValue()
Get the identifier value associated with the challenge.String
getKeyAuthorization(AcmeAccount account)
Get the key authorization string for this challenge.String
getToken()
Get the challenge token.AcmeChallenge.Type
getType()
Get the challenge type.String
getUrl()
Get the challenge URL.
-
-
-
Field Detail
-
type
private final AcmeChallenge.Type type
-
url
private final String url
-
token
private final String token
-
identifierType
private final String identifierType
-
identifierValue
private final String identifierValue
-
-
Constructor Detail
-
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 Detail
-
getType
public AcmeChallenge.Type getType()
Get the challenge type.- Returns:
- the challenge type
-
getUrl
public String getUrl()
Get the challenge URL.- Returns:
- the challenge URL
-
getToken
public String getToken()
Get the challenge token.- Returns:
- the challenge token
-
getIdentifierType
public String getIdentifierType()
Get the identifier type associated with the challenge.- Returns:
- the identifier type associated with the challenge
-
getIdentifierValue
public String getIdentifierValue()
Get the identifier value associated with the challenge.- Returns:
- the identifier value associated with the challenge
-
getKeyAuthorization
public String getKeyAuthorization(AcmeAccount account) throws AcmeException
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
-
-