Class Saml2LogoutRequest
java.lang.Object
org.springframework.security.saml2.provider.service.authentication.logout.Saml2LogoutRequest
- All Implemented Interfaces:
Serializable
A class that represents a signed and serialized SAML 2.0 Logout Request
- Since:
- 5.6
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionGet the binding for the asserting party's SingleLogoutService.getId()The unique identifier for this Logout Request.Get the location of the asserting party's SingleLogoutService.getParameter(String name) Get thenameparameters, a short-hand forgetParameters().get(name).Get all parameters.Get an encoded query string of all parameters.The relay state associated with this Logout Request.The identifier for theRelyingPartyRegistrationassociated with this Logout Request.Get the signed and serialized <saml2:LogoutRequest> payload.static Saml2LogoutRequest.BuilderwithRelyingPartyRegistration(RelyingPartyRegistration registration) Create aSaml2LogoutRequest.Builderinstance from thisRelyingPartyRegistration.
-
Method Details
-
getId
The unique identifier for this Logout Request.- Returns:
- the Logout Request identifier
-
getLocation
Get the location of the asserting party's SingleLogoutService.- Returns:
- the SingleLogoutService location
-
getBinding
Get the binding for the asserting party's SingleLogoutService.- Returns:
- the SingleLogoutService binding
-
getSamlRequest
Get the signed and serialized <saml2:LogoutRequest> payload.- Returns:
- the signed and serialized <saml2:LogoutRequest> payload
-
getRelayState
The relay state associated with this Logout Request.- Returns:
- the relay state
-
getParameter
Get thenameparameters, a short-hand forgetParameters().get(name). Useful when specifying additional query parameters for the Logout Request- Parameters:
name- the parameter's name- Returns:
- the parameter's value
-
getParameters
Get all parameters. Useful when specifying additional query parameters for the Logout Request- Returns:
- the Logout Request query parameters
-
getParametersQuery
Get an encoded query string of all parameters. Resulting query does not contain a leading question mark.- Returns:
- an encoded string of all parameters
- Since:
- 5.8
-
getRelyingPartyRegistrationId
The identifier for theRelyingPartyRegistrationassociated with this Logout Request.- Returns:
- the
RelyingPartyRegistrationid
-
withRelyingPartyRegistration
public static Saml2LogoutRequest.Builder withRelyingPartyRegistration(RelyingPartyRegistration registration) Create aSaml2LogoutRequest.Builderinstance from thisRelyingPartyRegistration. Specifically, this will pull the SingleLogoutService location and binding from theRelyingPartyRegistration- Parameters:
registration- theRelyingPartyRegistrationto use- Returns:
- the
Saml2LogoutRequest.Builderfor further configurations
-