public final class Session
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getLogoutUrl(java.lang.String redirectURI,
java.lang.String idToken,
APIContext apiContext)
Returns the URL to which the user must be redirected to logout from the
OpenID provider (i.e.
|
static java.lang.String |
getRedirectURL(java.lang.String redirectURI,
java.util.List<java.lang.String> scope,
APIContext apiContext)
Returns the PayPal URL to which the user must be redirected to start the
authentication / authorization process.
|
static java.lang.String |
getRedirectURL(java.lang.String redirectURI,
java.util.List<java.lang.String> scope,
APIContext apiContext,
ClientCredentials clientCredentials) |
public static java.lang.String getRedirectURL(java.lang.String redirectURI,
java.util.List<java.lang.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 java.lang.String getRedirectURL(java.lang.String redirectURI,
java.util.List<java.lang.String> scope,
APIContext apiContext,
ClientCredentials clientCredentials)
public static java.lang.String getLogoutUrl(java.lang.String redirectURI,
java.lang.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.