Class DefaultRelyingPartyRegistrationResolver
java.lang.Object
org.springframework.security.saml2.provider.service.web.DefaultRelyingPartyRegistrationResolver
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<jakarta.servlet.http.HttpServletRequest,
,RelyingPartyRegistration> RelyingPartyRegistrationResolver
public final class DefaultRelyingPartyRegistrationResolver
extends Object
implements org.springframework.core.convert.converter.Converter<jakarta.servlet.http.HttpServletRequest,RelyingPartyRegistration>, RelyingPartyRegistrationResolver
A
Converter
that resolves a RelyingPartyRegistration
by extracting the
registration id from the request, querying a
RelyingPartyRegistrationRepository
, and resolving any template values.- Since:
- 5.4
-
Constructor Summary
ConstructorDescriptionDefaultRelyingPartyRegistrationResolver
(RelyingPartyRegistrationRepository relyingPartyRegistrationRepository) -
Method Summary
Modifier and TypeMethodDescriptionconvert
(jakarta.servlet.http.HttpServletRequest request) Resolve aRelyingPartyRegistration
from the HTTP request, using therelyingPartyRegistrationId
, if it is providedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
DefaultRelyingPartyRegistrationResolver
public DefaultRelyingPartyRegistrationResolver(RelyingPartyRegistrationRepository relyingPartyRegistrationRepository)
-
-
Method Details
-
convert
- Specified by:
convert
in interfaceorg.springframework.core.convert.converter.Converter<jakarta.servlet.http.HttpServletRequest,
RelyingPartyRegistration>
-
resolve
public RelyingPartyRegistration resolve(jakarta.servlet.http.HttpServletRequest request, String relyingPartyRegistrationId) Resolve aRelyingPartyRegistration
from the HTTP request, using therelyingPartyRegistrationId
, if it is provided- Specified by:
resolve
in interfaceRelyingPartyRegistrationResolver
- Parameters:
request
- the HTTP requestrelyingPartyRegistrationId
- theRelyingPartyRegistration
identifier- Returns:
- the resolved
RelyingPartyRegistration
-