org.jboss.resteasy.plugins.server.embedded
Class SimpleSecurityDomain

java.lang.Object
  extended by 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
SimpleSecurityDomain()
           
 
Method Summary
 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 isUserInRoll(Principal username, String role)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSecurityDomain

public SimpleSecurityDomain()
Method Detail

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 © 2011. All Rights Reserved.