Class DefaultOauth2AuthenticatedPrincipal

java.lang.Object
com.power4j.fist.boot.security.oauth2.DefaultOauth2AuthenticatedPrincipal
All Implemented Interfaces:
AuthenticatedObject, Oauth2AuthenticatedPrincipal

public class DefaultOauth2AuthenticatedPrincipal extends Object implements Oauth2AuthenticatedPrincipal
Since:
1.0
Author:
CJ (power4j@outlook.com)
  • Constructor Details

    • DefaultOauth2AuthenticatedPrincipal

      public DefaultOauth2AuthenticatedPrincipal(Map<String,Object> attributes, Collection<GrantedPermission> authorities)
      Constructs an DefaultOAuth2AuthenticatedPrincipal using the provided parameters.
      Parameters:
      attributes - the attributes of the OAuth 2.0 token
      authorities - the authorities of the OAuth 2.0 token
    • DefaultOauth2AuthenticatedPrincipal

      public DefaultOauth2AuthenticatedPrincipal(String name, Map<String,Object> attributes, Collection<GrantedPermission> authorities)
      Constructs an DefaultOAuth2AuthenticatedPrincipal using the provided parameters.
      Parameters:
      name - the name attached to the OAuth 2.0 token
      attributes - the attributes of the OAuth 2.0 token
      authorities - the authorities of the OAuth 2.0 token
  • Method Details