Class OpenSaml4LogoutRequestResolver
- java.lang.Object
-
- org.springframework.security.saml2.provider.service.web.authentication.logout.OpenSaml4LogoutRequestResolver
-
- All Implemented Interfaces:
Saml2LogoutRequestResolver
public final class OpenSaml4LogoutRequestResolver extends java.lang.Object implements Saml2LogoutRequestResolver
ASaml2LogoutRequestResolver
for resolving SAML 2.0 Logout Requests with OpenSAML 4- Since:
- 5.6
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpenSaml4LogoutRequestResolver.LogoutRequestParameters
-
Constructor Summary
Constructors Constructor Description OpenSaml4LogoutRequestResolver(RelyingPartyRegistrationResolver relyingPartyRegistrationResolver)
Construct aOpenSaml4LogoutRequestResolver
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Saml2LogoutRequest
resolve(javax.servlet.http.HttpServletRequest request, org.springframework.security.core.Authentication authentication)
Prepare to create, sign, and serialize a SAML 2.0 Logout Request.void
setClock(java.time.Clock clock)
Use thisClock
for determining the issuedInstant
void
setParametersConsumer(java.util.function.Consumer<OpenSaml4LogoutRequestResolver.LogoutRequestParameters> parametersConsumer)
Set aConsumer
for modifying the OpenSAMLLogoutRequest
-
-
-
Constructor Detail
-
OpenSaml4LogoutRequestResolver
public OpenSaml4LogoutRequestResolver(RelyingPartyRegistrationResolver relyingPartyRegistrationResolver)
Construct aOpenSaml4LogoutRequestResolver
-
-
Method Detail
-
resolve
public Saml2LogoutRequest resolve(javax.servlet.http.HttpServletRequest request, org.springframework.security.core.Authentication authentication)
Prepare to create, sign, and serialize a SAML 2.0 Logout Request. By default, includes aNameID
based on theAuthentication
instance.- Specified by:
resolve
in interfaceSaml2LogoutRequestResolver
- Parameters:
request
- the HTTP requestauthentication
- the current user- Returns:
- a signed and serialized SAML 2.0 Logout Request
-
setParametersConsumer
public void setParametersConsumer(java.util.function.Consumer<OpenSaml4LogoutRequestResolver.LogoutRequestParameters> parametersConsumer)
Set aConsumer
for modifying the OpenSAMLLogoutRequest
- Parameters:
parametersConsumer
- a consumer that accepts anOpenSaml4LogoutRequestResolver.LogoutRequestParameters
-
setClock
public void setClock(java.time.Clock clock)
Use thisClock
for determining the issuedInstant
- Parameters:
clock
- theClock
to use
-
-