All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.resteasy.plugins.server.embedded.SecurityDomain Maven / Gradle / Ivy

There is a newer version: 4.0.0.Beta5
Show 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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy