public final class DefaultOAuth2AuthenticatedPrincipal extends java.lang.Object implements OAuth2AuthenticatedPrincipal, java.io.Serializable
| Constructor and Description |
|---|
DefaultOAuth2AuthenticatedPrincipal(java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.Collection<org.springframework.security.core.GrantedAuthority> authorities)
Constructs an
DefaultOAuth2AuthenticatedPrincipal using the provided parameters. |
DefaultOAuth2AuthenticatedPrincipal(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.Collection<org.springframework.security.core.GrantedAuthority> authorities)
Constructs an
DefaultOAuth2AuthenticatedPrincipal using the provided parameters. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Gets the attributes of the OAuth 2.0 token in map form.
|
java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities()
Get the
Collection of GrantedAuthoritys associated
with this OAuth 2.0 token |
java.lang.String |
getName() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributepublic DefaultOAuth2AuthenticatedPrincipal(java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.Collection<org.springframework.security.core.GrantedAuthority> authorities)
DefaultOAuth2AuthenticatedPrincipal using the provided parameters.attributes - the attributes of the OAuth 2.0 tokenauthorities - the authorities of the OAuth 2.0 tokenpublic DefaultOAuth2AuthenticatedPrincipal(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.Collection<org.springframework.security.core.GrantedAuthority> authorities)
DefaultOAuth2AuthenticatedPrincipal using the provided parameters.name - the name attached to the OAuth 2.0 tokenattributes - the attributes of the OAuth 2.0 tokenauthorities - the authorities of the OAuth 2.0 tokenpublic java.util.Map<java.lang.String,java.lang.Object> getAttributes()
getAttributes in interface OAuth2AuthenticatedPrincipalMap of the attribute's objects keyed by the attribute's namespublic java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
Collection of GrantedAuthoritys associated
with this OAuth 2.0 tokengetAuthorities in interface OAuth2AuthenticatedPrincipalpublic java.lang.String getName()
getName in interface org.springframework.security.core.AuthenticatedPrincipal