Ask the authenticator that has been registered with the system for a password.
First, if there is a security manager, its checkPermission
method is called with a
NetPermission("requestPasswordAuthentication") permission.
This may result in a java.lang.SecurityException.
addr | The InetAddress of the site requesting authorization, or null if not known. | |
port | the port for the requested connection | |
protocol | The protocol that's requesting the connection
(java.net.Authenticator.getRequestingProtocol()) | |
prompt | A prompt string for the user | |
scheme | The authentication scheme |
SecurityException
| if a security manager exists and its
checkPermission method doesn't allow
the password authentication request. |
SecurityManager.checkPermission, java.net.NetPermission
Diagram: Authenticate