com.paypal.api.openidconnect
Class Session
java.lang.Object
com.paypal.api.openidconnect.Session
public final class Session
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getRedirectURL
public 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.
- Parameters:
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.
- Returns:
- Redirect URL
getRedirectURL
public static String getRedirectURL(String redirectURI,
List<String> scope,
APIContext apiContext,
ClientCredentials clientCredentials)
getLogoutUrl
public 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. PayPal)
- Parameters:
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.
- Returns:
- Logout URL
Copyright © 2015. All Rights Reserved.