Search in sources :

Example 1 with Iso7816FourCard

use of es.gob.jmulticard.card.iso7816four.Iso7816FourCard in project jmulticard by ctt-gob-es.

the class TestAccv method testVerifyPin.

/**
 * Prueba de verificación de PIN.
 * @throws Exception En cualquier error.
 */
@SuppressWarnings("static-method")
@Test
@Ignore
public void testVerifyPin() throws Exception {
    // $NON-NLS-1$
    final char[] pin = "11111111".toCharArray();
    final Iso7816FourCard card = new SmartCafePkcs15Applet(new SmartcardIoConnection(), new JseCryptoHelper());
    card.verifyPin(new CachePasswordCallback(pin));
}
Also used : Iso7816FourCard(es.gob.jmulticard.card.iso7816four.Iso7816FourCard) SmartCafePkcs15Applet(es.gob.jmulticard.card.gide.smartcafe.SmartCafePkcs15Applet) SmartcardIoConnection(es.gob.jmulticard.jse.smartcardio.SmartcardIoConnection) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

SmartCafePkcs15Applet (es.gob.jmulticard.card.gide.smartcafe.SmartCafePkcs15Applet)1 Iso7816FourCard (es.gob.jmulticard.card.iso7816four.Iso7816FourCard)1 SmartcardIoConnection (es.gob.jmulticard.jse.smartcardio.SmartcardIoConnection)1 Ignore (org.junit.Ignore)1 Test (org.junit.Test)1