public class SimpleSecurityDomain extends Object implements SecurityDomain
Constructor and Description |
---|
SimpleSecurityDomain() |
Modifier and Type | Method and Description |
---|---|
void |
addRole(String user,
String role) |
void |
addRoles(String role,
String[] users) |
void |
addUser(String username,
String password,
String[] roles) |
Principal |
authenticate(String username,
String password) |
boolean |
isUserInRoll(Principal username,
String role) |
public Principal authenticate(String username, String password) throws SecurityException
authenticate
in interface SecurityDomain
SecurityException
public boolean isUserInRoll(Principal username, String role)
isUserInRoll
in interface SecurityDomain
Copyright © 2013. All Rights Reserved.