Package org.eclipse.jetty.jaas.spi
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 Summary
Fields Modifier and Type Field Description protected List<String>_roleNamesprotected boolean_rolesLoaded
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckCredential(Object suppliedCredential)List<String>doFetchRoles()Should be overridden by subclasses to obtain role infovoidfetchRoles()protected org.eclipse.jetty.util.security.CredentialgetCredential()List<String>getRoleNames()StringgetUserName()
-
-
-
Constructor Detail
-
UserInfo
public UserInfo(String userName, org.eclipse.jetty.util.security.Credential credential, List<String> roleNames)
- Parameters:
userName-credential-roleNames-
-
UserInfo
public UserInfo(String userName, org.eclipse.jetty.util.security.Credential credential)
- Parameters:
userName-credential-
-
-
Method Detail
-
doFetchRoles
public List<String> doFetchRoles() throws Exception
Should be overridden by subclasses to obtain role info- Returns:
- Throws:
Exception
-
getUserName
public String getUserName()
-
checkCredential
public boolean checkCredential(Object suppliedCredential)
-
getCredential
protected org.eclipse.jetty.util.security.Credential getCredential()
-
-