Package com.sun.enterprise.security.cli
Class CreateAuthRealm
java.lang.Object
com.sun.enterprise.security.cli.CreateAuthRealm
- All Implemented Interfaces:
org.glassfish.api.admin.AdminCommand
,org.glassfish.api.admin.AdminCommandSecurity.Preauthorization
@Service(name="create-auth-realm")
@PerLookup
@ExecuteOn({DAS,INSTANCE})
@TargetType({DAS,STANDALONE_INSTANCE,CLUSTER,CONFIG})
public class CreateAuthRealm
extends Object
implements org.glassfish.api.admin.AdminCommand, org.glassfish.api.admin.AdminCommandSecurity.Preauthorization
CLI command to create JACC Provider
Usage: create-auth-realm --classname realm_class [--terse=false] [--interactive=true] [--host localhost] [--port 4848|4849]
[--secure | -s] [--user admin_user] [--passwordfile file_name] [--property (name=value)[:name=value]*] [--echo=false]
[--target target(Default server)] auth_realm_name
domain.xml element example invalid input: '<'auth-realm name="file" classname="com.sun.enterprise.security.auth.realm.file.FileRealm">
invalid input: '<'/auth-realm> Or
invalid input: '<'auth-realm name="certificate" classname="com.sun.enterprise.security.auth.realm.certificate.CertificateRealm"> invalid input: '<'/auth-realm>
- 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 the paramter names and the values the parameter valuesboolean
preAuthorization
(org.glassfish.api.admin.AdminCommandContext context)
-
Constructor Details
-
CreateAuthRealm
public CreateAuthRealm()
-
-
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 the paramter names and the values the parameter values- Specified by:
execute
in interfaceorg.glassfish.api.admin.AdminCommand
- Parameters:
context
- information
-