Interface IWebAppSecurityCollaborator
-
public interface IWebAppSecurityCollaborator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
authenticate(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
ExtensionProcessor
getFormLoginExtensionProcessor(IServletContext webapp)
ExtensionProcessor
getFormLogoutExtensionProcessor(IServletContext webapp)
java.util.List<java.lang.String>
getURIsInSecurityConstraints(java.lang.String appName, java.lang.String contextRoot, java.lang.String vHost, java.util.List<java.lang.String> URIs)
java.security.Principal
getUserPrincipal()
void
handleException(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp, java.lang.Throwable wse)
boolean
isCDINeeded()
boolean
isUserInRole(java.lang.String role, IExtendedRequest req)
void
login(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, java.lang.String username, java.lang.String password)
void
logout(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
void
postInvoke(java.lang.Object secObject)
void
postInvokeForSecureResponse(java.lang.Object secObject)
java.lang.Object
preInvoke()
java.lang.Object
preInvoke(java.lang.String servletName)
java.lang.Object
preInvoke(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, java.lang.String servletName, boolean enforceSecurity)
-
-
-
Method Detail
-
preInvoke
java.lang.Object preInvoke(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, java.lang.String servletName, boolean enforceSecurity) throws com.ibm.wsspi.webcontainer.security.SecurityViolationException, java.io.IOException
- Throws:
com.ibm.wsspi.webcontainer.security.SecurityViolationException
java.io.IOException
-
authenticate
boolean authenticate(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, java.io.IOException
- Throws:
jakarta.servlet.ServletException
java.io.IOException
-
login
void login(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, java.lang.String username, java.lang.String password) throws jakarta.servlet.ServletException
- Throws:
jakarta.servlet.ServletException
-
logout
void logout(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException
- Throws:
jakarta.servlet.ServletException
-
preInvoke
java.lang.Object preInvoke(java.lang.String servletName) throws com.ibm.wsspi.webcontainer.security.SecurityViolationException, java.io.IOException
- Throws:
com.ibm.wsspi.webcontainer.security.SecurityViolationException
java.io.IOException
-
preInvoke
java.lang.Object preInvoke() throws com.ibm.wsspi.webcontainer.security.SecurityViolationException
- Throws:
com.ibm.wsspi.webcontainer.security.SecurityViolationException
-
postInvoke
void postInvoke(java.lang.Object secObject) throws jakarta.servlet.ServletException
- Throws:
jakarta.servlet.ServletException
-
postInvokeForSecureResponse
void postInvokeForSecureResponse(java.lang.Object secObject) throws jakarta.servlet.ServletException
- Throws:
jakarta.servlet.ServletException
-
handleException
void handleException(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp, java.lang.Throwable wse) throws jakarta.servlet.ServletException, java.io.IOException
- Throws:
jakarta.servlet.ServletException
java.io.IOException
-
getUserPrincipal
java.security.Principal getUserPrincipal()
-
isCDINeeded
boolean isCDINeeded()
-
isUserInRole
boolean isUserInRole(java.lang.String role, IExtendedRequest req)
-
getFormLoginExtensionProcessor
ExtensionProcessor getFormLoginExtensionProcessor(IServletContext webapp)
-
getFormLogoutExtensionProcessor
ExtensionProcessor getFormLogoutExtensionProcessor(IServletContext webapp)
-
getURIsInSecurityConstraints
java.util.List<java.lang.String> getURIsInSecurityConstraints(java.lang.String appName, java.lang.String contextRoot, java.lang.String vHost, java.util.List<java.lang.String> URIs)
-
-