org.jboss.resteasy.plugins.server.embedded
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleSecurityDomain
public SimpleSecurityDomain()
addRole
public void addRole(String user,
String role)
addUser
public void addUser(String username,
String password,
String[] roles)
addRoles
public void addRoles(String role,
String[] users)
authenticate
public Principal authenticate(String username,
String password)
throws SecurityException
- Specified by:
authenticate
in interface SecurityDomain
- Throws:
SecurityException
isUserInRoll
public boolean isUserInRoll(Principal username,
String role)
- Specified by:
isUserInRoll
in interface SecurityDomain
Copyright © 2012. All Rights Reserved.