private boolean checkAttribute(String servAlg,String attribute,String val){
  String attributeValue=getPropertyIgnoreCase(servAlg + ' ' + attribute);
  if (attributeValue != null) {
    if (attribute.equalsIgnoreCase("KeySize")) {
      if (Integer.parseInt(attributeValue) >= Integer.parseInt(val)) {
        return true;
      }
    }
 else {
      if (attributeValue.equalsIgnoreCase(val)) {
        return true;
      }
    }
  }
  return false;
}

private boolean checkAttribute ( String servAlg , String attribute , String val ) { String attributeValue = getPropertyIgnoreCase ( servAlg + ' ' + attribute ) ; if ( attributeValue != null ) { if ( attribute . equalsIgnoreCase ( "KeySize" ) ) { if ( Integer . parseInt ( attributeValue ) >= Integer . parseInt ( val ) ) { return true ; } } else { if ( attributeValue . equalsIgnoreCase ( val ) ) { return true ; } } } return false ; }
returns true if this provider has the same value as is given for the given attribute
