Class RelyingPartyRegistrationPlaceholderResolvers

java.lang.Object
org.springframework.security.saml2.provider.service.web.RelyingPartyRegistrationPlaceholderResolvers

public final class RelyingPartyRegistrationPlaceholderResolvers extends Object
A factory for creating placeholder resolvers for RelyingPartyRegistration templates. Supports baseUrl, baseScheme, baseHost, basePort, basePath, registrationId, relyingPartyEntityId, and assertingPartyEntityId
Since:
6.1
  • Method Details

    • uriResolver

      public static RelyingPartyRegistrationPlaceholderResolvers.UriResolver uriResolver(jakarta.servlet.http.HttpServletRequest request)
      Create a resolver based on the given HttpServletRequest. Given the request, placeholders baseUrl, baseScheme, baseHost, basePort, and basePath are resolved.
      Parameters:
      request - the HTTP request
      Returns:
      a resolver that can resolve baseUrl, baseScheme, baseHost, basePort, and basePath placeholders
    • uriResolver

      public static RelyingPartyRegistrationPlaceholderResolvers.UriResolver uriResolver(jakarta.servlet.http.HttpServletRequest request, RelyingPartyRegistration registration)
      Create a resolver based on the given HttpServletRequest. Given the request, placeholders baseUrl, baseScheme, baseHost, basePort, basePath, registrationId, assertingPartyEntityId, and relyingPartyEntityId are resolved.
      Parameters:
      request - the HTTP request
      Returns:
      a resolver that can resolve baseUrl, baseScheme, baseHost, basePort, basePath, registrationId, relyingPartyEntityId, and assertingPartyEntityId placeholders