Class 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.
      • Methods inherited from class org.eclipse.swt.widgets.Dialog

        checkSubclass, getParent, getStyle, getText, setText
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Method Detail

      • open

        public void open()
        Open the dialog in a modal window.
      • close

        public void close()
        Called when dialog should be closed due to completed or failed authentication.