Dil

AuthProvider.Login(Subject, ICallbackHandler) Method

Definition

[Android.Runtime.Register("login", "(Ljavax/security/auth/Subject;Ljavax/security/auth/callback/CallbackHandler;)V", "GetLogin_Ljavax_security_auth_Subject_Ljavax_security_auth_callback_CallbackHandler_Handler")]
public abstract void Login(Javax.Security.Auth.Subject? subject, Javax.Security.Auth.Callback.ICallbackHandler? handler);
[<Android.Runtime.Register("login", "(Ljavax/security/auth/Subject;Ljavax/security/auth/callback/CallbackHandler;)V", "GetLogin_Ljavax_security_auth_Subject_Ljavax_security_auth_callback_CallbackHandler_Handler")>]
abstract member Login : Javax.Security.Auth.Subject * Javax.Security.Auth.Callback.ICallbackHandler -> unit

Parameters

subject
Subject

the Subject which may contain principals/credentials used for authentication, or may be populated with additional principals/credentials after successful authentication has completed. This parameter may be null.

handler
ICallbackHandler

the CallbackHandler used by this provider to obtain authentication information from the caller, which may be null

Attributes

Exceptions

Remarks

Log in to this provider. The provider relies on a CallbackHandler to obtain authentication information from the caller (a PIN, for example). If the caller passes a null handler to this method, the provider uses the handler set in the setCallbackHandler method. If no handler was set in that method, the provider queries the auth.login.defaultCallbackHandler security property for the fully qualified class name of a default handler implementation. If the security property is not set, the provider is assumed to have alternative means for obtaining authentication information.

Java reference for java.security.AuthProvider.login.

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.

Applies to