Package de.xima.fc.security.helper
Class SecurityPac4jHelper
- java.lang.Object
-
- de.xima.fc.security.helper.SecurityPac4jHelper
-
public class SecurityPac4jHelper extends Object
Helper for working withpac4j.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
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
public static FRQSession getFrqSession(org.pac4j.core.context.WebContext context)
-
getFrqSessionId
public static String getFrqSessionId(org.pac4j.core.context.WebContext context)
-
getRequestBaseUrl
public static String getRequestBaseUrl(org.pac4j.core.context.WebContext context)
-
getRequestLocale
public static Locale getRequestLocale(org.pac4j.core.context.WebContext context)
-
getRequestRemoteAddr
public static String getRequestRemoteAddr(org.pac4j.core.context.WebContext context)
-
getRequestUserAgent
public static String getRequestUserAgent(org.pac4j.core.context.WebContext context)
-
getRequestHeader
public static String getRequestHeader(org.pac4j.core.context.WebContext context, String header)
-
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
-
-