Class SecurityPac4jHelper

java.lang.Object
de.xima.fc.security.helper.SecurityPac4jHelper

public class SecurityPac4jHelper extends Object
Helper for working with pac4j.
Since:
8.0.0
Author:
XIMA Media GmbH
  • 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

      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