public final class TomEEHttpMessageContext
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
cleanClientSubject() |
AuthenticationStatus |
doNothing() |
AuthenticationStatus |
forward(java.lang.String path) |
AuthenticationParameters |
getAuthParameters() |
java.security.Principal |
getCallerPrincipal() |
javax.security.auth.Subject |
getClientSubject() |
java.util.Set<java.lang.String> |
getGroups() |
javax.security.auth.callback.CallbackHandler |
getHandler() |
MessageInfo |
getMessageInfo() |
HttpServletRequest |
getRequest() |
HttpServletResponse |
getResponse() |
static TomEEHttpMessageContext |
httpMessageContext(javax.security.auth.callback.CallbackHandler handler,
MessageInfo messageInfo,
javax.security.auth.Subject clientSubject,
javax.security.auth.Subject serviceSubject) |
boolean |
isAuthenticationRequest() |
boolean |
isProtected() |
boolean |
isRegisterSession() |
AuthenticationStatus |
notifyContainerAboutLogin(CredentialValidationResult result) |
AuthenticationStatus |
notifyContainerAboutLogin(java.security.Principal principal,
java.util.Set<java.lang.String> groups) |
AuthenticationStatus |
notifyContainerAboutLogin(java.lang.String callername,
java.util.Set<java.lang.String> groups) |
AuthenticationStatus |
redirect(java.lang.String location) |
AuthenticationStatus |
responseNotFound() |
AuthenticationStatus |
responseUnauthorized() |
void |
setRegisterSession(java.lang.String callerName,
java.util.Set<java.lang.String> groups) |
void |
setRequest(HttpServletRequest request) |
void |
setResponse(HttpServletResponse response) |
HttpMessageContext |
withRequest(HttpServletRequest request) |
public static TomEEHttpMessageContext httpMessageContext(javax.security.auth.callback.CallbackHandler handler, MessageInfo messageInfo, javax.security.auth.Subject clientSubject, javax.security.auth.Subject serviceSubject)
public boolean isProtected()
public boolean isAuthenticationRequest()
public boolean isRegisterSession()
public void setRegisterSession(java.lang.String callerName, java.util.Set<java.lang.String> groups)
public void cleanClientSubject()
public AuthenticationParameters getAuthParameters()
public javax.security.auth.callback.CallbackHandler getHandler()
public MessageInfo getMessageInfo()
public javax.security.auth.Subject getClientSubject()
public HttpServletRequest getRequest()
public void setRequest(HttpServletRequest request)
public HttpMessageContext withRequest(HttpServletRequest request)
public HttpServletResponse getResponse()
public void setResponse(HttpServletResponse response)
public AuthenticationStatus redirect(java.lang.String location)
public AuthenticationStatus forward(java.lang.String path)
public AuthenticationStatus responseUnauthorized()
public AuthenticationStatus responseNotFound()
public AuthenticationStatus notifyContainerAboutLogin(java.lang.String callername, java.util.Set<java.lang.String> groups)
public AuthenticationStatus notifyContainerAboutLogin(java.security.Principal principal, java.util.Set<java.lang.String> groups)
public AuthenticationStatus notifyContainerAboutLogin(CredentialValidationResult result)
public AuthenticationStatus doNothing()
public java.security.Principal getCallerPrincipal()
public java.util.Set<java.lang.String> getGroups()