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