methodtPkcs11Token.Login
function Login(const aPassphrase: string; aCheckLength: Boolean = True): CK_RV;
Logs the user in with the CKU_USER credential -- the token's PIN, token password or passphrase; PKCS#11 has one name for all three. NEVER retries, because a wrong credential decrements a counter that eventually locks the device; inspect PinFinalTry first and refuse to guess.
The credential is sent as UTF-8, per the spec's CK_UTF8CHAR_PTR. With aCheckLength (the default) an obviously out-of-range length is rejected locally, returning CKR_PIN_LEN_RANGE without troubling the device. Pass False when the middleware under-reports its own limits -- some do -- and you would rather let the token decide.