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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Mandant
getClientByIdentifier(String clientIdentifier)
static Mandant
getClientFromRequest(javax.servlet.http.HttpServletRequest req)
static String
getClientNameFromRequest(org.pac4j.core.context.WebContext context)
static Vorgang
getFormRecordFromRequest(javax.servlet.http.HttpServletRequest req)
static FormVersion
getFormVersionFromRequest(javax.servlet.http.HttpServletRequest req)
static Projekt
getProjectFromRequest(javax.servlet.http.HttpServletRequest req)
static String
getRequestedUrl(org.pac4j.core.context.WebContext context)
static Optional<IUser>
getUser(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, IAuthenticationTarget target)
static boolean
isRequestedWebEndpointPublic(javax.servlet.http.HttpServletRequest request)
Checks whether the requested web endpoint, if any, is publicly available without requiring authorization.
-
-
-
Method Detail
-
getUser
public static Optional<IUser> getUser(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, IAuthenticationTarget target)
-
getClientFromRequest
public static Mandant getClientFromRequest(javax.servlet.http.HttpServletRequest req)
-
getProjectFromRequest
public static Projekt getProjectFromRequest(javax.servlet.http.HttpServletRequest req)
-
getFormVersionFromRequest
public static FormVersion getFormVersionFromRequest(javax.servlet.http.HttpServletRequest req)
-
getFormRecordFromRequest
public static Vorgang getFormRecordFromRequest(javax.servlet.http.HttpServletRequest req)
-
isRequestedWebEndpointPublic
public 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:
true
if the requested web endpoint is publicly available andfalse
otherwise.
-
getRequestedUrl
public static String getRequestedUrl(org.pac4j.core.context.WebContext context)
-
getClientNameFromRequest
public static String getClientNameFromRequest(org.pac4j.core.context.WebContext context)
-
-