@Immutable public class BackChannelLogoutRequest extends AbstractRequest
Example HTTP request:
POST /backchannel_logout HTTP/1.1 Host: rp.example.org Content-Type: application/x-www-form-urlencoded logout_token=eyJhbGci ... .eyJpc3Mi ... .T3BlbklE ...
Related specifications:
| Constructor | Description |
|---|---|
BackChannelLogoutRequest(URI uri,
com.nimbusds.jwt.JWT logoutToken) |
Creates a new back-channel logout request.
|
| Modifier and Type | Method | Description |
|---|---|---|
com.nimbusds.jwt.JWT |
getLogoutToken() |
Returns the logout token.
|
static BackChannelLogoutRequest |
parse(HTTPRequest httpRequest) |
Parses a back-channel logout request from the specified HTTP request.
|
static BackChannelLogoutRequest |
parse(URI uri,
Map<String,String> params) |
Parses a back-channel logout request from the specified parameters.
|
static BackChannelLogoutRequest |
parse(Map<String,String> params) |
Parses a back-channel logout request from the specified parameters.
|
HTTPRequest |
toHTTPRequest() |
Returns the matching HTTP request.
|
Map<String,String> |
toParameters() |
Returns the parameters for this back-channel logout request.
|
getEndpointURIpublic BackChannelLogoutRequest(URI uri, com.nimbusds.jwt.JWT logoutToken)
uri - The back-channel logout URI. May be null
if the toHTTPRequest() method will not be
used.logoutToken - The logout token. Must be signed, or signed and
encrypted. Must not be null.public com.nimbusds.jwt.JWT getLogoutToken()
public Map<String,String> toParameters()
Example parameters:
logout_token=eyJhbGci ... .eyJpc3Mi ... .T3BlbklE ...
public HTTPRequest toHTTPRequest()
Requestpublic static BackChannelLogoutRequest parse(Map<String,String> params) throws ParseException
Example parameters:
logout_token = eyJhbGci ... .eyJpc3Mi ... .T3BlbklE ...
params - The parameters. Must not be null.ParseException - If the parameters couldn't be parsed to a
back-channel logout request.public static BackChannelLogoutRequest parse(URI uri, Map<String,String> params) throws ParseException
Example parameters:
logout_token = eyJhbGci ... .eyJpc3Mi ... .T3BlbklE ...
uri - The back-channel logout URI. May be null if
the toHTTPRequest() method will not be used.params - The parameters. Must not be null.ParseException - If the parameters couldn't be parsed to a
back-channel logout request.public static BackChannelLogoutRequest parse(HTTPRequest httpRequest) throws ParseException
Example HTTP request (POST):
POST /backchannel_logout HTTP/1.1 Host: rp.example.org Content-Type: application/x-www-form-urlencoded logout_token=eyJhbGci ... .eyJpc3Mi ... .T3BlbklE ...
httpRequest - The HTTP request. Must not be null.ParseException - If the HTTP request couldn't be parsed to a
back-channel logout request.Copyright © 2018 Connect2id Ltd.. All rights reserved.