sigKeyUserId2Password.size());
PGPSecretKeyRingCollection pgpSec = new PGPSecretKeyRingCollection(PGPUtil.getDecoderStream(keyringInput));
for (Iterator<?> i = pgpSec.getKeyRings(); i.hasNext();) {
Object data = i.next();
if (data instanceof PGPSecretKeyRing) {
PGPSecretKeyRing keyring = (PGPSecretKeyRing) data;
Set<String> keyUserIds = getUserIds(keyring);
for (String userIdPart : sigKeyUserId2Password.keySet()) {
for (String keyUserId : keyUserIds) {
if (keyUserId.contains(userIdPart)) {
for (Iterator<PGPSecretKey> iterKey = keyring.getSecretKeys(); iterKey.hasNext();) {
PGPSecretKey secKey = iterKey.next();
if (isSigningKey(secKey)) {
PGPPrivateKey privateKey = secKey.extractPrivateKey(new JcePBESecretKeyDecryptorBuilder().setProvider(
provider).build(sigKeyUserId2Password.get(userIdPart).toCharArray()));
if (privateKey != null) {