Class LocalAuthoritiesExtractor
java.lang.Object
com.sap.cloud.security.xsuaa.extractor.LocalAuthoritiesExtractor
- All Implemented Interfaces:
AuthoritiesExtractor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.springframework.security.core.GrantedAuthority>getAuthorities(XsuaaToken jwt) Returns the granted authorities based on the information in the Jwt.getScopes(XsuaaToken jwt, String appId)
-
Field Details
-
appId
-
-
Constructor Details
-
LocalAuthoritiesExtractor
-
-
Method Details
-
getAuthorities
public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities(XsuaaToken jwt) Description copied from interface:AuthoritiesExtractorReturns the granted authorities based on the information in the Jwt. A standard implementation will base the granted authorities on the scopes.- Specified by:
getAuthoritiesin interfaceAuthoritiesExtractor- Parameters:
jwt- the Jwt to extract the authorities from.- Returns:
- the collection of granted authorities.
-
getScopes
-