Package com.azure.spring.aad
Class AADJwtGrantedAuthoritiesConverter
- java.lang.Object
-
- com.azure.spring.aad.AADJwtGrantedAuthoritiesConverter
-
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,Collection<org.springframework.security.core.GrantedAuthority>>
public class AADJwtGrantedAuthoritiesConverter extends Object implements org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,Collection<org.springframework.security.core.GrantedAuthority>>
Extracts theGrantedAuthoritys from scope attributes typically found in aJwt.
-
-
Constructor Summary
Constructors Constructor Description AADJwtGrantedAuthoritiesConverter()Creates a new instance ofAADJwtGrantedAuthoritiesConverter.AADJwtGrantedAuthoritiesConverter(Map<String,String> claimToAuthorityPrefixMap)Creates a new instance ofAADJwtGrantedAuthoritiesConverter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.springframework.security.core.GrantedAuthority>convert(org.springframework.security.oauth2.jwt.Jwt jwt)
-
-
-
Constructor Detail
-
AADJwtGrantedAuthoritiesConverter
public AADJwtGrantedAuthoritiesConverter()
Creates a new instance ofAADJwtGrantedAuthoritiesConverter.
-
AADJwtGrantedAuthoritiesConverter
public AADJwtGrantedAuthoritiesConverter(Map<String,String> claimToAuthorityPrefixMap)
Creates a new instance ofAADJwtGrantedAuthoritiesConverter.- Parameters:
claimToAuthorityPrefixMap- the claim to authority prefix map
-
-
Method Detail
-
convert
public Collection<org.springframework.security.core.GrantedAuthority> convert(org.springframework.security.oauth2.jwt.Jwt jwt)
- Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,Collection<org.springframework.security.core.GrantedAuthority>>
-
-