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 SecurityDomain
SecurityException
public boolean isUserInRole(Principal username, String role)
isUserInRole
in interface SecurityDomain
Copyright © 2017 JBoss by Red Hat. All rights reserved.