Class Acme
- java.lang.Object
-
- org.wildfly.security.x500.cert.acme.Acme
-
public final class Acme extends Object
Useful constants and utilities related to the Automatic Certificate Management Environment (ACME) protocol.- Since:
- 1.5.0
- Author:
- Farah Juma
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Acme()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static String
base64UrlEncode(byte[] data)
private static byte[]
coordinateToByteArray(int fieldSize, BigInteger coordinate)
(package private) static String
getAlgHeaderFromSignatureAlgorithm(String signatureAlgorithm)
Get the JWS "alg" header parameter value that corresponds to the given signature algorithm.private static String
getCurveParameterFromAlgHeader(String algHeader)
(package private) static jakarta.json.JsonObject
getJwk(PublicKey publicKey, String algHeader)
private static byte[]
modulusToByteArray(BigInteger modulus)
-
-
-
Field Detail
-
ACCOUNT
public static final String ACCOUNT
- See Also:
- Constant Field Values
-
ALG
public static final String ALG
- See Also:
- Constant Field Values
-
AUTHORIZATION
public static final String AUTHORIZATION
- See Also:
- Constant Field Values
-
AUTHORIZATIONS
public static final String AUTHORIZATIONS
- See Also:
- Constant Field Values
-
CAA_IDENTITIES
public static final String CAA_IDENTITIES
- See Also:
- Constant Field Values
-
CERTIFICATE
public static final String CERTIFICATE
- See Also:
- Constant Field Values
-
CHALLENGES
public static final String CHALLENGES
- See Also:
- Constant Field Values
-
CONTACT
public static final String CONTACT
- See Also:
- Constant Field Values
-
CURVE
public static final String CURVE
- See Also:
- Constant Field Values
-
CSR
public static final String CSR
- See Also:
- Constant Field Values
-
DEACTIVATED
public static final String DEACTIVATED
- See Also:
- Constant Field Values
-
DETAIL
public static final String DETAIL
- See Also:
- Constant Field Values
-
DNS
public static final String DNS
- See Also:
- Constant Field Values
-
EXPONENT
public static final String EXPONENT
- See Also:
- Constant Field Values
-
EXTERNAL_ACCOUNT_REQUIRED
public static final String EXTERNAL_ACCOUNT_REQUIRED
- See Also:
- Constant Field Values
-
FINALIZE
public static final String FINALIZE
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final String IDENTIFIER
- See Also:
- Constant Field Values
-
IDENTIFIERS
public static final String IDENTIFIERS
- See Also:
- Constant Field Values
-
INSTANCE
public static final String INSTANCE
- See Also:
- Constant Field Values
-
INVALID
public static final String INVALID
- See Also:
- Constant Field Values
-
JWK
public static final String JWK
- See Also:
- Constant Field Values
-
KEY_TYPE
public static final String KEY_TYPE
- See Also:
- Constant Field Values
-
KID
public static final String KID
- See Also:
- Constant Field Values
-
META
public static final String META
- See Also:
- Constant Field Values
-
MODULUS
public static final String MODULUS
- See Also:
- Constant Field Values
-
NEW_KEY
public static final String NEW_KEY
- See Also:
- Constant Field Values
-
NONCE
public static final String NONCE
- See Also:
- Constant Field Values
-
OLD_KEY
public static final String OLD_KEY
- See Also:
- Constant Field Values
-
ONLY_RETURN_EXISTING
public static final String ONLY_RETURN_EXISTING
- See Also:
- Constant Field Values
-
ORDER
public static final String ORDER
- See Also:
- Constant Field Values
-
PAYLOAD
public static final String PAYLOAD
- See Also:
- Constant Field Values
-
PENDING
public static final String PENDING
- See Also:
- Constant Field Values
-
PROTECTED
public static final String PROTECTED
- See Also:
- Constant Field Values
-
REASON
public static final String REASON
- See Also:
- Constant Field Values
-
SIGNATURE
public static final String SIGNATURE
- See Also:
- Constant Field Values
-
STATUS
public static final String STATUS
- See Also:
- Constant Field Values
-
SUBPROBLEMS
public static final String SUBPROBLEMS
- See Also:
- Constant Field Values
-
TERMS_OF_SERVICE
public static final String TERMS_OF_SERVICE
- See Also:
- Constant Field Values
-
TERMS_OF_SERVICE_AGREED
public static final String TERMS_OF_SERVICE_AGREED
- See Also:
- Constant Field Values
-
TOKEN
public static final String TOKEN
- See Also:
- Constant Field Values
-
TITLE
public static final String TITLE
- See Also:
- Constant Field Values
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
URL
public static final String URL
- See Also:
- Constant Field Values
-
VALID
public static final String VALID
- See Also:
- Constant Field Values
-
VALUE
public static final String VALUE
- See Also:
- Constant Field Values
-
WEBSITE
public static final String WEBSITE
- See Also:
- Constant Field Values
-
X_COORDINATE
public static final String X_COORDINATE
- See Also:
- Constant Field Values
-
Y_COORDINATE
public static final String Y_COORDINATE
- See Also:
- Constant Field Values
-
GET
public static final String GET
- See Also:
- Constant Field Values
-
HEAD
public static final String HEAD
- See Also:
- Constant Field Values
-
POST
public static final String POST
- See Also:
- Constant Field Values
-
ACCEPT_LANGUAGE
public static final String ACCEPT_LANGUAGE
- See Also:
- Constant Field Values
-
CONTENT_TYPE
public static final String CONTENT_TYPE
- See Also:
- Constant Field Values
-
LOCATION
public static final String LOCATION
- See Also:
- Constant Field Values
-
REPLAY_NONCE
public static final String REPLAY_NONCE
- See Also:
- Constant Field Values
-
RETRY_AFTER
public static final String RETRY_AFTER
- See Also:
- Constant Field Values
-
JSON_CONTENT_TYPE
public static final String JSON_CONTENT_TYPE
- See Also:
- Constant Field Values
-
PROBLEM_JSON_CONTENT_TYPE
public static final String PROBLEM_JSON_CONTENT_TYPE
- See Also:
- Constant Field Values
-
JOSE_JSON_CONTENT_TYPE
public static final String JOSE_JSON_CONTENT_TYPE
- See Also:
- Constant Field Values
-
PEM_CERTIFICATE_CHAIN_CONTENT_TYPE
public static final String PEM_CERTIFICATE_CHAIN_CONTENT_TYPE
- See Also:
- Constant Field Values
-
USER_AGENT
public static final String USER_AGENT
- See Also:
- Constant Field Values
-
ERROR_TYPE_PREFIX
public static final String ERROR_TYPE_PREFIX
- See Also:
- Constant Field Values
-
BAD_NONCE
public static final String BAD_NONCE
- See Also:
- Constant Field Values
-
USER_ACTION_REQUIRED
public static final String USER_ACTION_REQUIRED
- See Also:
- Constant Field Values
-
RATE_LIMITED
public static final String RATE_LIMITED
- See Also:
- Constant Field Values
-
BASE64_URL
static final org.wildfly.common.codec.Base64Alphabet BASE64_URL
The RFC 4648 base64url alphabet.
-
-
Method Detail
-
getAlgHeaderFromSignatureAlgorithm
static String getAlgHeaderFromSignatureAlgorithm(String signatureAlgorithm)
Get the JWS "alg" header parameter value that corresponds to the given signature algorithm.- Parameters:
signatureAlgorithm
- the signature algorithm- Returns:
- the JWS "alg" header parameter value that corresponds to the given signature algorithm
- Throws:
IllegalArgumentException
- if the given signature algorithm is not supported
-
modulusToByteArray
private static byte[] modulusToByteArray(BigInteger modulus)
-
coordinateToByteArray
private static byte[] coordinateToByteArray(int fieldSize, BigInteger coordinate)
-
getCurveParameterFromAlgHeader
private static String getCurveParameterFromAlgHeader(String algHeader)
-
base64UrlEncode
static String base64UrlEncode(byte[] data)
-
-