This commit is contained in:
Looly
2025-11-19 23:08:35 +08:00
parent 12c86e5bab
commit fceeafebce
135 changed files with 592 additions and 958 deletions

View File

@@ -211,7 +211,7 @@ public class Sign extends BaseAsymmetric<Sign> {
// If the certificate is of type X509Certificate,
// we should check whether it has a Key Usage
// extension marked as critical.
if (certificate instanceof X509Certificate cert) {
if (certificate instanceof final X509Certificate cert) {
// Check whether the cert has a key usage extension
// marked as a critical extension.
// The OID for KeyUsage extension is 2.5.29.15.