Interface OAuth2AuthenticatedPrincipal

    • Method Detail

      • getAttribute

        @Nullable
        default <A> A getAttribute​(java.lang.String name)
        Get the OAuth 2.0 token attribute by name
        Type Parameters:
        A - the type of the attribute
        Parameters:
        name - the name of the attribute
        Returns:
        the attribute or null otherwise
      • getAttributes

        java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
        Get the OAuth 2.0 token attributes
        Returns:
        the OAuth 2.0 token attributes
      • getAuthorities

        java.util.Collection<? extends GrantedAuthority> getAuthorities()
        Get the Collection of GrantedAuthoritys associated with this OAuth 2.0 token
        Returns:
        the OAuth 2.0 token authorities