mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-19 04:58:00 +00:00
Minor code clean up
This commit is contained in:
parent
f54e1a15d0
commit
c76a8a074e
@ -1346,7 +1346,6 @@ public final class SupplyChainCredentialValidator implements CredentialValidator
|
||||
}
|
||||
final String intCAError = "Intermediate signing cert found, check for CA cert";
|
||||
String foundRootOfCertChain = "";
|
||||
X509AttributeCertificateHolder startOfChain = cert;
|
||||
X509Certificate nextInChain = null;
|
||||
|
||||
do {
|
||||
@ -1358,9 +1357,8 @@ public final class SupplyChainCredentialValidator implements CredentialValidator
|
||||
signatureMatchesPublicKey = signatureMatchesPublicKey(nextInChain,
|
||||
trustedCert);
|
||||
} else {
|
||||
issuerMatchesSubject = issuerMatchesSubjectDN(startOfChain, trustedCert);
|
||||
signatureMatchesPublicKey = signatureMatchesPublicKey(startOfChain,
|
||||
trustedCert);
|
||||
issuerMatchesSubject = issuerMatchesSubjectDN(cert, trustedCert);
|
||||
signatureMatchesPublicKey = signatureMatchesPublicKey(cert, trustedCert);
|
||||
}
|
||||
|
||||
if (issuerMatchesSubject && signatureMatchesPublicKey) {
|
||||
|
Loading…
Reference in New Issue
Block a user