Skip to content

Commit

Permalink
change method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Thumimku committed Dec 13, 2024
1 parent 3cec419 commit 12f8728
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ private Certificate getCertificate(String tenantDomain, String context) throws I
}
int tenantId = IdentityTenantUtil.getTenantId(tenantDomain);

if (publicCerts.containsKey(buildDomainWithContext(tenantId, context))) {
return publicCerts.get(buildDomainWithContext(tenantId, context));
if (publicCerts.containsKey(buildTenantIdWithContext(tenantId, context))) {
return publicCerts.get(buildTenantIdWithContext(tenantId, context));
}

KeyStoreManager keyStoreManager = KeyStoreManager.getInstance(tenantId);
Expand Down Expand Up @@ -302,7 +302,7 @@ private Certificate getCertificate(String tenantDomain, String context) throws I
tenantDomain), e);
}

publicCerts.put(buildDomainWithContext(tenantId, context), publicCert);
publicCerts.put(buildTenantIdWithContext(tenantId, context), publicCert);
return publicCert;
}

Expand All @@ -313,7 +313,7 @@ private Certificate getCertificate(String tenantDomain, String context) throws I
* @param context the context
* @return a concatenated string in the format tenantDomain:context
*/
private String buildDomainWithContext(int tenantId, String context) {
private String buildTenantIdWithContext(int tenantId, String context) {

return tenantId + IdentityKeyStoreResolverConstants.KEY_STORE_CONTEXT_SEPARATOR + context;
}
Expand Down

0 comments on commit 12f8728

Please sign in to comment.