Class ImpersonationClaimsEnhancerChain
- java.lang.Object
-
- com.broadleafcommerce.auth.user.service.ImpersonationClaimsEnhancerChain
-
- All Implemented Interfaces:
ImpersonationClaimsEnhancer
public class ImpersonationClaimsEnhancerChain extends Object implements ImpersonationClaimsEnhancer
- Author:
- Nick Crum (ncrum)
-
-
Constructor Summary
Constructors Constructor Description ImpersonationClaimsEnhancerChain(List<ImpersonationClaimsEnhancer> delegates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
enhance(Map<String,Object> claims, OAuth2UserDetails impersonatedUser, ImpersonationRequestToken impersonationRequestToken)
Provides an opportunity for customization of the claims for an impersonatedOAuth2SessionToken
.
-
-
-
Constructor Detail
-
ImpersonationClaimsEnhancerChain
public ImpersonationClaimsEnhancerChain(List<ImpersonationClaimsEnhancer> delegates)
-
-
Method Detail
-
enhance
public Map<String,Object> enhance(Map<String,Object> claims, OAuth2UserDetails impersonatedUser, ImpersonationRequestToken impersonationRequestToken)
Description copied from interface:ImpersonationClaimsEnhancer
Provides an opportunity for customization of the claims for an impersonatedOAuth2SessionToken
.- Specified by:
enhance
in interfaceImpersonationClaimsEnhancer
- Parameters:
claims
- The claimsimpersonatedUser
- The impersonated userimpersonationRequestToken
- The impersonation request token- Returns:
- the enhanced claims
- See Also:
ImpersonationService.generateImpersonationToken(ImpersonationRequest, Authentication)
,ImpersonationService.consumeImpersonationToken(String)
-
-