Package org.apache.catalina.realm
Class UserDatabaseRealm.UserDatabasePrincipal
java.lang.Object
org.apache.catalina.realm.GenericPrincipal
org.apache.catalina.realm.UserDatabaseRealm.UserDatabasePrincipal
- All Implemented Interfaces:
Serializable
,Principal
,TomcatPrincipal
- Enclosing class:
- UserDatabaseRealm
- See Also:
-
Field Summary
Fields inherited from class org.apache.catalina.realm.GenericPrincipal
gssCredential, loginContext, name, password, roles, userPrincipal
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.catalina.realm.GenericPrincipal
getGssCredential, getName, getPassword, getUserPrincipal, logout, setGssCredential, toString
-
Constructor Details
-
UserDatabasePrincipal
-
-
Method Details
-
getRoles
- Overrides:
getRoles
in classGenericPrincipal
-
hasRole
Description copied from class:GenericPrincipal
Does the user represented by this Principal possess the specified role?- Overrides:
hasRole
in classGenericPrincipal
- Parameters:
role
- Role to be tested- Returns:
true
if this Principal has been assigned the given role, otherwisefalse
-