init_pin


Description:

public bool init_pin (uint8[]? pin, Cancellable? cancellable = null) throws Error

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 may block for an indefinite period.

Parameters:

this

Initialize PIN for this session's slot.

pin

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

cancellable

Optional cancellation object, or null.

n_pin

the length of the PIN

Returns:

Whether successful or not.