Class OAuth2IntrospectionAuthenticatedPrincipal

java.lang.Object
org.springframework.security.oauth2.server.resource.introspection.OAuth2IntrospectionAuthenticatedPrincipal
All Implemented Interfaces:
Serializable, AuthenticatedPrincipal, ClaimAccessor, OAuth2AuthenticatedPrincipal, OAuth2TokenIntrospectionClaimAccessor

public final class OAuth2IntrospectionAuthenticatedPrincipal extends Object implements OAuth2TokenIntrospectionClaimAccessor, OAuth2AuthenticatedPrincipal, Serializable
A domain object that wraps the attributes of OAuth 2.0 Token Introspection.
Since:
5.4
See Also:
  • Constructor Details

    • OAuth2IntrospectionAuthenticatedPrincipal

      public OAuth2IntrospectionAuthenticatedPrincipal(Map<String,Object> attributes, Collection<GrantedAuthority> authorities)
      Constructs an OAuth2IntrospectionAuthenticatedPrincipal using the provided parameters.
      Parameters:
      attributes - the attributes of the OAuth 2.0 Token Introspection
      authorities - the authorities of the OAuth 2.0 Token Introspection
    • OAuth2IntrospectionAuthenticatedPrincipal

      public OAuth2IntrospectionAuthenticatedPrincipal(String name, Map<String,Object> attributes, Collection<GrantedAuthority> authorities)
      Constructs an OAuth2IntrospectionAuthenticatedPrincipal using the provided parameters.
      Parameters:
      name - the name attached to the OAuth 2.0 Token Introspection
      attributes - the attributes of the OAuth 2.0 Token Introspection
      authorities - the authorities of the OAuth 2.0 Token Introspection
  • Method Details