org.jboss.resteasy.plugins.server.embedded.SecurityDomain Maven / Gradle / Ivy
The newest version!
package org.jboss.resteasy.plugins.server.embedded;
import java.security.Principal;
/**
* Simple plugin to provide authentication/authorization to embedded implementations
*
* @author Bill Burke
* @version $Revision: 1 $
*/
public interface SecurityDomain
{
Principal authenticate(String username, String password) throws SecurityException;
boolean isUserInRole(Principal username, String role);
}