Class FrontChannelLogoutPropagationResponse
java.lang.Object
net.shibboleth.idp.plugin.oidc.op.messaging.impl.FrontChannelLogoutPropagationResponse
- All Implemented Interfaces:
com.nimbusds.oauth2.sdk.Message,com.nimbusds.oauth2.sdk.Response
public class FrontChannelLogoutPropagationResponse
extends Object
implements com.nimbusds.oauth2.sdk.Response
A Nimbus
Response implementation representing a front-channel logout propagation message that is sent to the
RP's front-channel logout URI endpoint.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.FrontChannelLogoutPropagationResponse(String uri, String iss, String sid) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected StringserializeParameters(String prefix) URL-encode the iss and sid -parameters to the given prefix if parameter values have been set.com.nimbusds.oauth2.sdk.http.HTTPResponseReturns an HTTP response for this logout propagation response by using HTTP 302 redirection.
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
frontChannelLogoutUri
The front-channel logout endpoint. -
issuer
The optional issuer (iss-parameter) value. -
sessionId
The optional sessionId (sid-parameter) value.
-
-
Constructor Details
-
FrontChannelLogoutPropagationResponse
Constructor.- Parameters:
uri- The front-channel logout URI.
-
FrontChannelLogoutPropagationResponse
public FrontChannelLogoutPropagationResponse(@Nonnull String uri, @Nullable String iss, @Nullable String sid) Constructor.- Parameters:
uri- The front-channel logout URI.iss- The optional issuer -parameter value.sid- The optional sessionId -parameter value.
-
-
Method Details
-
indicatesSuccess
public boolean indicatesSuccess()- Specified by:
indicatesSuccessin interfacecom.nimbusds.oauth2.sdk.Response
-
toHTTPResponse
public com.nimbusds.oauth2.sdk.http.HTTPResponse toHTTPResponse()Returns an HTTP response for this logout propagation response by using HTTP 302 redirection.Example HTTP response:
HTTP/1.1 302 Found Location: http://example.org/logout?iss=https://op.example.org&sid=1234567890ABCDEFG
- Specified by:
toHTTPResponsein interfacecom.nimbusds.oauth2.sdk.Response- Returns:
- An HTTP response for this message.
-
serializeParameters
@Nonnull protected String serializeParameters(@Nonnull String prefix) throws UnsupportedEncodingException URL-encode the iss and sid -parameters to the given prefix if parameter values have been set.- Parameters:
prefix- The prefix/URL for which to add the parameters.- Returns:
- The given prefix possibly appended with parameter names and values
- Throws:
UnsupportedEncodingException- If the parameter values could not be encoded with UTF-8
-