Class JWTSettings


  • public class JWTSettings
    extends Object
    • 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

      • getConfigKey

        public static String getConfigKey​(String configKeyJwtAlgo,
                                          String jwtType)
      • 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()
      • getRoleClaimJsonPathMap

        public Map<String,​com.jayway.jsonpath.JsonPath> getRoleClaimJsonPathMap()
      • getRefreshCountClaimName

        public String getRefreshCountClaimName()
      • getRefreshLimitClaimName

        public String getRefreshLimitClaimName()
      • isCheckIssuer

        public boolean isCheckIssuer()
      • isCheckAudience

        public boolean isCheckAudience()