Class TokenEnhancerUtility
java.lang.Object
com.broadleafcommerce.auth.user.session.token.enhancer.TokenEnhancerUtility
Utility to consolidate common operations performed in
JwtAccessTokenEnhancer
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isClientOnly
(JwtTokenEnhancerContext context) Determine if the givenJwtTokenEnhancerContext
represents a "client-only" authorization.
-
Constructor Details
-
TokenEnhancerUtility
public TokenEnhancerUtility()
-
-
Method Details
-
isClientOnly
Determine if the givenJwtTokenEnhancerContext
represents 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
- TheJwtTokenEnhancerContext
to evaluate.- Returns:
- True if the given
JwtTokenEnhancerContext
is a client-only authorization, false otherwise.
-