public final class OAuth2IntrospectionAuthenticatedPrincipal extends java.lang.Object implements OAuth2IntrospectionClaimAccessor, org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal, java.io.Serializable
| Constructor and Description |
|---|
OAuth2IntrospectionAuthenticatedPrincipal(java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.Collection<org.springframework.security.core.GrantedAuthority> authorities)
Constructs an
OAuth2IntrospectionAuthenticatedPrincipal using the provided
parameters. |
OAuth2IntrospectionAuthenticatedPrincipal(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
OAuth2IntrospectionAuthenticatedPrincipal 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 Introspection 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 Introspection |
java.util.Map<java.lang.String,java.lang.Object> |
getClaims() |
java.lang.String |
getName() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAudience, getClientId, getExpiresAt, getId, getIssuedAt, getIssuer, getNotBefore, getScope, getSubject, getTokenType, getUsername, isActivepublic OAuth2IntrospectionAuthenticatedPrincipal(java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.Collection<org.springframework.security.core.GrantedAuthority> authorities)
OAuth2IntrospectionAuthenticatedPrincipal using the provided
parameters.attributes - the attributes of the OAuth 2.0 Token Introspectionauthorities - the authorities of the OAuth 2.0 Token Introspectionpublic OAuth2IntrospectionAuthenticatedPrincipal(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.Collection<org.springframework.security.core.GrantedAuthority> authorities)
OAuth2IntrospectionAuthenticatedPrincipal using the provided
parameters.name - the name attached to the OAuth 2.0 Token Introspectionattributes - the attributes of the OAuth 2.0 Token Introspectionauthorities - the authorities of the OAuth 2.0 Token Introspectionpublic java.util.Map<java.lang.String,java.lang.Object> getAttributes()
getAttributes in interface org.springframework.security.oauth2.core.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 Token IntrospectiongetAuthorities in interface org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipalpublic java.lang.String getName()
getName in interface org.springframework.security.core.AuthenticatedPrincipalpublic java.util.Map<java.lang.String,java.lang.Object> getClaims()
getClaims in interface org.springframework.security.oauth2.core.ClaimAccessor