name.neuhalfen.projects.crypto.bouncycastle.openpgp.validation.IgnoreSignaturesValidationStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bouncy-gpg Show documentation
Show all versions of bouncy-gpg Show documentation
Make using Bouncy Castle with OpenPGP fun again!
The newest version!
package name.neuhalfen.projects.crypto.bouncycastle.openpgp.validation;
import java.security.SignatureException;
import java.util.Map;
import org.bouncycastle.openpgp.PGPException;
import org.bouncycastle.openpgp.PGPObjectFactory;
import org.bouncycastle.openpgp.PGPOnePassSignature;
final class IgnoreSignaturesValidationStrategy implements SignatureValidationStrategy {
@Override
public void validateSignatures(PGPObjectFactory factory,
Map onePassSignatures) throws SignatureException, PGPException {
// Ignore
}
@Override
public boolean isRequireSignatureCheck() {
return false;
}
}