Package org.jboss.resteasy.plugins.server.embedded

## Interface SecurityDomain

- All Known Implementing Classes:
    `SimpleSecurityDomain`

      public interface SecurityDomain

  Simple plugin to provide authentication/authorization to embedded implementations
  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Principal` | `authenticate​(String username, String password)` |
    `boolean` | `isUserInRole​(Principal username, String role)` |

- - ### Method Detail

    - #### authenticate

          Principal authenticate​(String username,
                                 String password)
                          throws SecurityException

      Throws:
        `SecurityException`

    - #### isUserInRole

          boolean isUserInRole​(Principal username,
                               String role)