Class SimpleNetworkAuthenticator

    • Constructor Detail

      • SimpleNetworkAuthenticator

        public SimpleNetworkAuthenticator​(String userName,
                                          String password)
        Creates a new instance with a user name and password that will be used for all authentication requests. The password is required to be non-null.
        Parameters:
        userName - the user name
        password - the password
      • SimpleNetworkAuthenticator

        public SimpleNetworkAuthenticator​(PasswordAuthentication passwordAuthentication)
        Creates a new instance with the PasswordAuthentication instance that will be used for all authentication requests.
        Parameters:
        passwordAuthentication - the password authentication instance