Skip to content

Commit

Permalink
Add null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Binara-Sachin committed Nov 5, 2024
1 parent 32f5992 commit 3efd7ba
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ private static Properties getEncryptionProperties() throws IdentityKeyStoreResol

String tenantKeyStoreName = IdentityKeyStoreResolverUtil.buildTenantKeyStoreName(tenantDomain);

if (StringUtils.isEmpty(keyStoreFileLocation) || StringUtils.isEmpty(keyStorePassword)) {
throw new STSException("Error occoured when building encryption properties." +
" One or more keystore properties are null or empty.");
}

Properties properties = new Properties();

properties.put("org.apache.wss4j.crypto.provider",
Expand Down

0 comments on commit 3efd7ba

Please sign in to comment.