Class OAuth2IntrospectionAuthenticatedPrincipal
java.lang.Object
org.springframework.security.oauth2.server.resource.introspection.OAuth2IntrospectionAuthenticatedPrincipal
- All Implemented Interfaces:
Serializable, org.springframework.security.core.AuthenticatedPrincipal, org.springframework.security.oauth2.core.ClaimAccessor, org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal, org.springframework.security.oauth2.core.OAuth2TokenIntrospectionClaimAccessor
public final class OAuth2IntrospectionAuthenticatedPrincipal
extends Object
implements org.springframework.security.oauth2.core.OAuth2TokenIntrospectionClaimAccessor, org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal, Serializable
A domain object that wraps the attributes of OAuth 2.0 Token Introspection.
- Since:
- 5.4
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2IntrospectionAuthenticatedPrincipal(String name, Map<String, Object> attributes, Collection<org.springframework.security.core.GrantedAuthority> authorities) Constructs anOAuth2IntrospectionAuthenticatedPrincipalusing the provided parameters.OAuth2IntrospectionAuthenticatedPrincipal(Map<String, Object> attributes, Collection<org.springframework.security.core.GrantedAuthority> authorities) Constructs anOAuth2IntrospectionAuthenticatedPrincipalusing the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionGets the attributes of the OAuth 2.0 Token Introspection in map form.Collection<? extends org.springframework.security.core.GrantedAuthority> Get theCollectionofGrantedAuthoritys associated with this OAuth 2.0 Token IntrospectiongetName()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.oauth2.core.ClaimAccessor
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, hasClaimMethods inherited from interface org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
getAttributeMethods inherited from interface org.springframework.security.oauth2.core.OAuth2TokenIntrospectionClaimAccessor
getAudience, getClientId, getExpiresAt, getId, getIssuedAt, getIssuer, getNotBefore, getScopes, getSubject, getTokenType, getUsername, isActive
-
Constructor Details
-
OAuth2IntrospectionAuthenticatedPrincipal
public OAuth2IntrospectionAuthenticatedPrincipal(Map<String, Object> attributes, Collection<org.springframework.security.core.GrantedAuthority> authorities) Constructs anOAuth2IntrospectionAuthenticatedPrincipalusing the provided parameters.- Parameters:
attributes- the attributes of the OAuth 2.0 Token Introspectionauthorities- the authorities of the OAuth 2.0 Token Introspection
-
OAuth2IntrospectionAuthenticatedPrincipal
public OAuth2IntrospectionAuthenticatedPrincipal(String name, Map<String, Object> attributes, Collection<org.springframework.security.core.GrantedAuthority> authorities) Constructs anOAuth2IntrospectionAuthenticatedPrincipalusing the provided parameters.- 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 Introspection
-
-
Method Details
-
getAttributes
-
getAuthorities
Get theCollectionofGrantedAuthoritys associated with this OAuth 2.0 Token Introspection- Specified by:
getAuthoritiesin interfaceorg.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal- Returns:
- the OAuth 2.0 Token Introspection authorities
-
getName
- Specified by:
getNamein interfaceorg.springframework.security.core.AuthenticatedPrincipal
-
getClaims
-