Class SimpleSecurityDomain
- java.lang.Object
-
- org.jboss.resteasy.plugins.server.embedded.SimpleSecurityDomain
-
- All Implemented Interfaces:
SecurityDomain
public class SimpleSecurityDomain extends Object implements SecurityDomain
POJO Security domain.- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Constructor Summary
Constructors Constructor Description SimpleSecurityDomain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
authenticate
public Principal authenticate(String username, String password) throws SecurityException
- Specified by:
authenticate
in interfaceSecurityDomain
- Throws:
SecurityException
-
isUserInRole
public boolean isUserInRole(Principal username, String role)
- Specified by:
isUserInRole
in interfaceSecurityDomain
-
-