Class JWTTokenProvider
java.lang.Object
org.apache.cxf.sts.token.provider.jwt.JWTTokenProvider
- All Implemented Interfaces:
TokenProvider
A TokenProvider implementation that provides a JWT Token.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandleToken(String tokenType) Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType.booleancanHandleToken(String tokenType, String realm) Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType in a given realm.createToken(TokenProviderParameters tokenParameters) Create a token given a TokenProviderParametersGet the map of realm->RealmProperties for this token providerbooleanReturn whether the provided token will be signed or not.voidsetJwtClaimsProvider(JWTClaimsProvider jwtClaimsProvider) voidsetRealmMap(Map<String, ? extends RealmProperties> realms) Set the map of realm->RealmProperties for this token providervoidsetSignToken(boolean signToken) Set whether the provided token will be signed or not.
-
Field Details
-
JWT_TOKEN_TYPE
- See Also:
-
-
Constructor Details
-
JWTTokenProvider
public JWTTokenProvider()
-
-
Method Details
-
canHandleToken
Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType.- Specified by:
canHandleTokenin interfaceTokenProvider
-
canHandleToken
Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType in a given realm.- Specified by:
canHandleTokenin interfaceTokenProvider
-
createToken
Create a token given a TokenProviderParameters- Specified by:
createTokenin interfaceTokenProvider
-
isSignToken
public boolean isSignToken()Return whether the provided token will be signed or not. Default is true. -
setSignToken
public void setSignToken(boolean signToken) Set whether the provided token will be signed or not. Default is true. -
setRealmMap
Set the map of realm->RealmProperties for this token provider- Parameters:
realms- the map of realm->RealmProperties for this token provider
-
getRealmMap
Get the map of realm->RealmProperties for this token provider- Returns:
- the map of realm->RealmProperties for this token provider
-
getJwtClaimsProvider
-
setJwtClaimsProvider
-