Class User


  • public class User
    extends Object
    Encapsulates the data needed to perform authentication for a user.
    • Field Detail

      • identifier

        private final String identifier
        User identifier.
      • context

        private final Object context
        User context.
    • Constructor Detail

      • User

        public User​(String id)
        Creates a new user.
        Parameters:
        id - user identifier
      • User

        public User​(String id,
                    Object ctx)
        Creates a new user.
        Parameters:
        id - user identifier
        ctx - user context
    • Method Detail

      • getIdentifier

        public String getIdentifier()
        Returns the user identifier.
        Returns:
        user identifier
      • getContext

        public Object getContext()
        Returns the user context.
        Returns:
        user context