Skip to content

Commit

Permalink
Modified isAccessUrlAvailable() method
Browse files Browse the repository at this point in the history
  • Loading branch information
ashanthamara committed Dec 5, 2023
1 parent 47e973b commit 3199891
Showing 1 changed file with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -719,18 +719,22 @@ public static String getCallbackURL(org.wso2.carbon.identity.recovery.model.Prop
return callbackURL;
}

public static boolean isAccessUrlAvailable(org.wso2.carbon.identity.recovery.model.Property[] properties) {
if (properties == null) {
return false;
}
boolean accessURL = false;
for (org.wso2.carbon.identity.recovery.model.Property property : properties) {
if (IdentityRecoveryConstants.IS_ACCESS_URL_AVAILABLE.equals(property.getKey())) {
accessURL = Boolean.parseBoolean(property.getValue()) ;
break;
/**
* Get isAccessUrlAvailable property value.
*
* @param properties Properties array.
* @return Boolean value of the isAccessUrlAvailable property.
*/
public static Boolean isAccessUrlAvailable(org.wso2.carbon.identity.recovery.model.Property[] properties) {

if (properties != null) {
for (org.wso2.carbon.identity.recovery.model.Property property : properties) {
if (IdentityRecoveryConstants.IS_ACCESS_URL_AVAILABLE.equals(property.getKey())) {
return Boolean.parseBoolean(property.getValue());
}
}
}
return accessURL;
return false;
}

/**
Expand Down

0 comments on commit 3199891

Please sign in to comment.