Class Saml2LogoutRequest
- java.lang.Object
-
- org.springframework.security.saml2.provider.service.authentication.logout.Saml2LogoutRequest
-
- All Implemented Interfaces:
java.io.Serializable
public final class Saml2LogoutRequest extends java.lang.Object implements java.io.Serializable
A class that represents a signed and serialized SAML 2.0 Logout Request- Since:
- 5.6
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Saml2LogoutRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Saml2MessageBinding
getBinding()
Get the binding for the asserting party's SingleLogoutServicejava.lang.String
getId()
The unique identifier for this Logout Requestjava.lang.String
getLocation()
Get the location of the asserting party's SingleLogoutServicejava.lang.String
getParameter(java.lang.String name)
Get thename
parameters, a short-hand forgetParameters().get(name)
Useful when specifying additional query parameters for the Logout Requestjava.util.Map<java.lang.String,java.lang.String>
getParameters()
Get all parameters Useful when specifying additional query parameters for the Logout Requestjava.lang.String
getRelayState()
The relay state associated with this Logout Requestjava.lang.String
getRelyingPartyRegistrationId()
The identifier for theRelyingPartyRegistration
associated with this Logout Requestjava.lang.String
getSamlRequest()
Get the signed and serialized <saml2:LogoutRequest> payloadstatic Saml2LogoutRequest.Builder
withRelyingPartyRegistration(RelyingPartyRegistration registration)
Create aSaml2LogoutRequest.Builder
instance from thisRelyingPartyRegistration
Specifically, this will pull the SingleLogoutService location and binding from theRelyingPartyRegistration
-
-
-
Method Detail
-
getId
public java.lang.String getId()
The unique identifier for this Logout Request- Returns:
- the Logout Request identifier
-
getLocation
public java.lang.String getLocation()
Get the location of the asserting party's SingleLogoutService- Returns:
- the SingleLogoutService location
-
getBinding
public Saml2MessageBinding getBinding()
Get the binding for the asserting party's SingleLogoutService- Returns:
- the SingleLogoutService binding
-
getSamlRequest
public java.lang.String getSamlRequest()
Get the signed and serialized <saml2:LogoutRequest> payload- Returns:
- the signed and serialized <saml2:LogoutRequest> payload
-
getRelayState
public java.lang.String getRelayState()
The relay state associated with this Logout Request- Returns:
- the relay state
-
getParameter
public java.lang.String getParameter(java.lang.String name)
Get thename
parameters, 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
public java.util.Map<java.lang.String,java.lang.String> getParameters()
Get all parameters Useful when specifying additional query parameters for the Logout Request- Returns:
- the Logout Request query parameters
-
getRelyingPartyRegistrationId
public java.lang.String getRelyingPartyRegistrationId()
The identifier for theRelyingPartyRegistration
associated with this Logout Request- Returns:
- the
RelyingPartyRegistration
id
-
withRelyingPartyRegistration
public static Saml2LogoutRequest.Builder withRelyingPartyRegistration(RelyingPartyRegistration registration)
Create aSaml2LogoutRequest.Builder
instance from thisRelyingPartyRegistration
Specifically, this will pull the SingleLogoutService location and binding from theRelyingPartyRegistration
- Parameters:
registration
- theRelyingPartyRegistration
to use- Returns:
- the
Saml2LogoutRequest.Builder
for further configurations
-
-