Package com.sun.enterprise.security.cli
Class CreateAuditModule
java.lang.Object
com.sun.enterprise.security.cli.CreateAuditModule
- All Implemented Interfaces:
org.glassfish.api.admin.AdminCommand
,org.glassfish.api.admin.AdminCommandSecurity.Preauthorization
@Service(name="create-audit-module")
@PerLookup
@ExecuteOn({DAS,INSTANCE})
@TargetType({DAS,STANDALONE_INSTANCE,CLUSTER,CONFIG})
public class CreateAuditModule
extends Object
implements org.glassfish.api.admin.AdminCommand, org.glassfish.api.admin.AdminCommandSecurity.Preauthorization
Create Audit Module Command
Usage: create-audit-module --classname classnme [--terse=false] [--echo=false] [--interactive=true] [--host localhost] [--port
4848|4849] [--secure | -s] [--user admin_user] [--passwordfile file_name] [--property (name=value) [:name=value]*] [--target
target(Default server)] audit_module_name
domain.xml element example <audit-module classname="com.foo.security.Audit" name="AM">
</audit-module>
- Author:
- Nandini Ektare
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.glassfish.api.admin.AdminCommandContext context) Executes the command with the command parameters passed as Properties where the keys are paramter names and the values the parameter valuesboolean
preAuthorization
(org.glassfish.api.admin.AdminCommandContext context)
-
Constructor Details
-
CreateAuditModule
public CreateAuditModule()
-
-
Method Details
-
preAuthorization
public boolean preAuthorization(org.glassfish.api.admin.AdminCommandContext context) - Specified by:
preAuthorization
in interfaceorg.glassfish.api.admin.AdminCommandSecurity.Preauthorization
-
execute
public void execute(org.glassfish.api.admin.AdminCommandContext context) Executes the command with the command parameters passed as Properties where the keys are paramter names and the values the parameter values- Specified by:
execute
in interfaceorg.glassfish.api.admin.AdminCommand
- Parameters:
context
- information
-