Class AwtAuthenticator


  • public class AwtAuthenticator
    extends CachedAuthenticator
    Basic network prompt for username/password when using AWT.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void install()
      Install this authenticator implementation into the JVM.
      protected java.net.PasswordAuthentication promptPasswordAuthentication()
      Prompt for and request authentication from the end-user.
      • Methods inherited from class java.net.Authenticator

        getDefault, getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthenticationInstance, setDefault
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AwtAuthenticator

        public AwtAuthenticator()
    • Method Detail

      • install

        public static void install()
        Install this authenticator implementation into the JVM.
      • promptPasswordAuthentication

        protected java.net.PasswordAuthentication promptPasswordAuthentication()
        Prompt for and request authentication from the end-user.
        Specified by:
        promptPasswordAuthentication in class CachedAuthenticator
        Returns:
        the authentication data; null if the user canceled the request and does not want to continue.