Class JWTSettings


  • public class JWTSettings
    extends java.lang.Object
    • Field Detail

      • 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()