Class OneDriveOAuthReceiver.OneDriveOAuthReceiverBuilder
java.lang.Object
com.amilesend.onedrive.connection.auth.oauth.OneDriveOAuthReceiver.OneDriveOAuthReceiverBuilder
- Enclosing class:
OneDriveOAuthReceiver
-
Method Summary
Modifier and TypeMethodDescriptionbuild()callbackPath(String callbackPath) failureLandingPageUrl(String failureLandingPageUrl) port(int port) successLandingPageUrl(String successLandingPageUrl) toString()
-
Method Details
-
host
- Parameters:
host- host of the receiver (Default:localhost)- Returns:
this.
-
port
- Parameters:
port- optional port of the receiver to listen on- Returns:
this.
-
callbackPath
- Parameters:
callbackPath- the path to listen for the redirect (Default:/Callback)- Returns:
this.
-
clientId
- Parameters:
clientId- the registered application client identifier- Returns:
this.
-
scopes
- Parameters:
scopes- the list of scopes (permissions) for accessing the Graph API- Returns:
this.
-
successLandingPageUrl
public OneDriveOAuthReceiver.OneDriveOAuthReceiverBuilder successLandingPageUrl(String successLandingPageUrl) - Parameters:
successLandingPageUrl- optional URL for a custom successful landing page- Returns:
this.
-
failureLandingPageUrl
public OneDriveOAuthReceiver.OneDriveOAuthReceiverBuilder failureLandingPageUrl(String failureLandingPageUrl) - Parameters:
failureLandingPageUrl- optional URL for a custom failure landing page- Returns:
this.
-
build
-
toString
-