Package com.iizigo.ws.editor
Class OAuthBrowserDialog
- java.lang.Object
- org.eclipse.swt.widgets.Dialog
- com.iizigo.ws.editor.OAuthBrowserDialog
public class OAuthBrowserDialog extends org.eclipse.swt.widgets.Dialog
Browser in dialog used to show the OAuth (2) client authentication. This dialog must be created with the constructor, then called with "open()". The "open" method is modal until dialog is closed from the authentication callback or the user. If the user closes the dialog box, the session is disposed of.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description OAuthBrowserDialog(org.eclipse.swt.widgets.Shell parent, IOAuthService service, java.lang.String url)
Create the dialog.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Called when dialog should be closed due to completed or failed authentication.void
open()
Open the dialog in a modal window.
Constructor Detail
OAuthBrowserDialog
public OAuthBrowserDialog(org.eclipse.swt.widgets.Shell parent, IOAuthService service, java.lang.String url)
Create the dialog.- Parameters:
parent
- Parent shell.service
- The service to authenticate.url
- The URL to display.