mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-22 19:08:00 +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
|
* @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 {
|
||||||
|
|
Loading…
Reference in a new issue