public class TomEESecurityContext
extends java.lang.Object
Constructor and Description |
---|
TomEESecurityContext() |
Modifier and Type | Method and Description |
---|---|
AuthenticationStatus |
authenticate(HttpServletRequest request,
HttpServletResponse response,
AuthenticationParameters parameters) |
java.security.Principal |
getCallerPrincipal() |
<T extends java.security.Principal> |
getPrincipalsByType(java.lang.Class<T> pType) |
boolean |
hasAccessToWebResource(java.lang.String resource,
java.lang.String... methods) |
boolean |
isCallerInRole(java.lang.String role) |
static void |
registerContainerAboutLogin(java.security.Principal principal,
java.util.Set<java.lang.String> groups) |
public java.security.Principal getCallerPrincipal()
public <T extends java.security.Principal> java.util.Set<T> getPrincipalsByType(java.lang.Class<T> pType)
public boolean isCallerInRole(java.lang.String role)
public boolean hasAccessToWebResource(java.lang.String resource, java.lang.String... methods)
public AuthenticationStatus authenticate(HttpServletRequest request, HttpServletResponse response, AuthenticationParameters parameters)
public static void registerContainerAboutLogin(java.security.Principal principal, java.util.Set<java.lang.String> groups)