Class DefaultRelyingPartyRegistrationResolver
- java.lang.Object
-
- org.springframework.security.saml2.provider.service.web.DefaultRelyingPartyRegistrationResolver
-
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<javax.servlet.http.HttpServletRequest,RelyingPartyRegistration>
,RelyingPartyRegistrationResolver
public final class DefaultRelyingPartyRegistrationResolver extends java.lang.Object implements org.springframework.core.convert.converter.Converter<javax.servlet.http.HttpServletRequest,RelyingPartyRegistration>, RelyingPartyRegistrationResolver
AConverter
that resolves aRelyingPartyRegistration
by extracting the registration id from the request, querying aRelyingPartyRegistrationRepository
, and resolving any template values.- Since:
- 5.4
-
-
Constructor Summary
Constructors Constructor Description DefaultRelyingPartyRegistrationResolver(RelyingPartyRegistrationRepository relyingPartyRegistrationRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RelyingPartyRegistration
convert(javax.servlet.http.HttpServletRequest request)
RelyingPartyRegistration
resolve(javax.servlet.http.HttpServletRequest request, java.lang.String relyingPartyRegistrationId)
Resolve aRelyingPartyRegistration
from the HTTP request, using therelyingPartyRegistrationId
, if it is provided
-
-
-
Constructor Detail
-
DefaultRelyingPartyRegistrationResolver
public DefaultRelyingPartyRegistrationResolver(RelyingPartyRegistrationRepository relyingPartyRegistrationRepository)
-
-
Method Detail
-
convert
public RelyingPartyRegistration convert(javax.servlet.http.HttpServletRequest request)
- Specified by:
convert
in interfaceorg.springframework.core.convert.converter.Converter<javax.servlet.http.HttpServletRequest,RelyingPartyRegistration>
-
resolve
public RelyingPartyRegistration resolve(javax.servlet.http.HttpServletRequest request, java.lang.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
-
-