Class BaseUrlAccessor

java.lang.Object
com.pingidentity.access.BaseUrlAccessor

public class BaseUrlAccessor extends Object
This class provides access to the PF base URL.
Since:
9.2
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    Returns the PF base URL with domain name from the HttpServletRequest that is whitelisted from the virtual host names.
    static String
    getResumeUrl(String resumePath)
    This method will return the full resume URL, taking into account configured context path as well as the virtual hostname in the request.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getCurrentBaseUrl

      public static String getCurrentBaseUrl()
      Returns the PF base URL with domain name from the HttpServletRequest that is whitelisted from the virtual host names. If the requested domain name is not in the list of virtual host names, the PF base URL is returned.
      Returns:
      the base URL with the whitelisted virtual host name.
    • getResumeUrl

      public static String getResumeUrl(String resumePath)
      This method will return the full resume URL, taking into account configured context path as well as the virtual hostname in the request. If the domain name in the request is not an allowed virtual host name then the domain used will be the configured base URL.
      Parameters:
      resumePath - The full resume path. This is passed into adapters via the IdpAuthenticationAdapterV2.IN_PARAMETER_NAME_RESUME_PATH in parameter.
      Returns:
      the full resume URL
      Since:
      13.0