public static boolean checkForUserAttributes(String userDN,Set set) throws IDPPException {
  try {
    Map map=userProvider.getAttributes(userDN,set);
    if ((map == null) || map.isEmpty()) {
      return false;
    }
    return true;
  }
 catch (  DataStoreProviderException dspe) {
    debug.error("IDPPUtils:checkForUserAttributes:Error while " + "checking for user attributes.",dspe);
    throw new IDPPException(dspe);
  }
}

public static boolean checkForUserAttributes ( String userDN , Set set ) throws IDPPException { try { Map map = userProvider . getAttributes ( userDN , set ) ; if ( ( map == null ) || map . isEmpty ( ) ) { return false ; } return true ; } catch ( DataStoreProviderException dspe ) { debug . error ( "IDPPUtils:checkForUserAttributes:Error while " + "checking for user attributes." , dspe ) ; throw new IDPPException ( dspe ) ; } }
checks for if the user attribute values exist for a given set .
