580581582583584585586587588589590
if (t.type != TLV.SEQUENCE_TYPE) { // not a PIN object continue; } PINAttributes pin = new PINAttributes(); k.addElement(pin); t = t.child; // commonObjectAttributes pin.label = t.child.getUTF8().trim();
968969970971972973974975976977978
if (type >= keyType) { continue; } // if PIN doesn't exist or blocked, find another key PINAttributes pin = getPIN(PrKeys[i].authId); if (pin == null || getPINStatus(pin) == PIN_BLOCKED) { continue; } // if the public key can't be retrieved, find another key
21882189219021912192219321942195219621972198
return null; } Certificate cert = (Certificate) chain.elementAt(0); PrivateKey key = getPrivateKey(cert.id); PINAttributes pin = getPIN(key.authId); int pinStatus = checkPIN(pin); if (pinStatus == PIN_BLOCKED) { throw new SecurityException();