Class CreateAuthRealm

  • All Implemented Interfaces:
    AdminCommand, AdminCommandSecurity.Preauthorization

    @Service(name="create-auth-realm")
    @PerLookup
    @ExecuteOn({DAS,INSTANCE})
    @TargetType({DAS,STANDALONE_INSTANCE,CLUSTER,CONFIG})
    public class CreateAuthRealm
    extends Object
    implements AdminCommand, AdminCommandSecurity.Preauthorization
    CLI command to create Authentication Realm 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 <auth-realm name="file" classname="com.sun.enterprise.security.auth.realm.file.FileRealm"> <property name="file" value="${com.sun.aas.instanceRoot}/config/keyfile"/> <property name="jaas-context" value="fileRealm"/> </auth-realm> Or <auth-realm name="certificate" classname="com.sun.enterprise.security.auth.realm.certificate.CertificateRealm"> </auth-realm>
    Author:
    Nandini Ektare