Skip to content

Commit

Permalink
Remove empty lines and fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakshan-Banneheke committed Oct 13, 2023
1 parent 6c11fc5 commit f32a04f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1675,14 +1675,12 @@ public IdentityProvider getEnabledIdPByRealmId(String realmId, String tenantDoma

int tenantId = IdentityTenantUtil.getTenantId(tenantDomain);
if (StringUtils.isEmpty(realmId)) {
throw new IdentityProviderManagementException("Invalid argument: Identity Provider Home Realm Identifier value is empty");
throw new IdentityProviderManagementException("Invalid argument: Identity Provider Home Realm Identifier value is empty.");
}
IdentityProvider identityProvider = dao.getEnabledIdPByRealmId(realmId, tenantId, tenantDomain);

if (identityProvider == null) {
identityProvider = new FileBasedIdPMgtDAO().getIdPByRealmId(realmId, tenantDomain);
}

return identityProvider;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ public IdentityProvider getEnabledIdPByRealmId(String realmId, int tenantId,
if (log.isDebugEnabled()) {
log.debug("Cache entry found for Identity Provider with Home Realm ID " + realmId);
}
//Check whether the idp in the cache is enabled.
// Check whether the idp in the cache is enabled.
if (entry.getIdentityProvider().isEnable()) {
return entry.getIdentityProvider();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2804,6 +2804,8 @@ public IdentityProvider getIdPByRealmId(String realmId, int tenantId, String ten
}

/**
* Get the enabled IDP of the given realm id.
*
* @param realmId Realm ID of the required identity provider.
* @param tenantId Tenant ID of the required identity provider.
* @param tenantDomain Tenant domain of the required identity provider.
Expand Down

0 comments on commit f32a04f

Please sign in to comment.