Package de.xima.fc.security.helper
Class SecurityPac4jHelper
java.lang.Object
de.xima.fc.security.helper.SecurityPac4jHelper
Helper for working with
pac4j.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.pac4j.core.exception.http.HttpActionaccessDenied(org.pac4j.core.context.WebContext context) static IAuthenticationTargetgetAuthenticationTarget(org.pac4j.core.context.WebContext context) Gets the authentication target from the given web context.static FRQSessiongetFrqSession(org.pac4j.core.context.WebContext context) static StringgetFrqSessionId(org.pac4j.core.context.WebContext context) static StringgetRequestBaseUrl(org.pac4j.core.context.WebContext context) static StringgetRequestHeader(org.pac4j.core.context.WebContext context, String header) static LocalegetRequestLocale(org.pac4j.core.context.WebContext context) static StringgetRequestRemoteAddr(org.pac4j.core.context.WebContext context) static StringgetRequestUserAgent(org.pac4j.core.context.WebContext context) static org.pac4j.core.exception.http.HttpActionnotFound(org.pac4j.core.context.WebContext context) static org.pac4j.core.exception.http.HttpActionredirect(org.pac4j.core.context.WebContext context, IWebEndpoint endpoint, IUriBuilderContext builderCtx)
-
Method Details
-
accessDenied
public static org.pac4j.core.exception.http.HttpAction accessDenied(org.pac4j.core.context.WebContext context) -
notFound
public static org.pac4j.core.exception.http.HttpAction notFound(org.pac4j.core.context.WebContext context) -
redirect
public static org.pac4j.core.exception.http.HttpAction redirect(org.pac4j.core.context.WebContext context, IWebEndpoint endpoint, IUriBuilderContext builderCtx) -
getFrqSession
-
getFrqSessionId
-
getRequestBaseUrl
-
getRequestLocale
-
getRequestRemoteAddr
-
getRequestUserAgent
-
getRequestHeader
-
getAuthenticationTarget
public static IAuthenticationTarget getAuthenticationTarget(org.pac4j.core.context.WebContext context) Gets the authentication target from the given web context.- Parameters:
context- to retrieve authentication target from.- Returns:
- authentication target if any could be determined
-