public interface OAuth2AuthenticatedPrincipal extends 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 GrantedAuthority> |
getAuthorities()
Get the
Collection of GrantedAuthority s associated
with this OAuth 2.0 token |
getName
@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 GrantedAuthority> getAuthorities()
Collection
of GrantedAuthority
s associated
with this OAuth 2.0 token