Class UserInfo

java.lang.Object
org.eclipse.jetty.jaas.spi.UserInfo
Direct Known Subclasses:
AbstractDatabaseLoginModule.JDBCUserInfo, LdapLoginModule.LDAPUserInfo

public class UserInfo extends Object
UserInfo This is the information read from the external source about a user. Can be cached.
  • Field Details

    • _userName

      private String _userName
    • _credential

      private Credential _credential
    • _roleNames

      protected List<String> _roleNames
    • _rolesLoaded

      protected boolean _rolesLoaded
  • Constructor Details

    • UserInfo

      public UserInfo(String userName, Credential credential, List<String> roleNames)
      Parameters:
      userName - the user name
      credential - the credential
      roleNames - a List of role name
    • UserInfo

      public UserInfo(String userName, Credential credential)
      Parameters:
      userName - the user name
      credential - the credential
  • Method Details

    • doFetchRoles

      public List<String> doFetchRoles() throws Exception
      Should be overridden by subclasses to obtain role info
      Returns:
      List of role associated to the user
      Throws:
      Exception - if the roles cannot be retrieved
    • fetchRoles

      public void fetchRoles() throws Exception
      Throws:
      Exception
    • getUserName

      public String getUserName()
    • getRoleNames

      public List<String> getRoleNames()
    • checkCredential

      public boolean checkCredential(Object suppliedCredential)
    • getCredential

      protected Credential getCredential()