public class OIDCAuthorizationResponseParser extends Object
Related specifications:
| Modifier and Type | Method and Description |
|---|---|
static OIDCAuthorizationResponse |
parse(HTTPResponse httpResponse)
Parses an OpenID Connect authorisation success or error response
from the specified HTTP response.
|
static OIDCAuthorizationResponse |
parse(URL uri)
Parses an OpenID Connect authorisation success or error response
from the specified URI.
|
static OIDCAuthorizationResponse |
parse(URL redirectURI,
Map<String,String> params)
Parses an OpenID Connect authorisation success or error response
from the specified redirect URI and parameters.
|
public static OIDCAuthorizationResponse parse(URL redirectURI, Map<String,String> params) throws ParseException
redirectURI - The base redirect URI. Must not be null.params - The response parameters to parse. Must not be
null.ParseException - If the parameters couldn't be parsed to an
OpenID Connect authorisation success or error
response.public static OIDCAuthorizationResponse parse(URL uri) throws ParseException
Example URI:
https://client.example.com/cb?code=SplxlOBeZQQYbYS6WxSbIA&state=xyz
uri - The URI to parse. Can be absolute or relative, with a
fragment or query string containing the authorisation
response parameters. Must not be null.ParseException - If the redirect URI couldn't be parsed to an
OpenID Connect authorisation success or error
response.public static OIDCAuthorizationResponse parse(HTTPResponse httpResponse) throws ParseException
Example HTTP response:
HTTP/1.1 302 Found Location: https://client.example.com/cb?code=SplxlOBeZQQYbYS6WxSbIA&state=xyz
httpResponse - The HTTP response to parse. Must not be
null.ParseException - If the HTTP response couldn't be parsed to an
OpenID Connect authorisation success or error
response.Copyright © 2013 NimbusDS. All Rights Reserved.