Addition of an Active Audit Provider

Adds an active audit provider.

Syntax

public void addActiveAuditProvider(SecurityProviderVO securityProvider) throws SUPAdminException;

Returns

If successful, returns silently. If unsuccessful, returns SUPAdminException.

Examples

  • Add active audit provider
    supSecConf.refresh();
    
    SecurityProviderVO spvo = new SecurityProviderVO("auditor");
    
    SecurityProviderVO spvo_dest = new SecurityProviderVO(
    		"auditDestination");
    SecurityProviderVO spvo_filter = new SecurityProviderVO("auditFilter");
    SecurityProviderVO spvo_formatter = new SecurityProviderVO(
    		"auditFormatter");
    
    Map<String, String> properties_dest = new HashMap<String, String>();
    Map<String, String> properties_filter = new HashMap<String, String>();
    Map<String, String> properties_formatter = new HashMap<String, String>();
    
    properties_dest.put("controlFlag", "optional");
    properties_dest.put("implementationClass", "");
    properties_dest.put("providerType", "AuditDestination");
    
    properties_filter.put("implementationClass", "");
    properties_filter.put("providerType", "AuditFilter");
    
    properties_formatter.put("implementationClass", "");
    properties_formatter.put("providerType", "AuditFormatter");
    
    spvo_dest.setProperties(properties_dest);
    spvo_filter.setProperties(properties_filter);
    spvo_formatter.setProperties(properties_formatter);
    
    spvo.setChildren(Arrays.asList(new SecurityProviderVO[] { spvo_dest, spvo_filter, spvo_formatter }));
    		
    supSecConf.addActiveAuditProvider(spvo);
    supSecConf.commit();