private boolean validateAuthSchemes(Set authSchemeSet) throws PolicyException {
  if (authSchemeSet.isEmpty()) {
    String args[]={AUTH_SCHEME};
    throw new PolicyException(ResBundleUtils.rbName,"property_does_not_allow_empty_values",args,null);
  }
  Iterator authSchemeSetIter=authSchemeSet.iterator();
  authSchemes.clear();
  while (authSchemeSetIter.hasNext()) {
    try {
      String authScheme=(String)authSchemeSetIter.next();
      authSchemes.add(authScheme);
    }
 catch (    ClassCastException e) {
      String args[]={AUTH_SCHEME};
      throw new PolicyException(ResBundleUtils.rbName,"property_is_not_a_String",args,null);
    }
  }
  return true;
}

private boolean validateAuthSchemes ( Set authSchemeSet ) throws PolicyException { if ( authSchemeSet . isEmpty ( ) ) { String args [ ] = { AUTH_SCHEME } ; throw new PolicyException ( ResBundleUtils . rbName , "property_does_not_allow_empty_values" , args , null ) ; } Iterator authSchemeSetIter = authSchemeSet . iterator ( ) ; authSchemes . clear ( ) ; while ( authSchemeSetIter . hasNext ( ) ) { try { String authScheme = ( String ) authSchemeSetIter . next ( ) ; authSchemes . add ( authScheme ) ; } catch ( ClassCastException e ) { String args [ ] = { AUTH_SCHEME } ; throw new PolicyException ( ResBundleUtils . rbName , "property_is_not_a_String" , args , null ) ; } } return true ; }
validates the module instance names provided to the setproperties ( ) call for the auth_scheme key . checks for null and throws exception if null or not a string .
