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 |
isUserInRole(Principal username,
String role) |
public Principal authenticate(String username, String password) throws SecurityException
authenticate in interface SecurityDomainSecurityExceptionpublic boolean isUserInRole(Principal username, String role)
isUserInRole in interface SecurityDomainCopyright © 2018 JBoss by Red Hat. All rights reserved.