public final class Session extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getLogoutUrl(String redirectURI,
String idToken,
APIContext apiContext)
Returns the URL to which the user must be redirected to logout from the
OpenID provider (i.e.
|
static String |
getRedirectURL(String redirectURI,
List<String> scope,
APIContext apiContext)
Returns the PayPal URL to which the user must be redirected to start the
authentication / authorization process.
|
static String |
getRedirectURL(String redirectURI,
List<String> scope,
APIContext apiContext,
ClientCredentials clientCredentials) |
public static String getRedirectURL(String redirectURI, List<String> scope, APIContext apiContext)
redirectURI - Uri on merchant website to where the user must be redirected
to post paypal loginscope - The access privilges that you are requesting for from the
user. Pass empty array for all scopes. See
https://developer.paypal
.com/webapps/developer/docs/classic/loginwithpaypal
/ht_OpenIDConnect/#parameters for more informationapiContext - APIContext to be used for the call.public static String getRedirectURL(String redirectURI, List<String> scope, APIContext apiContext, ClientCredentials clientCredentials)
public static String getLogoutUrl(String redirectURI, String idToken, APIContext apiContext)
redirectURI - URI on merchant website to where the user must be redirected
to post logoutidToken - id_token from the TokenInfo objectapiContext - APIContext to be used for the call.Copyright © 2016. All Rights Reserved.