org.ow2.jonas.antmodular.jonasbase.security
Class Jaas

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask
              extended by org.ow2.jonas.antmodular.jonasbase.security.Jaas
All Implemented Interfaces:
Cloneable

public class Jaas
extends AbstractJOnASBaseAntTask

Allow to configure JAAS

Author:
Julien Legrand, Jeremy Cazaux (support to and element

Field Summary
static String DEFAULT_LOGIN_MODULE_NAME
          Class name of the JResourceLoginModule
static String EOL
          EOL
static String JAAS_CONF_FILE
          Name of JAAS configuration file.
static String JMX_AUTHENTIFICATION_METHOD_TOKEN
          Token for the JMX authentification method
static String JMX_AUTHENTIFICATION_METHOD_VALUE
          Value for the JMX authentification method
static String JMX_AUTHENTIFICATION_PARAMETER_TOKEN
          Token for the JMX authentification parameter
static String JMX_AUTHENTIFICATION_PARAMETER_VALUE
          Value for the JMX authentification parameter
static String JMX_IS_SECURED_TOKEN
          Token for the JMX security activation
static String JMX_IS_SECURED_VALUE
          Value for the JMX security activation
static String JONAS_ADMIN_PASSWORD_TOKEN
          JOnAS Admin password token
static String JONAS_ADMIN_USERNAME_TOKEN
          JOnAS Admin username token
static String JONAS_REALM_CONF_FILE
          Name of the realm conf file
static String REALME_SEPARATOR
          Separator use in the realme file
static String ROLES_TOKEN
          Realm's role token
static String USERS_TOKEN
          Realm's Users token
 
Fields inherited from class org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask
CONF_DIR, destDir, jonasRoot, skipOptionalDeployablesCopy, tasks
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
Jaas()
          Constructor
 
Method Summary
 void addConfiguredAdmin(User admin)
           
 void addConfiguredJaasEntry(JaasEntry entry)
          Configure a JAAS entry
 void addConfiguredUser(User user)
           
 void execute()
          Execute this task.
 void setSecureJmx(boolean enabled)
          Enable or disable JMX security.
 
Methods inherited from class org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask
addTask, addTasks, copyTemplateDeployables, createServiceNameReplace, executeAllTask, getJOnASBase, getJOnASRoot, getTasks, setDestDir, setSkipOptionalDeployablesCopy
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAAS_CONF_FILE

public static final String JAAS_CONF_FILE
Name of JAAS configuration file.

See Also:
Constant Field Values

DEFAULT_LOGIN_MODULE_NAME

public static final String DEFAULT_LOGIN_MODULE_NAME
Class name of the JResourceLoginModule

See Also:
Constant Field Values

JMX_AUTHENTIFICATION_METHOD_TOKEN

public static final String JMX_AUTHENTIFICATION_METHOD_TOKEN
Token for the JMX authentification method

See Also:
Constant Field Values

JMX_AUTHENTIFICATION_METHOD_VALUE

public static final String JMX_AUTHENTIFICATION_METHOD_VALUE
Value for the JMX authentification method

See Also:
Constant Field Values

JMX_AUTHENTIFICATION_PARAMETER_TOKEN

public static final String JMX_AUTHENTIFICATION_PARAMETER_TOKEN
Token for the JMX authentification parameter

See Also:
Constant Field Values

JMX_AUTHENTIFICATION_PARAMETER_VALUE

public static final String JMX_AUTHENTIFICATION_PARAMETER_VALUE
Value for the JMX authentification parameter

See Also:
Constant Field Values

JMX_IS_SECURED_TOKEN

public static final String JMX_IS_SECURED_TOKEN
Token for the JMX security activation

See Also:
Constant Field Values

JMX_IS_SECURED_VALUE

public static final String JMX_IS_SECURED_VALUE
Value for the JMX security activation

See Also:
Constant Field Values

JONAS_ADMIN_USERNAME_TOKEN

public static final String JONAS_ADMIN_USERNAME_TOKEN
JOnAS Admin username token

See Also:
Constant Field Values

JONAS_ADMIN_PASSWORD_TOKEN

public static final String JONAS_ADMIN_PASSWORD_TOKEN
JOnAS Admin password token

See Also:
Constant Field Values

JONAS_REALM_CONF_FILE

public static final String JONAS_REALM_CONF_FILE
Name of the realm conf file

See Also:
Constant Field Values

EOL

public static String EOL
EOL


REALME_SEPARATOR

public static String REALME_SEPARATOR
Separator use in the realme file


USERS_TOKEN

public static String USERS_TOKEN
Realm's Users token


ROLES_TOKEN

public static String ROLES_TOKEN
Realm's role token

Constructor Detail

Jaas

public Jaas()
Constructor

Method Detail

addConfiguredJaasEntry

public void addConfiguredJaasEntry(JaasEntry entry)
Configure a JAAS entry

Parameters:
entry - the entry to configure.

addConfiguredAdmin

public void addConfiguredAdmin(User admin)
Parameters:
admin - The admin to configure

addConfiguredUser

public void addConfiguredUser(User user)
Parameters:
user - The user to configure

setSecureJmx

public void setSecureJmx(boolean enabled)
Enable or disable JMX security.

Parameters:
enabled - (true or false) the default value is currently false in jonas.properties

execute

public void execute()
Execute this task.

Overrides:
execute in class AbstractJOnASBaseAntTask


Copyright © 2012 OW2 Consortium. All Rights Reserved.