Class OAuth2IntrospectionAuthenticatedPrincipal
- java.lang.Object
-
- org.springframework.security.oauth2.server.resource.introspection.OAuth2IntrospectionAuthenticatedPrincipal
-
- All Implemented Interfaces:
java.io.Serializable,org.springframework.security.core.AuthenticatedPrincipal,org.springframework.security.oauth2.core.ClaimAccessor,org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal,org.springframework.security.oauth2.core.OAuth2TokenIntrospectionClaimAccessor,OAuth2IntrospectionClaimAccessor
public final class OAuth2IntrospectionAuthenticatedPrincipal extends java.lang.Object implements OAuth2IntrospectionClaimAccessor, org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal, java.io.Serializable
A domain object that wraps the attributes of OAuth 2.0 Token Introspection.- Since:
- 5.4
- See Also:
- Introspection Response, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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 anOAuth2IntrospectionAuthenticatedPrincipalusing the provided parameters.OAuth2IntrospectionAuthenticatedPrincipal(java.util.Map<java.lang.String,java.lang.Object> attributes, java.util.Collection<org.springframework.security.core.GrantedAuthority> authorities)Constructs anOAuth2IntrospectionAuthenticatedPrincipalusing the provided parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 theCollectionofGrantedAuthoritys associated with this OAuth 2.0 Token Introspectionjava.util.Map<java.lang.String,java.lang.Object>getClaims()java.lang.StringgetName()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.security.oauth2.core.ClaimAccessor
containsClaim, getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, hasClaim
-
Methods inherited from interface org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal
getAttribute
-
Methods inherited from interface org.springframework.security.oauth2.server.resource.introspection.OAuth2IntrospectionClaimAccessor
getScope
-
-
-
-
Constructor Detail
-
OAuth2IntrospectionAuthenticatedPrincipal
public OAuth2IntrospectionAuthenticatedPrincipal(java.util.Map<java.lang.String,java.lang.Object> attributes, java.util.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(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> attributes, java.util.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 Detail
-
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Gets the attributes of the OAuth 2.0 Token Introspection in map form.- Specified by:
getAttributesin interfaceorg.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal- Returns:
- a
Mapof the attribute's objects keyed by the attribute's names
-
getAuthorities
public java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> 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
public java.lang.String getName()
- Specified by:
getNamein interfaceorg.springframework.security.core.AuthenticatedPrincipal
-
getClaims
public java.util.Map<java.lang.String,java.lang.Object> getClaims()
- Specified by:
getClaimsin interfaceorg.springframework.security.oauth2.core.ClaimAccessor
-
-