1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-23 03:17:58 +01:00

Expose SignatureValidator methods

This commit is contained in:
Paul Schaub 2023-07-19 11:47:53 +02:00
parent f46790be00
commit 59fa51bdf3
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -182,7 +182,7 @@ public abstract class SignatureValidator {
* @param signingKey signing key * @param signingKey signing key
* @return validator * @return validator
*/ */
private static SignatureValidator signatureUsesAcceptablePublicKeyAlgorithm(Policy policy, public static SignatureValidator signatureUsesAcceptablePublicKeyAlgorithm(Policy policy,
PGPPublicKey signingKey) { PGPPublicKey signingKey) {
return new SignatureValidator() { return new SignatureValidator() {
@Override @Override
@ -207,7 +207,7 @@ public abstract class SignatureValidator {
* @param policy policy * @param policy policy
* @return validator * @return validator
*/ */
private static SignatureValidator signatureUsesAcceptableHashAlgorithm(Policy policy) { public static SignatureValidator signatureUsesAcceptableHashAlgorithm(Policy policy) {
return new SignatureValidator() { return new SignatureValidator() {
@Override @Override
public void verify(PGPSignature signature) throws SignatureValidationException { public void verify(PGPSignature signature) throws SignatureValidationException {