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@Nullable StringgetId()The unique identifier for this Logout RequestGet the location of the asserting party's SingleLogoutService@Nullable StringgetParameter(String name) Get thenameparameters, a short-hand forgetParameters().get(name)Useful when specifying additional query parameters for the Logout RequestGet all parameters Useful when specifying additional query parameters for the Logout Request@Nullable StringGet an encoded query string of all parameters.@Nullable StringThe relay state associated with this Logout RequestThe identifier for theRelyingPartyRegistrationassociated with this Logout RequestGet the signed and serialized <saml2:LogoutRequest> payloadstatic Saml2LogoutRequest.BuilderwithRelyingPartyRegistration(RelyingPartyRegistration registration) Create aSaml2LogoutRequest.Builderinstance from thisRelyingPartyRegistrationSpecifically, this will pull the SingleLogoutService location and binding from theRelyingPartyRegistration
-
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
-
getParameters
-
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 thisRelyingPartyRegistrationSpecifically, this will pull the SingleLogoutService location and binding from theRelyingPartyRegistration- Parameters:
registration- theRelyingPartyRegistrationto use- Returns:
- the
Saml2LogoutRequest.Builderfor further configurations
-