< prev index next >
src/java.base/share/classes/sun/security/provider/certpath/AlgorithmChecker.java
Print this page
*** 462,484 ****
} catch (CRLException ce) {
throw new CertPathValidatorException(ce);
}
AlgorithmId algorithmId = x509CRLImpl.getSigAlgId();
! check(key, algorithmId);
}
/**
* Check the signature algorithm with the specified public key.
*
* @param key the public key to verify the CRL signature
* @param algorithmId signature algorithm Algorithm ID
*/
! static void check(PublicKey key, AlgorithmId algorithmId)
throws CertPathValidatorException {
- String sigAlgName = algorithmId.getName();
- AlgorithmParameters sigAlgParams = algorithmId.getParameters();
if (!certPathDefaultConstraints.permits(
SIGNATURE_PRIMITIVE_SET, sigAlgName, key, sigAlgParams)) {
throw new CertPathValidatorException(
"Algorithm constraints check failed on signature algorithm: " +
--- 462,489 ----
} catch (CRLException ce) {
throw new CertPathValidatorException(ce);
}
AlgorithmId algorithmId = x509CRLImpl.getSigAlgId();
! check(algorithmId.getName(), key, algorithmId.getParameters());
}
/**
* Check the signature algorithm with the specified public key.
*
* @param key the public key to verify the CRL signature
* @param algorithmId signature algorithm Algorithm ID
*/
! void check(PublicKey key, AlgorithmId algorithmId)
! throws CertPathValidatorException {
! check(algorithmId.getName(), key, algorithmId.getParameters());
! }
!
!
! private static void check(String sigAlgName, PublicKey key,
! AlgorithmParameters sigAlgParams)
throws CertPathValidatorException {
if (!certPathDefaultConstraints.permits(
SIGNATURE_PRIMITIVE_SET, sigAlgName, key, sigAlgParams)) {
throw new CertPathValidatorException(
"Algorithm constraints check failed on signature algorithm: " +
< prev index next >