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