protected int checkRiskAttribute(){
  int retVal=0;
  if (debug.messageEnabled()) {
    debug.message("{}.checkRiskAttribute",ADAPTIVE);
  }
  if (riskAttributeName != null && riskAttributeValue != null) {
    Set<String> riskAttributeValues=null;
    riskAttributeValues=getIdentityAttributeSet(riskAttributeName);
    if (riskAttributeValues != null) {
      for (      String riskAttr : riskAttributeValues) {
        if (riskAttributeValue.equalsIgnoreCase(riskAttr)) {
          if (debug.messageEnabled()) {
            debug.message("{}.checkRiskAttribute: Found Match",ADAPTIVE);
          }
          retVal=riskAttributeScore;
          break;
        }
      }
    }
  }
  if (!riskAttributeInvert) {
    retVal=riskAttributeScore - retVal;
  }
  return retVal;
}

protected int checkRiskAttribute ( ) { int retVal = 0 ; if ( debug . messageEnabled ( ) ) { debug . message ( "{}.checkRiskAttribute" , ADAPTIVE ) ; } if ( riskAttributeName != null && riskAttributeValue != null ) { Set < String > riskAttributeValues = null ; riskAttributeValues = getIdentityAttributeSet ( riskAttributeName ) ; if ( riskAttributeValues != null ) { for ( String riskAttr : riskAttributeValues ) { if ( riskAttributeValue . equalsIgnoreCase ( riskAttr ) ) { if ( debug . messageEnabled ( ) ) { debug . message ( "{}.checkRiskAttribute: Found Match" , ADAPTIVE ) ; } retVal = riskAttributeScore ; break ; } } } } if ( ! riskAttributeInvert ) { retVal = riskAttributeScore - retVal ; } return retVal ; }
check to see if the user profile has a risk attribute with value
