public class HsmUnlockCmd extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
unlockOtp(DeviceHandler device,
String publicId,
String otp)
Have the YubiHSM unlock the HSM operations (those involving the keystore) with a YubiKey OTP.
|
public static boolean unlockOtp(DeviceHandler device, String publicId, String otp) throws YubiHSMErrorException, YubiHSMInputException, YubiHSMCommandFailedException
device - the YubiHSM devicepublicId - the YubiKey public idotp - the YubiKey OTP (in hex)YubiHSMErrorException - error exceptionsYubiHSMInputException - argument exceptionsYubiHSMCommandFailedException - command failed exceptionCopyright © 2011-2016 United ID. All Rights Reserved.