Package step.core.access.authentication
Class JWTSettings
- java.lang.Object
-
- step.core.access.authentication.JWTSettings
-
public class JWTSettings extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_KEY_JWT_ALGO
static String
CONFIG_KEY_JWT_AUDIENCE
static String
CONFIG_KEY_JWT_AUDIENCE_CHECK
static String
CONFIG_KEY_JWT_CLOCKSKEW
static String
CONFIG_KEY_JWT_ISSUER
static String
CONFIG_KEY_JWT_ISSUER_CHECK
static String
CONFIG_KEY_JWT_REFRESH_COUNT_CLAIM_NAME
static String
CONFIG_KEY_JWT_REFRESH_LIMIT_CLAIM_NAME
static String
CONFIG_KEY_JWT_ROLE_JSONPATH_PREFIX
static String
CONFIG_KEY_JWT_ROLE_ORDER
static String
CONFIG_KEY_USER_CLAIM_NAME
static String
DEFAULT_ALGO
-
Constructor Summary
Constructors Constructor Description JWTSettings(io.jsonwebtoken.SignatureAlgorithm algo, String signingSecret, io.jsonwebtoken.SigningKeyResolver signingKeyResolver, Long clockSkew, String audience, String issuer, Map<String,com.jayway.jsonpath.JsonPath> roleClaimJsonPathMap, String refreshCountClaimName, String refreshLimitClaimName, boolean checkIssuer, boolean checkAudience, com.jayway.jsonpath.JsonPath userClaimJsonPath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.jsonwebtoken.SignatureAlgorithm
getAlgo()
String
getAudience()
Long
getClockSkew()
static String
getConfigKey(String configKeyJwtAlgo, String jwtType)
String
getIssuer()
String
getRefreshCountClaimName()
String
getRefreshLimitClaimName()
Map<String,com.jayway.jsonpath.JsonPath>
getRoleClaimJsonPathMap()
io.jsonwebtoken.SigningKeyResolver
getSigningKeyResolver()
String
getSigningSecret()
com.jayway.jsonpath.JsonPath
getUserClaimJsonPath()
boolean
isCheckAudience()
boolean
isCheckIssuer()
static Map<String,com.jayway.jsonpath.JsonPath>
parseRoleConfiguration(ch.exense.commons.app.Configuration configuration, String jwtType)
-
-
-
Field Detail
-
DEFAULT_ALGO
public static final String DEFAULT_ALGO
- See Also:
- Constant Field Values
-
CONFIG_KEY_JWT_ALGO
public static final String CONFIG_KEY_JWT_ALGO
- See Also:
- Constant Field Values
-
CONFIG_KEY_JWT_CLOCKSKEW
public static final String CONFIG_KEY_JWT_CLOCKSKEW
- See Also:
- Constant Field Values
-
CONFIG_KEY_JWT_AUDIENCE
public static final String CONFIG_KEY_JWT_AUDIENCE
- See Also:
- Constant Field Values
-
CONFIG_KEY_JWT_ISSUER
public static final String CONFIG_KEY_JWT_ISSUER
- See Also:
- Constant Field Values
-
CONFIG_KEY_JWT_ROLE_JSONPATH_PREFIX
public static final String CONFIG_KEY_JWT_ROLE_JSONPATH_PREFIX
- See Also:
- Constant Field Values
-
CONFIG_KEY_JWT_ROLE_ORDER
public static final String CONFIG_KEY_JWT_ROLE_ORDER
- See Also:
- Constant Field Values
-
CONFIG_KEY_USER_CLAIM_NAME
public static final String CONFIG_KEY_USER_CLAIM_NAME
- See Also:
- Constant Field Values
-
CONFIG_KEY_JWT_REFRESH_COUNT_CLAIM_NAME
public static final String CONFIG_KEY_JWT_REFRESH_COUNT_CLAIM_NAME
- See Also:
- Constant Field Values
-
CONFIG_KEY_JWT_REFRESH_LIMIT_CLAIM_NAME
public static final String CONFIG_KEY_JWT_REFRESH_LIMIT_CLAIM_NAME
- See Also:
- Constant Field Values
-
CONFIG_KEY_JWT_ISSUER_CHECK
public static final String CONFIG_KEY_JWT_ISSUER_CHECK
- See Also:
- Constant Field Values
-
CONFIG_KEY_JWT_AUDIENCE_CHECK
public static final String CONFIG_KEY_JWT_AUDIENCE_CHECK
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JWTSettings
public JWTSettings(io.jsonwebtoken.SignatureAlgorithm algo, String signingSecret, io.jsonwebtoken.SigningKeyResolver signingKeyResolver, Long clockSkew, String audience, String issuer, Map<String,com.jayway.jsonpath.JsonPath> roleClaimJsonPathMap, String refreshCountClaimName, String refreshLimitClaimName, boolean checkIssuer, boolean checkAudience, com.jayway.jsonpath.JsonPath userClaimJsonPath)
-
-
Method Detail
-
parseRoleConfiguration
public static Map<String,com.jayway.jsonpath.JsonPath> parseRoleConfiguration(ch.exense.commons.app.Configuration configuration, String jwtType)
-
getAlgo
public io.jsonwebtoken.SignatureAlgorithm getAlgo()
-
getSigningSecret
public String getSigningSecret()
-
getSigningKeyResolver
public io.jsonwebtoken.SigningKeyResolver getSigningKeyResolver()
-
getClockSkew
public Long getClockSkew()
-
getAudience
public String getAudience()
-
getIssuer
public String getIssuer()
-
getUserClaimJsonPath
public com.jayway.jsonpath.JsonPath getUserClaimJsonPath()
-
getRefreshCountClaimName
public String getRefreshCountClaimName()
-
getRefreshLimitClaimName
public String getRefreshLimitClaimName()
-
isCheckIssuer
public boolean isCheckIssuer()
-
isCheckAudience
public boolean isCheckAudience()
-
-