Class JwtTokenEnhancerContext
java.lang.Object
com.broadleafcommerce.auth.user.session.token.enhancer.JwtTokenEnhancerContext
A wrapper for
JwtEncodingContext
that includes a map for additional context.- Author:
- Cade Rea (cade-rea)
-
Constructor Summary
ConstructorDescriptionJwtTokenEnhancerContext
(org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext jwtEncodingContext) -
Method Summary
Modifier and TypeMethodDescription<V> V
<V> V
Arbitrary map that can be used by enhancer implementations to pass and share information (ex: from earlier-precedence enhancers to later, downstream enhancers) between each other without affectingjwtEncodingContext
.<V> V
org.springframework.security.oauth2.server.authorization.OAuth2Authorization
<T extends org.springframework.security.core.Authentication>
Torg.springframework.security.oauth2.core.AuthorizationGrantType
org.springframework.security.oauth2.server.authorization.context.AuthorizationServerContext
org.springframework.security.oauth2.jwt.JwtClaimsSet.Builder
org.springframework.security.oauth2.jwt.JwsHeader.Builder
org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext
TheJwtEncodingContext
created by an AuthenticationProvider in theOAuth2TokenEndpointFilter
.<T extends org.springframework.security.core.Authentication>
Torg.springframework.security.oauth2.server.authorization.client.RegisteredClient
org.springframework.security.oauth2.server.authorization.OAuth2TokenType
boolean
boolean
-
Constructor Details
-
JwtTokenEnhancerContext
public JwtTokenEnhancerContext(org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext jwtEncodingContext)
-
-
Method Details
-
getAdditionalContext
-
hasAdditionalContextKey
-
getJwtEncodingContext
public org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext getJwtEncodingContext()TheJwtEncodingContext
created by an AuthenticationProvider in theOAuth2TokenEndpointFilter
. This context contains User and client authentication tokens, authorization tokens, and access token claims.- See Also:
-
OAuth2AuthorizationCodeAuthenticationProvider
OAuth2ClientCredentialsAuthenticationProvider
-
getAdditionalContext
Arbitrary map that can be used by enhancer implementations to pass and share information (ex: from earlier-precedence enhancers to later, downstream enhancers) between each other without affectingjwtEncodingContext
. This value is entirely an implementation detail and can contain arbitrary data - it's up to enhancers how to use this information to populate the final token. -
get
-
hasKey
-
getJwsHeader
public org.springframework.security.oauth2.jwt.JwsHeader.Builder getJwsHeader() -
getClaims
public org.springframework.security.oauth2.jwt.JwtClaimsSet.Builder getClaims() -
getRegisteredClient
public org.springframework.security.oauth2.server.authorization.client.RegisteredClient getRegisteredClient() -
getPrincipal
public <T extends org.springframework.security.core.Authentication> T getPrincipal() -
getAuthorizationServerContext
public org.springframework.security.oauth2.server.authorization.context.AuthorizationServerContext getAuthorizationServerContext() -
getAuthorization
public org.springframework.security.oauth2.server.authorization.OAuth2Authorization getAuthorization() -
getAuthorizedScopes
-
getTokenType
public org.springframework.security.oauth2.server.authorization.OAuth2TokenType getTokenType() -
getAuthorizationGrantType
public org.springframework.security.oauth2.core.AuthorizationGrantType getAuthorizationGrantType() -
getAuthorizationGrant
public <T extends org.springframework.security.core.Authentication> T getAuthorizationGrant() -
get
-