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 java.lang.Object
- implements SecurityDomain
POJO Security domain.
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Method Summary |
void |
addRole(java.lang.String user,
java.lang.String role)
|
void |
addRoles(java.lang.String role,
java.lang.String[] users)
|
void |
addUser(java.lang.String username,
java.lang.String password,
java.lang.String[] roles)
|
java.security.Principal |
authenticate(java.lang.String username,
java.lang.String password)
|
boolean |
isUserInRoll(java.security.Principal username,
java.lang.String role)
|
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(java.lang.String user,
java.lang.String role)
addUser
public void addUser(java.lang.String username,
java.lang.String password,
java.lang.String[] roles)
addRoles
public void addRoles(java.lang.String role,
java.lang.String[] users)
authenticate
public java.security.Principal authenticate(java.lang.String username,
java.lang.String password)
throws java.lang.SecurityException
- Specified by:
authenticate
in interface SecurityDomain
- Throws:
java.lang.SecurityException
isUserInRoll
public boolean isUserInRoll(java.security.Principal username,
java.lang.String role)
- Specified by:
isUserInRoll
in interface SecurityDomain
Copyright © 2010. All Rights Reserved.