Class RelyingPartyRegistrationPlaceholderResolvers
java.lang.Object
org.springframework.security.saml2.provider.service.web.RelyingPartyRegistrationPlaceholderResolvers
A factory for creating placeholder resolvers for
RelyingPartyRegistration
templates. Supports baseUrl
, baseScheme
, baseHost
,
basePort
, basePath
, registrationId
,
relyingPartyEntityId
, and assertingPartyEntityId
- Since:
- 6.1
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A class for resolvingRelyingPartyRegistration
URIs -
Method Summary
Modifier and TypeMethodDescriptionuriResolver
(jakarta.servlet.http.HttpServletRequest request) Create a resolver based on the givenHttpServletRequest
.uriResolver
(jakarta.servlet.http.HttpServletRequest request, RelyingPartyRegistration registration) Create a resolver based on the givenHttpServletRequest
.
-
Method Details
-
uriResolver
public static RelyingPartyRegistrationPlaceholderResolvers.UriResolver uriResolver(jakarta.servlet.http.HttpServletRequest request) Create a resolver based on the givenHttpServletRequest
. Given the request, placeholdersbaseUrl
,baseScheme
,baseHost
,basePort
, andbasePath
are resolved.- Parameters:
request
- the HTTP request- Returns:
- a resolver that can resolve
baseUrl
,baseScheme
,baseHost
,basePort
, andbasePath
placeholders
-
uriResolver
public static RelyingPartyRegistrationPlaceholderResolvers.UriResolver uriResolver(jakarta.servlet.http.HttpServletRequest request, RelyingPartyRegistration registration) Create a resolver based on the givenHttpServletRequest
. Given the request, placeholdersbaseUrl
,baseScheme
,baseHost
,basePort
,basePath
,registrationId
,assertingPartyEntityId
, andrelyingPartyEntityId
are resolved.- Parameters:
request
- the HTTP request- Returns:
- a resolver that can resolve
baseUrl
,baseScheme
,baseHost
,basePort
,basePath
,registrationId
,relyingPartyEntityId
, andassertingPartyEntityId
placeholders
-