mirror of
https://gitee.com/dromara/hutool.git
synced 2026-02-09 09:16:26 +08:00
fix code
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user