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
attributes, gssCredential, loginContext, name, roles, userPrincipal
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.catalina.realm.GenericPrincipal
getAttribute, getAttributeNames, getGssCredential, getName, 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
-