mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-15 21:05:11 +00:00
8029745: Enhance algorithm checking
Intialize SIGNATURE_PRIMITIVE_SET with Collections.unmodifiableSet() Reviewed-by: mullan
This commit is contained in:
parent
3a0b9b5056
commit
f87f771956
@ -75,7 +75,7 @@ final public class AlgorithmChecker extends PKIXCertPathChecker {
|
||||
private PublicKey prevPubKey;
|
||||
|
||||
private final static Set<CryptoPrimitive> SIGNATURE_PRIMITIVE_SET =
|
||||
EnumSet.of(CryptoPrimitive.SIGNATURE);
|
||||
Collections.unmodifiableSet(EnumSet.of(CryptoPrimitive.SIGNATURE));
|
||||
|
||||
private final static DisabledAlgorithmConstraints
|
||||
certPathDefaultConstraints = new DisabledAlgorithmConstraints(
|
||||
|
||||
@ -68,7 +68,7 @@ final class SignatureAndHashAlgorithm {
|
||||
|
||||
// performance optimization
|
||||
private final static Set<CryptoPrimitive> SIGNATURE_PRIMITIVE_SET =
|
||||
EnumSet.of(CryptoPrimitive.SIGNATURE);
|
||||
Collections.unmodifiableSet(EnumSet.of(CryptoPrimitive.SIGNATURE));
|
||||
|
||||
// supported pairs of signature and hash algorithm
|
||||
private final static Map<Integer, SignatureAndHashAlgorithm> supportedMap;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user