public class NamedAdminAuthoritiesMapper extends Object implements OIDCAuthoritiesMapper
Constructor and Description |
---|
NamedAdminAuthoritiesMapper() |
Modifier and Type | Method and Description |
---|---|
Set<SubjectIssuerGrantedAuthority> |
getAdmins() |
Collection<? extends org.springframework.security.core.GrantedAuthority> |
mapAuthorities(com.nimbusds.jwt.JWT idToken,
UserInfo userInfo) |
void |
setAdmins(Set<SubjectIssuerGrantedAuthority> admins) |
public NamedAdminAuthoritiesMapper()
public Collection<? extends org.springframework.security.core.GrantedAuthority> mapAuthorities(com.nimbusds.jwt.JWT idToken, UserInfo userInfo)
mapAuthorities
in interface OIDCAuthoritiesMapper
idToken
- the ID Token (parsed as a JWT, cannot be @null)userInfo
- userInfo of the current user (could be @null)public Set<SubjectIssuerGrantedAuthority> getAdmins()
public void setAdmins(Set<SubjectIssuerGrantedAuthority> admins)
admins
- the admins to setCopyright © 2018. All rights reserved.