Class TokenEnhancerUtility
java.lang.Object
com.broadleafcommerce.auth.user.session.token.enhancer.TokenEnhancerUtility
Utility to consolidate common operations performed in
JwtAccessTokenEnhancer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisClientOnly(JwtTokenEnhancerContext context) Determine if the givenJwtTokenEnhancerContextrepresents a "client-only" authorization.
-
Constructor Details
-
TokenEnhancerUtility
public TokenEnhancerUtility()
-
-
Method Details
-
isClientOnly
Determine if the givenJwtTokenEnhancerContextrepresents a "client-only" authorization. A client-only authorization does not have a User. For example, the Client Credentials grant type would be client-only.- Parameters:
context- TheJwtTokenEnhancerContextto evaluate.- Returns:
- True if the given
JwtTokenEnhancerContextis a client-only authorization, false otherwise.
-