public class SimpleSecurityRealmBase extends Object implements SecurityRealmInterface
| Constructor and Description |
|---|
SimpleSecurityRealmBase() |
| Modifier and Type | Method and Description |
|---|---|
Principal |
authenticate(String username,
String password)
Authenticate a user.
|
boolean |
booleanAuthenticate(String username,
String password)
Authenticate a user.
|
boolean |
isUserInRole(Principal principal,
String rolename)
Test for role membership.
|
boolean |
isUserInRole(String username,
String rolename)
Test for role membership.
|
public boolean booleanAuthenticate(String username, String password)
username - a usernamepassword - a plain text password, as entered by the userpublic boolean isUserInRole(String username, String rolename)
username - a usernamerolename - name of a role to test for membershippublic Principal authenticate(String username, String password)
authenticate in interface SecurityRealmInterfaceusername - a usernamepassword - a plain text password, as entered by the userpublic boolean isUserInRole(Principal principal, String rolename)
isUserInRole in interface SecurityRealmInterfaceprincipal - Principal object representing a userrolename - name of a role to test for membershipCopyright © 2020 B3Partners B.V.. All rights reserved.