jdk/src/java.base/share/classes/sun/security/provider/certpath/AlgorithmChecker.java
equal
deleted
inserted
replaced
66 * the specified algorithm constraints. |
66 * the specified algorithm constraints. |
67 * |
67 * |
68 * @see PKIXCertPathChecker |
68 * @see PKIXCertPathChecker |
69 * @see PKIXParameters |
69 * @see PKIXParameters |
70 */ |
70 */ |
71 final public class AlgorithmChecker extends PKIXCertPathChecker { |
71 public final class AlgorithmChecker extends PKIXCertPathChecker { |
72 |
72 |
73 private final AlgorithmConstraints constraints; |
73 private final AlgorithmConstraints constraints; |
74 private final PublicKey trustedPubKey; |
74 private final PublicKey trustedPubKey; |
75 private PublicKey prevPubKey; |
75 private PublicKey prevPubKey; |
76 |
76 |
77 private final static Set<CryptoPrimitive> SIGNATURE_PRIMITIVE_SET = |
77 private static final Set<CryptoPrimitive> SIGNATURE_PRIMITIVE_SET = |
78 Collections.unmodifiableSet(EnumSet.of(CryptoPrimitive.SIGNATURE)); |
78 Collections.unmodifiableSet(EnumSet.of(CryptoPrimitive.SIGNATURE)); |
79 |
79 |
80 private final static DisabledAlgorithmConstraints |
80 private static final DisabledAlgorithmConstraints |
81 certPathDefaultConstraints = new DisabledAlgorithmConstraints( |
81 certPathDefaultConstraints = new DisabledAlgorithmConstraints( |
82 DisabledAlgorithmConstraints.PROPERTY_CERTPATH_DISABLED_ALGS); |
82 DisabledAlgorithmConstraints.PROPERTY_CERTPATH_DISABLED_ALGS); |
83 |
83 |
84 /** |
84 /** |
85 * Create a new <code>AlgorithmChecker</code> with the algorithm |
85 * Create a new <code>AlgorithmChecker</code> with the algorithm |