Gck.Session.prototype.init_pin_async

function init_pin_async(pin: ByteArray, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for gck_session_init_pin_async()
}
  

Initialize the user's pin on this slot that this session is opened on. According to the PKCS\#11 standards, the session must be logged in with the CKU_SO user type.

This call will return immediately and completes asynchronously.

pin

the user's PIN, or null for protected authentication path

cancellable

Optional cancellation object, or NULL.

callback

Called when the operation completes.