Package de.xima.fc.security.helper
Class SecurityWebContextHelper
- java.lang.Object
- 
- de.xima.fc.security.helper.SecurityWebContextHelper
 
- 
 public class SecurityWebContextHelper extends Object Helper for dealing with request in formcycle.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
 
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static MandantgetClientByIdentifier(String clientIdentifier)static MandantgetClientFromRequest(javax.servlet.http.HttpServletRequest req)static StringgetClientNameFromRequest(org.pac4j.core.context.WebContext context)static VorganggetFormRecordFromRequest(javax.servlet.http.HttpServletRequest req)static FormVersiongetFormVersionFromRequest(javax.servlet.http.HttpServletRequest req)static ProjektgetProjectFromRequest(javax.servlet.http.HttpServletRequest req)static StringgetRequestedUrl(org.pac4j.core.context.WebContext context)static Optional<IUser>getUser(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, IAuthenticationTarget target)static booleanisRequestedWebEndpointPublic(javax.servlet.http.HttpServletRequest request)Checks whether the requested web endpoint, if any, is publicly available without requiring authorization.
 
- 
- 
- 
Method Detail- 
getUserpublic static Optional<IUser> getUser(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, IAuthenticationTarget target) 
 - 
getClientFromRequestpublic static Mandant getClientFromRequest(javax.servlet.http.HttpServletRequest req) 
 - 
getProjectFromRequestpublic static Projekt getProjectFromRequest(javax.servlet.http.HttpServletRequest req) 
 - 
getFormVersionFromRequestpublic static FormVersion getFormVersionFromRequest(javax.servlet.http.HttpServletRequest req) 
 - 
getFormRecordFromRequestpublic static Vorgang getFormRecordFromRequest(javax.servlet.http.HttpServletRequest req) 
 - 
isRequestedWebEndpointPublicpublic static boolean isRequestedWebEndpointPublic(javax.servlet.http.HttpServletRequest request) Checks whether the requested web endpoint, if any, is publicly available without requiring authorization.- Parameters:
- request- A request to the webapp.
- Returns:
- trueif the requested web endpoint is publicly available and- falseotherwise.
 
 - 
getRequestedUrlpublic static String getRequestedUrl(org.pac4j.core.context.WebContext context) 
 - 
getClientNameFromRequestpublic static String getClientNameFromRequest(org.pac4j.core.context.WebContext context) 
 
- 
 
-