Class UrlAuthenticatorDialog

  • All Implemented Interfaces:
    org.apache.http.client.CredentialsProvider, HTTPCredentialsProvider

    public class UrlAuthenticatorDialog
    extends Authenticator
    implements HTTPCredentialsProvider
    This can be used both for java.net authentication: java.net.Authenticator.setDefault(new thredds.ui.UrlAuthenticatorDialog(frame));

    or for org.apache.http authentication: httpclient.getParams().setParameter( CredentialsProvider.PROVIDER, new UrlAuthenticatorDialog( null));

    • Constructor Detail

      • UrlAuthenticatorDialog

        public UrlAuthenticatorDialog​(JFrame parent)
        constructor
        Parameters:
        parent - JFrame
    • Method Detail

      • clear

        public void clear()
        Specified by:
        clear in interface org.apache.http.client.CredentialsProvider
      • setCredentials

        public void setCredentials​(org.apache.http.auth.AuthScope scope,
                                   org.apache.http.auth.Credentials cred)
        Specified by:
        setCredentials in interface org.apache.http.client.CredentialsProvider
      • getCredentials

        public org.apache.http.auth.Credentials getCredentials​(org.apache.http.auth.AuthScope scope)
        Specified by:
        getCredentials in interface org.apache.http.client.CredentialsProvider