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.SerializableA 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 classSaml2LogoutRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Saml2MessageBindinggetBinding()Get the binding for the asserting party's SingleLogoutServicejava.lang.StringgetId()The unique identifier for this Logout Requestjava.lang.StringgetLocation()Get the location of the asserting party's SingleLogoutServicejava.lang.StringgetParameter(java.lang.String name)Get thenameparameters, 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.StringgetParametersQuery()Get an encoded query string of all parameters.java.lang.StringgetRelayState()The relay state associated with this Logout Requestjava.lang.StringgetRelyingPartyRegistrationId()The identifier for theRelyingPartyRegistrationassociated with this Logout Requestjava.lang.StringgetSamlRequest()Get 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 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 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
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
-
getParametersQuery
public java.lang.String 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
public java.lang.String 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
-
-