public class SecurityRealm extends Object implements org.securityfilter.realm.SecurityRealmInterface, org.securityfilter.realm.ExternalAuthenticatedRealm
| Constructor and Description |
|---|
SecurityRealm() |
| Modifier and Type | Method and Description |
|---|---|
Principal |
authenticate(String username,
String password)
Checks wether an user, given his username and password, is allowed to use the system.
|
Principal |
getAuthenticatedPrincipal(String username,
String password) |
boolean |
isUserInRole(Principal principal,
String role)
Checks if a user is in the given role.
|
public Principal authenticate(String username, String password)
authenticate in interface org.securityfilter.realm.SecurityRealmInterfaceusername - String representing the username.password - String representing the password.public Principal getAuthenticatedPrincipal(String username, String password)
getAuthenticatedPrincipal in interface org.securityfilter.realm.ExternalAuthenticatedRealmpublic boolean isUserInRole(Principal principal, String role)
isUserInRole in interface org.securityfilter.realm.SecurityRealmInterfaceprincipal - Principal object representing the user.role - String representing the role this user has to checked against.Copyright © 2015. All rights reserved.