Class UserPrincipal

All Implemented Interfaces:
Serializable, Principal
Direct Known Subclasses:
DataSourceLoginService.DBUserPrincipal, JDBCLoginService.JDBCUserPrincipal

public class UserPrincipal extends Object implements Principal, Serializable
UserPrincipal Represents a user with a credential. Instances of this class can be added to a Subject to present the user, while the credentials can be added directly to the Subject.
See Also:
  • Field Details

    • _credential

      protected final Credential _credential
  • Constructor Details

  • Method Details

    • authenticate

      public boolean authenticate(Object credentials)
    • authenticate

      public boolean authenticate(Credential c)
    • authenticate

      public boolean authenticate(UserPrincipal u)
    • configureSubject

      public void configureSubject(Subject subject)
    • deconfigureSubject

      public void deconfigureSubject(Subject subject)
    • getName

      public String getName()
      Specified by:
      getName in interface Principal
    • toString

      public String toString()
      Specified by:
      toString in interface Principal
      toString in class Object