Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TKSS-629: PKCS12KeyStore should clear storeEntryCache #630

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public final class Constants {
"java.specification.vendor");

// The length of uncompressed SM2 public key,
// exactly a EC point's coordinates (x, y).
// exactly an EC point's coordinates (x, y).
// The hex format is 04||x||y
public static final int SM2_PUBKEY_LEN = 65;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ private static ObjectIdentifier mapPBEAlgorithmToOID(String algorithm)
* for some other reason.
*/
public synchronized void engineSetCertificateEntry(String alias,
Certificate cert) throws KeyStoreException
Certificate cert) throws KeyStoreException
{
setCertEntry(alias, cert, null);
}
Expand All @@ -998,7 +998,7 @@ public synchronized void engineSetCertificateEntry(String alias,
* Sets a trusted cert entry (with attributes, when present)
*/
private void setCertEntry(String alias, Certificate cert,
Set<KeyStore.Entry.Attribute> attributes) throws KeyStoreException {
Set<KeyStore.Entry.Attribute> attributes) throws KeyStoreException {

// Check that the cert is an X.509 cert
if (cert != null && (!(cert instanceof X509Certificate))) {
Expand Down Expand Up @@ -2007,6 +2007,7 @@ public synchronized void engineLoad(InputStream stream, char[] password)
}

entries.clear();
storeEntryCache.clear();

/*
* Read the authSafe.
Expand Down