@Override public void handleRequest(RequestContext rc) throws CLIException {
  super.handleRequest(rc);
  ldapLogin();
  extendedOnly=isOptionSet(FedCLIConstants.ARGUMENT_EXTENDED_ONLY);
  realm=getStringOptionValue(FedCLIConstants.ARGUMENT_REALM);
  entityID=getStringOptionValue(FedCLIConstants.ARGUMENT_ENTITY_ID);
  String spec=FederationManager.getIDFFSubCommandSpecification(rc);
  String[] params={realm,entityID,spec};
  writeLog(LogWriter.LOG_ACCESS,Level.INFO,"ATTEMPT_DELETE_ENTITY",params);
  try {
    if (spec.equals(FederationManager.DEFAULT_SPECIFICATION)) {
      handleSAML2Request(rc);
      writeLog(LogWriter.LOG_ACCESS,Level.INFO,"SUCCEEDED_DELETE_ENTITY",params);
    }
 else     if (spec.equals(FedCLIConstants.IDFF_SPECIFICATION)) {
      handleIDFFRequest(rc);
      writeLog(LogWriter.LOG_ACCESS,Level.INFO,"SUCCEEDED_DELETE_ENTITY",params);
    }
 else     if (spec.equals(FedCLIConstants.WSFED_SPECIFICATION)) {
      handleWSFedRequest(rc);
      writeLog(LogWriter.LOG_ACCESS,Level.INFO,"SUCCEEDED_DELETE_ENTITY",params);
    }
 else {
      throw new CLIException(getResourceString("unsupported-specification"),ExitCodes.REQUEST_CANNOT_BE_PROCESSED);
    }
  }
 catch (  CLIException e) {
    String[] args={realm,entityID,spec,e.getMessage()};
    writeLog(LogWriter.LOG_ERROR,Level.INFO,"FAILED_DELETE_ENTITY",args);
    throw e;
  }
}

@ Override public void handleRequest ( RequestContext rc ) throws CLIException { super . handleRequest ( rc ) ; ldapLogin ( ) ; extendedOnly = isOptionSet ( FedCLIConstants . ARGUMENT_EXTENDED_ONLY ) ; realm = getStringOptionValue ( FedCLIConstants . ARGUMENT_REALM ) ; entityID = getStringOptionValue ( FedCLIConstants . ARGUMENT_ENTITY_ID ) ; String spec = FederationManager . getIDFFSubCommandSpecification ( rc ) ; String [ ] params = { realm , entityID , spec } ; writeLog ( LogWriter . LOG_ACCESS , Level . INFO , "ATTEMPT_DELETE_ENTITY" , params ) ; try { if ( spec . equals ( FederationManager . DEFAULT_SPECIFICATION ) ) { handleSAML2Request ( rc ) ; writeLog ( LogWriter . LOG_ACCESS , Level . INFO , "SUCCEEDED_DELETE_ENTITY" , params ) ; } else if ( spec . equals ( FedCLIConstants . IDFF_SPECIFICATION ) ) { handleIDFFRequest ( rc ) ; writeLog ( LogWriter . LOG_ACCESS , Level . INFO , "SUCCEEDED_DELETE_ENTITY" , params ) ; } else if ( spec . equals ( FedCLIConstants . WSFED_SPECIFICATION ) ) { handleWSFedRequest ( rc ) ; writeLog ( LogWriter . LOG_ACCESS , Level . INFO , "SUCCEEDED_DELETE_ENTITY" , params ) ; } else { throw new CLIException ( getResourceString ( "unsupported-specification" ) , ExitCodes . REQUEST_CANNOT_BE_PROCESSED ) ; } } catch ( CLIException e ) { String [ ] args = { realm , entityID , spec , e . getMessage ( ) } ; writeLog ( LogWriter . LOG_ERROR , Level . INFO , "FAILED_DELETE_ENTITY" , args ) ; throw e ; } }
deletes a configuration and / or descriptor .
