public interface OAuth2AuthenticatedPrincipal
extends org.springframework.security.core.AuthenticatedPrincipal
AuthenticatedPrincipal that represents the principal
associated with an OAuth 2.0 token.| Modifier and Type | Method and Description |
|---|---|
default <A> A |
getAttribute(java.lang.String name)
Get the OAuth 2.0 token attribute by name
|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Get the OAuth 2.0 token attributes
|
java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities()
Get the
Collection of GrantedAuthoritys associated
with this OAuth 2.0 token |
@Nullable default <A> A getAttribute(java.lang.String name)
A - the type of the attributename - the name of the attributenull otherwisejava.util.Map<java.lang.String,java.lang.Object> getAttributes()
java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
Collection of GrantedAuthoritys associated
with this OAuth 2.0 token