com.paypal.api.openidconnect
Class Session

java.lang.Object
  extended by com.paypal.api.openidconnect.Session

public final class Session
extends Object


Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 login
scope - 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 information
apiContext - 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 logout
idToken - id_token from the TokenInfo object
apiContext - APIContext to be used for the call.
Returns:
Logout URL


Copyright © 2015. All Rights Reserved.