Package com.pingidentity.access
Class BaseUrlAccessor
java.lang.Object
com.pingidentity.access.BaseUrlAccessor
This class provides access to the PF base URL.
- Since:
- 9.2
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the PF base URL with domain name from the HttpServletRequest that is whitelisted from the virtual host names.static StringgetResumeUrl(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.
-
Method Details
-
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
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 theIdpAuthenticationAdapterV2.IN_PARAMETER_NAME_RESUME_PATHin parameter.- Returns:
- the full resume URL
- Since:
- 13.0
-