Skip to content

Commit

Permalink
Add more log for KeyVaultKeyStore. (Azure#27346)
Browse files Browse the repository at this point in the history
  • Loading branch information
rujche authored Mar 1, 2022
1 parent c6a5489 commit 255e488
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public final class KeyVaultKeyStore extends KeyStoreSpi {
* </p>
*/
public KeyVaultKeyStore() {
LOGGER.log(FINE, "Constructing KeyVaultKeyStore.");
creationDate = new Date();
String keyVaultUri = System.getProperty("azure.keyvault.uri");
String tenantId = System.getProperty("azure.keyvault.tenant-id");
Expand All @@ -131,11 +132,16 @@ public KeyVaultKeyStore() {
.map(Boolean::parseBoolean)
.orElse(false);
jreCertificates = JreCertificates.getInstance();
LOGGER.log(FINE, String.format("Loaded jre certificates: %s.", jreCertificates.getAliases()));
wellKnowCertificates = SpecificPathCertificates.getSpecificPathCertificates(wellKnowPath);
LOGGER.log(FINE, String.format("Loaded well know certificates: %s.", wellKnowCertificates.getAliases()));
customCertificates = SpecificPathCertificates.getSpecificPathCertificates(customPath);
LOGGER.log(FINE, String.format("Loaded custom certificates: %s.", customCertificates.getAliases()));
keyVaultCertificates = new KeyVaultCertificates(
refreshInterval, keyVaultUri, tenantId, clientId, clientSecret, managedIdentity);
LOGGER.log(FINE, String.format("Loaded keyVault certificates: %s.", keyVaultCertificates.getAliases()));
classpathCertificates = new ClasspathCertificates();
LOGGER.log(FINE, String.format("Loaded classpath certificates: %s.", classpathCertificates.getAliases()));
allCertificates = Arrays.asList(
jreCertificates, wellKnowCertificates, customCertificates, keyVaultCertificates, classpathCertificates);
}
Expand Down

0 comments on commit 255e488

Please sign in to comment.