Interface User


  • public interface User
    An interface that represents a resource owner (in the context of OAuth 2.0) or an end user (in the context of OpenID Connect).
    Since:
    1.26
    Author:
    Takahiko Kawasaki
    • Method Detail

      • getSubject

        String getSubject()
        Get the subject (= unique identifier) of the user.
        Returns:
        The subject (= unique identifier) of the user.
      • getAttribute

        Object getAttribute​(String attributeName)
        Get the value of an attribute of the user.
        Parameters:
        attributeName - An attribute name.
        Returns:
        The attribute value. null if the attribute value of the attribute is not available.
        Since:
        2.33