Class FixedPrincipalExtractor
- java.lang.Object
- org.springframework.boot.autoconfigure.security.oauth2.resource.FixedPrincipalExtractor
- All Implemented Interfaces:
PrincipalExtractor
public class FixedPrincipalExtractor extends Object implements PrincipalExtractor
Default implementation ofPrincipalExtractor
. Extracts the principal from the map with well known keys.- Since:
- 1.4.0
Constructor Summary
Constructors Constructor Description FixedPrincipalExtractor()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
extractPrincipal(Map<String,Object> map)
Extract the principal that should be used for the token.
Constructor Detail
FixedPrincipalExtractor
public FixedPrincipalExtractor()
Method Detail
extractPrincipal
public Object extractPrincipal(Map<String,Object> map)
Description copied from interface:PrincipalExtractor
Extract the principal that should be used for the token.- Specified by:
extractPrincipal
in interfacePrincipalExtractor
- Parameters:
map
- the source map- Returns:
- the extracted principal or
null