Package step.core.access.authentication
Class JWTSettingsBuilder
- java.lang.Object
-
- step.core.access.authentication.JWTSettingsBuilder
-
public class JWTSettingsBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JWTSettingsBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JWTSettings
build()
JWTSettingsBuilder
setAlgo(java.lang.String algo)
JWTSettingsBuilder
setAudience(java.lang.String audience)
JWTSettingsBuilder
setCheckAudience(boolean checkAudience)
JWTSettingsBuilder
setCheckIssuer(boolean checkIssuer)
JWTSettingsBuilder
setClockSkew(java.lang.Long clockSkew)
JWTSettingsBuilder
setIssuer(java.lang.String issuer)
JWTSettingsBuilder
setRefreshCountClaimName(java.lang.String refreshCountClaimName)
JWTSettingsBuilder
setRefreshLimitClaimName(java.lang.String refreshLimitClaimName)
JWTSettingsBuilder
setRoleClaimJsonPathMap(java.util.Map<java.lang.String,com.jayway.jsonpath.JsonPath> roleClaimJsonPathMap)
JWTSettingsBuilder
setRoleClaimSource(java.lang.String roleClaimSource)
JWTSettingsBuilder
setSigningKeyResolver(io.jsonwebtoken.SigningKeyResolver signingKeyResolver)
JWTSettingsBuilder
setSigningSecret(java.lang.String signingSecret)
JWTSettingsBuilder
setUserClaimJsonPath(java.lang.String userClaimJsonPath)
JWTSettingsBuilder
setUserClaimSource(java.lang.String userClaimSource)
-
-
-
Method Detail
-
setAlgo
public JWTSettingsBuilder setAlgo(java.lang.String algo)
-
setSigningSecret
public JWTSettingsBuilder setSigningSecret(java.lang.String signingSecret)
-
setSigningKeyResolver
public JWTSettingsBuilder setSigningKeyResolver(io.jsonwebtoken.SigningKeyResolver signingKeyResolver)
-
setClockSkew
public JWTSettingsBuilder setClockSkew(java.lang.Long clockSkew)
-
setAudience
public JWTSettingsBuilder setAudience(java.lang.String audience)
-
setIssuer
public JWTSettingsBuilder setIssuer(java.lang.String issuer)
-
setRoleClaimSource
public JWTSettingsBuilder setRoleClaimSource(java.lang.String roleClaimSource)
-
setRoleClaimJsonPathMap
public JWTSettingsBuilder setRoleClaimJsonPathMap(java.util.Map<java.lang.String,com.jayway.jsonpath.JsonPath> roleClaimJsonPathMap)
-
setRefreshCountClaimName
public JWTSettingsBuilder setRefreshCountClaimName(java.lang.String refreshCountClaimName)
-
setRefreshLimitClaimName
public JWTSettingsBuilder setRefreshLimitClaimName(java.lang.String refreshLimitClaimName)
-
setCheckIssuer
public JWTSettingsBuilder setCheckIssuer(boolean checkIssuer)
-
setCheckAudience
public JWTSettingsBuilder setCheckAudience(boolean checkAudience)
-
setUserClaimSource
public JWTSettingsBuilder setUserClaimSource(java.lang.String userClaimSource)
-
setUserClaimJsonPath
public JWTSettingsBuilder setUserClaimJsonPath(java.lang.String userClaimJsonPath)
-
build
public JWTSettings build()
-
-