public class ConnectHandler extends AbstractHandler
| Constructor and Description |
|---|
ConnectHandler() |
| Modifier and Type | Method and Description |
|---|---|
String |
createAuthorizeUrl(AuthorizeRequest request)
The Authorize endpoint is the endpoint on Mollie web site where the merchant logs in, and grants authorization to your client application.
|
TokenResponse |
generateTokens(String clientId,
String clientSecret,
TokenRequest body)
Exchange the auth code received at the Authorize endpoint for an actual access token, with which you can communicate with the Mollie API.
|
TokenResponse |
generateTokens(String clientId,
String clientSecret,
TokenRequest body,
QueryParams params)
Exchange the auth code received at the Authorize endpoint for an actual access token, with which you can communicate with the Mollie API.
|
void |
revokeToken(String clientId,
String clientSecret,
RevokeTokenRequest body)
Revoke an access- or a refresh token.
|
void |
revokeToken(String clientId,
String clientSecret,
RevokeTokenRequest body,
QueryParams params)
Revoke an access- or a refresh token.
|
delete, delete, delete, get, get, patch, patch, post, post, postWithoutBody, validateResponsepublic String createAuthorizeUrl(AuthorizeRequest request)
The resource owner can then grant the authorization to your client application for the scopes you have requested.
Mollie will then redirect the resource owner to the redirect_uri you have specified. The redirect_uri will be appended with a code parameter, which will contain the auth token. You should then exchange the auth token for an access token using the Tokens API.
request - AuthorizeRequest objectpublic TokenResponse generateTokens(String clientId, String clientSecret, TokenRequest body) throws MollieException
clientId - The OAuth client IDclientSecret - The OAuth client IDbody - TokenRequest objectMollieException - when something went wrongpublic TokenResponse generateTokens(String clientId, String clientSecret, TokenRequest body, QueryParams params) throws MollieException
clientId - The OAuth client IDclientSecret - The OAuth client IDbody - TokenRequest objectparams - A map of query parametersMollieException - when something went wrongpublic void revokeToken(String clientId, String clientSecret, RevokeTokenRequest body) throws MollieException
clientId - The OAuth client IDclientSecret - The OAuth client IDbody - RevokeTokenRequest objectMollieException - when something went wrongpublic void revokeToken(String clientId, String clientSecret, RevokeTokenRequest body, QueryParams params) throws MollieException
clientId - The OAuth client IDclientSecret - The OAuth client IDbody - RevokeTokenRequest objectparams - A map of query parametersMollieException - when something went wrongCopyright © 2020. All rights reserved.