public static final class UserDatabaseRealm.UserDatabasePrincipal extends GenericPrincipal
attributes, gssCredential, loginContext, name, password, roles, userPrincipal| Constructor and Description |
|---|
UserDatabasePrincipal(User user,
UserDatabase database) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getRoles() |
boolean |
hasRole(java.lang.String role)
Does the user represented by this Principal possess the specified role?
|
getAttribute, getAttributeNames, getGssCredential, getName, getPassword, getUserPrincipal, logout, setGssCredential, toStringpublic UserDatabasePrincipal(User user, UserDatabase database)
public java.lang.String[] getRoles()
getRoles in class GenericPrincipalpublic boolean hasRole(java.lang.String role)
GenericPrincipalhasRole in class GenericPrincipalrole - Role to be testedtrue if this Principal has been assigned the given role, otherwise falseCopyright © 2000-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.