|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.nimbusds.openid.connect.sdk.OIDCAuthorizationResponseParser
public class OIDCAuthorizationResponseParser
Parser of OpenID Connect authorisation response messages.
Related specifications:
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |