1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-09 18:29:39 +02:00

Remove SignerUserIdValidation enum

This commit is contained in:
Paul Schaub 2025-05-20 15:32:34 +02:00
parent 18a49d0afd
commit 46367aff93
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -615,22 +615,6 @@ class Policy {
}
}
enum class SignerUserIdValidationLevel {
/**
* PGPainless will verify [org.bouncycastle.bcpg.sig.SignerUserID] subpackets in signatures
* strictly. This means, that signatures with Signer's User-ID subpackets containing a value
* that does not match the signer key's user-id exactly, will be rejected. E.g. Signer's
* user-id "alice@pgpainless.org", User-ID: "Alice <alice@pgpainless.org>" does not
* match exactly and is therefore rejected.
*/
STRICT,
/**
* PGPainless will ignore [org.bouncycastle.bcpg.sig.SignerUserID] subpackets on signature.
*/
DISABLED
}
class Builder(private val origin: Policy) {
private var certificationSignatureHashAlgorithmPolicy: HashAlgorithmPolicy =
origin.certificationSignatureHashAlgorithmPolicy