Class OAuth2IntrospectionAuthenticatedPrincipal

    • Constructor Detail

      • OAuth2IntrospectionAuthenticatedPrincipal

        public OAuth2IntrospectionAuthenticatedPrincipal​(java.util.Map<java.lang.String,​java.lang.Object> attributes,
                                                         java.util.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​(java.lang.String name,
                                                         java.util.Map<java.lang.String,​java.lang.Object> attributes,
                                                         java.util.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 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:
        getAttributes in interface OAuth2AuthenticatedPrincipal
        Returns:
        a Map of the attribute's objects keyed by the attribute's names
      • getName

        public java.lang.String getName()
        Description copied from interface: AuthenticatedPrincipal
        Returns the name of the authenticated Principal. Never null.
        Specified by:
        getName in interface AuthenticatedPrincipal
        Returns:
        the name of the authenticated Principal
      • getClaims

        public java.util.Map<java.lang.String,​java.lang.Object> getClaims()
        Description copied from interface: ClaimAccessor
        Returns a set of claims that may be used for assertions.
        Specified by:
        getClaims in interface ClaimAccessor
        Returns:
        a Map of claims