public void removeServiceAttributes(String serviceName,Set attrNames) throws IdRepoException, SSOException {
  Map attrMap=new HashMap(attrNames.size() * 2);
  Iterator it=attrNames.iterator();
  while (it.hasNext()) {
    String attrName=(String)it.next();
    attrMap.put(attrName,Collections.EMPTY_SET);
  }
  modifyService(serviceName,attrMap);
}

public void removeServiceAttributes ( String serviceName , Set attrNames ) throws IdRepoException , SSOException { Map attrMap = new HashMap ( attrNames . size ( ) * 2 ) ; Iterator it = attrNames . iterator ( ) ; while ( it . hasNext ( ) ) { String attrName = ( String ) it . next ( ) ; attrMap . put ( attrName , Collections . EMPTY_SET ) ; } modifyService ( serviceName , attrMap ) ; }
removes attributes value related to a specific service by setting it to empty . the assumption is that the service is already assigned to the identity . the attributes for the service are validated against the service schema . this method is only valid for < amidentity > object of type user .
