Condividi tramite


Authenticator.RequestPasswordAuthentication Metodo

Definizione

Overload

RequestPasswordAuthentication(InetAddress, Int32, String, String, String)

Chiedere all'autenticatore registrato con il sistema di ottenere una password.

RequestPasswordAuthentication(String, InetAddress, Int32, String, String, String)

Chiedere all'autenticatore registrato con il sistema di ottenere una password.

RequestPasswordAuthentication(String, InetAddress, Int32, String, String, String, URL, Authenticator+RequestorType)

Chiedere all'autenticatore registrato con il sistema di ottenere una password.

RequestPasswordAuthentication(InetAddress, Int32, String, String, String)

Chiedere all'autenticatore registrato con il sistema di ottenere una password.

[Android.Runtime.Register("requestPasswordAuthentication", "(Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/net/PasswordAuthentication;", "")]
public static Java.Net.PasswordAuthentication? RequestPasswordAuthentication (Java.Net.InetAddress? addr, int port, string? protocol, string? prompt, string? scheme);
[<Android.Runtime.Register("requestPasswordAuthentication", "(Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/net/PasswordAuthentication;", "")>]
static member RequestPasswordAuthentication : Java.Net.InetAddress * int * string * string * string -> Java.Net.PasswordAuthentication

Parametri

addr
InetAddress

Indirizzo InetAddress del sito che richiede l'autorizzazione o null se non noto.

port
Int32

porta per la connessione richiesta

protocol
String

Protocollo che richiede la connessione (java.net.Authenticator#getRequestingProtocol())

prompt
String

Stringa di richiesta per l'utente

scheme
String

Schema di autenticazione

Restituisce

Nome utente/password o Null se non è possibile ottenere.

Attributi

Commenti

Chiedere all'autenticatore registrato con il sistema di ottenere una password.

In primo luogo, se è presente un gestore della sicurezza, il relativo checkPermission metodo viene chiamato con un'autorizzazione NetPermission("requestPasswordAuthentication") . Ciò può comportare un'eccezione java.lang.SecurityException.

Documentazione java per java.net.Authenticator.requestPasswordAuthentication(java.net.InetAddress, int, java.lang.String, java.lang.String, java.lang.String).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a

RequestPasswordAuthentication(String, InetAddress, Int32, String, String, String)

Chiedere all'autenticatore registrato con il sistema di ottenere una password.

[Android.Runtime.Register("requestPasswordAuthentication", "(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/net/PasswordAuthentication;", "")]
public static Java.Net.PasswordAuthentication? RequestPasswordAuthentication (string? host, Java.Net.InetAddress? addr, int port, string? protocol, string? prompt, string? scheme);
[<Android.Runtime.Register("requestPasswordAuthentication", "(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/net/PasswordAuthentication;", "")>]
static member RequestPasswordAuthentication : string * Java.Net.InetAddress * int * string * string * string -> Java.Net.PasswordAuthentication

Parametri

host
String

Nome host del sito che richiede l'autenticazione.

addr
InetAddress

Indirizzo InetAddress del sito che richiede l'autenticazione o null se non noto.

port
Int32

porta per la connessione richiesta.

protocol
String

Protocollo che richiede la connessione (java.net.Authenticator#getRequestingProtocol())

prompt
String

Stringa di richiesta per l'utente che identifica l'area di autenticazione.

scheme
String

Schema di autenticazione

Restituisce

Nome utente/password o Null se non è possibile ottenere.

Attributi

Commenti

Chiedere all'autenticatore registrato con il sistema di ottenere una password. Questo è il metodo preferito per richiedere una password perché il nome host può essere fornito nei casi in cui InetAddress non è disponibile.

In primo luogo, se è presente un gestore della sicurezza, il relativo checkPermission metodo viene chiamato con un'autorizzazione NetPermission("requestPasswordAuthentication") . Ciò può comportare un'eccezione java.lang.SecurityException.

Aggiunta nella versione 1.4.

Documentazione java per java.net.Authenticator.requestPasswordAuthentication(java.lang.String, java.net.InetAddress, int, java.lang.String, java.lang.String, java.lang.String).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a

RequestPasswordAuthentication(String, InetAddress, Int32, String, String, String, URL, Authenticator+RequestorType)

Chiedere all'autenticatore registrato con il sistema di ottenere una password.

[Android.Runtime.Register("requestPasswordAuthentication", "(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/URL;Ljava/net/Authenticator$RequestorType;)Ljava/net/PasswordAuthentication;", "")]
public static Java.Net.PasswordAuthentication? RequestPasswordAuthentication (string? host, Java.Net.InetAddress? addr, int port, string? protocol, string? prompt, string? scheme, Java.Net.URL? url, Java.Net.Authenticator.RequestorType? reqType);
[<Android.Runtime.Register("requestPasswordAuthentication", "(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/URL;Ljava/net/Authenticator$RequestorType;)Ljava/net/PasswordAuthentication;", "")>]
static member RequestPasswordAuthentication : string * Java.Net.InetAddress * int * string * string * string * Java.Net.URL * Java.Net.Authenticator.RequestorType -> Java.Net.PasswordAuthentication

Parametri

host
String

Nome host del sito che richiede l'autenticazione.

addr
InetAddress

Indirizzo InetAddress del sito che richiede l'autenticazione o null se non noto.

port
Int32

porta per la connessione richiesta.

protocol
String

Protocollo che richiede la connessione (java.net.Authenticator#getRequestingProtocol())

prompt
String

Stringa di richiesta per l'utente che identifica l'area di autenticazione.

scheme
String

Schema di autenticazione

url
URL
reqType
Authenticator.RequestorType

tipo di richiedente della connessione che richiede l'autenticazione.

Restituisce

Nome utente/password o Null se non è possibile ottenere.

Attributi

Commenti

Documentazione java per java.net.Authenticator.requestPasswordAuthentication(java.lang.String, java.net.InetAddress, int, java.lang.String, java.lang.String, java.lang.String).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a