mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-17 18:02:05 +01:00
Expose SignatureValidator methods
This commit is contained in:
parent
f46790be00
commit
59fa51bdf3
1 changed files with 2 additions and 2 deletions
|
@ -182,7 +182,7 @@ public abstract class SignatureValidator {
|
|||
* @param signingKey signing key
|
||||
* @return validator
|
||||
*/
|
||||
private static SignatureValidator signatureUsesAcceptablePublicKeyAlgorithm(Policy policy,
|
||||
public static SignatureValidator signatureUsesAcceptablePublicKeyAlgorithm(Policy policy,
|
||||
PGPPublicKey signingKey) {
|
||||
return new SignatureValidator() {
|
||||
@Override
|
||||
|
@ -207,7 +207,7 @@ public abstract class SignatureValidator {
|
|||
* @param policy policy
|
||||
* @return validator
|
||||
*/
|
||||
private static SignatureValidator signatureUsesAcceptableHashAlgorithm(Policy policy) {
|
||||
public static SignatureValidator signatureUsesAcceptableHashAlgorithm(Policy policy) {
|
||||
return new SignatureValidator() {
|
||||
@Override
|
||||
public void verify(PGPSignature signature) throws SignatureValidationException {
|
||||
|
|
Loading…
Reference in a new issue