Authenticator.SetDefault(Authenticator) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the authenticator that will be used by the networking code when a proxy or an HTTP server asks for authentication.
[Android.Runtime.Register("setDefault", "(Ljava/net/Authenticator;)V", "")]
public static void SetDefault (Java.Net.Authenticator? a);
[<Android.Runtime.Register("setDefault", "(Ljava/net/Authenticator;)V", "")>]
static member SetDefault : Java.Net.Authenticator -> unit
Parameters
The authenticator to be set. If a is null
then
any previously set authenticator is removed.
- Attributes
Remarks
Sets the authenticator that will be used by the networking code when a proxy or an HTTP server asks for authentication.
First, if there is a security manager, its checkPermission
method is called with a NetPermission("setDefaultAuthenticator")
permission. This may result in a java.lang.SecurityException.
Java documentation for java.net.Authenticator.setDefault(java.net.Authenticator)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.