mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-19 13:08:05 +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";
|
final String intCAError = "Intermediate signing cert found, check for CA cert";
|
||||||
String foundRootOfCertChain = "";
|
String foundRootOfCertChain = "";
|
||||||
X509AttributeCertificateHolder startOfChain = cert;
|
|
||||||
X509Certificate nextInChain = null;
|
X509Certificate nextInChain = null;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
@ -1358,9 +1357,8 @@ public final class SupplyChainCredentialValidator implements CredentialValidator
|
|||||||
signatureMatchesPublicKey = signatureMatchesPublicKey(nextInChain,
|
signatureMatchesPublicKey = signatureMatchesPublicKey(nextInChain,
|
||||||
trustedCert);
|
trustedCert);
|
||||||
} else {
|
} else {
|
||||||
issuerMatchesSubject = issuerMatchesSubjectDN(startOfChain, trustedCert);
|
issuerMatchesSubject = issuerMatchesSubjectDN(cert, trustedCert);
|
||||||
signatureMatchesPublicKey = signatureMatchesPublicKey(startOfChain,
|
signatureMatchesPublicKey = signatureMatchesPublicKey(cert, trustedCert);
|
||||||
trustedCert);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (issuerMatchesSubject && signatureMatchesPublicKey) {
|
if (issuerMatchesSubject && signatureMatchesPublicKey) {
|
||||||
|
Loading…
Reference in New Issue
Block a user