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.HttpAction
accessDenied
(org.pac4j.core.context.WebContext context) static IAuthenticationTarget
getAuthenticationTarget
(org.pac4j.core.context.WebContext context) Gets the authentication target from the given web context.static FRQSession
getFrqSession
(org.pac4j.core.context.WebContext context) static String
getFrqSessionId
(org.pac4j.core.context.WebContext context) static String
getRequestBaseUrl
(org.pac4j.core.context.WebContext context) static String
getRequestHeader
(org.pac4j.core.context.WebContext context, String header) static Locale
getRequestLocale
(org.pac4j.core.context.WebContext context) static String
getRequestRemoteAddr
(org.pac4j.core.context.WebContext context) static String
getRequestUserAgent
(org.pac4j.core.context.WebContext context) static org.pac4j.core.exception.http.HttpAction
notFound
(org.pac4j.core.context.WebContext context) static org.pac4j.core.exception.http.HttpAction
redirect
(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
-