Skip to content

Commit

Permalink
Add MP JWT 2.1 configuration properties
Browse files Browse the repository at this point in the history
  • Loading branch information
dblevins committed Sep 13, 2022
1 parent da693dd commit 9e928da
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions api/src/main/java/org/eclipse/microprofile/jwt/config/Names.java
Expand Up @@ -47,6 +47,11 @@ public interface Names {
*/
String DECRYPTOR_KEY_LOCATION = "mp.jwt.decrypt.key.location";

/**
* Key Management Algorithm property which can be set to either 'RSA-OAEP' or 'RSA-OAEP-256'
*/
String DECRYPTOR_KEY_ALGORITHM = "mp.jwt.decrypt.key.algorithm";

/**
* The expected iss claim value to validate against an MP-JWT.
*/
Expand All @@ -68,9 +73,20 @@ public interface Names {
*/
String TOKEN_COOKIE = "mp.jwt.token.cookie";

/**
* The number of seconds since 'iat' after which the token must be considered invalid.
*/
String TOKEN_AGE = "mp.jwt.verify.token.age";

/**
* The expected "aud" claim value(s), separated by commas. If specified, MP-JWT claim must be present and match one
* of the values.
*/
String AUDIENCES = "mp.jwt.verify.audiences";

/**
* The clock skew in seconds used during the token expiry and age verification.
*/
String CLOCK_SKEW = "mp.jwt.verify.clock.skew";

}

0 comments on commit 9e928da

Please sign in to comment.