org.objectweb.jonas.security.JonasSecurityServiceImplMBean Interface Reference

Inherited by org.objectweb.jonas.security.JonasSecurityServiceImpl.

Inheritance diagram for org.objectweb.jonas.security.JonasSecurityServiceImplMBean:

Inheritance graph
[legend]
List of all members.

Public Member Functions

String encryptPassword (String string, String algo) throws NoSuchAlgorithmException

Package Functions

void addResources (String xml) throws Exception
void removeJResource (String resourceName) throws Exception
boolean isValidAlgorithm (String algo)
void addJResourceMemory (String name) throws Exception
void addJResourceDS (String name, String dsName, String userTable, String userTableUsernameCol, String userTablePasswordCol, String roleTable, String roleTableUsernameCol, String roleTableRolenameCol, String algorithm) throws Exception
void addJResourceLDAP (String name, String initialContextFactory, String providerUrl, String securityAuthentication, String securityPrincipal, String securityCredentials, String securityProtocol, String language, String referral, String stateFactories, String authenticationMode, String userPasswordAttribute, String userRolesAttribute, String roleNameAttribute, String baseDN, String userDN, String userSearchFilter, String roleDN, String roleSearchFilter, String algorithm) throws Exception

Detailed Description

MBean interface for Security Service Management MBean type: Standard MBean model: Inheritance (JonasSecurityServiceImpl)
Author:
Bruno Michel, Guillaume Riviere

Florent Benoit : add MBean methods

Definition at line 38 of file JonasSecurityServiceImplMBean.java.


Member Function Documentation

void org.objectweb.jonas.security.JonasSecurityServiceImplMBean.addJResourceDS String  name,
String  dsName,
String  userTable,
String  userTableUsernameCol,
String  userTablePasswordCol,
String  roleTable,
String  roleTableUsernameCol,
String  roleTableRolenameCol,
String  algorithm
throws Exception [package]
 

Add a DS resource

Parameters:
name the name of the JResourceDS to create
dsName Name of the datasource resource to use.
userTable Name of table which have the username/password
userTableUsernameCol Column of the username of the user table
userTablePasswordCol Column of the password of the user table
roleTable Name of table which have the username/role
roleTableUsernameCol Column of the username of the role table
roleTableRolenameCol Column of the role of the role table
algorithm Default algorithm. If specified, the default is not 'clear' password
Exceptions:
Exception if the resource can't be added

Implemented in org.objectweb.jonas.security.JonasSecurityServiceImpl.

void org.objectweb.jonas.security.JonasSecurityServiceImplMBean.addJResourceLDAP String  name,
String  initialContextFactory,
String  providerUrl,
String  securityAuthentication,
String  securityPrincipal,
String  securityCredentials,
String  securityProtocol,
String  language,
String  referral,
String  stateFactories,
String  authenticationMode,
String  userPasswordAttribute,
String  userRolesAttribute,
String  roleNameAttribute,
String  baseDN,
String  userDN,
String  userSearchFilter,
String  roleDN,
String  roleSearchFilter,
String  algorithm
throws Exception [package]
 

Add a LDAP resource

Parameters:
name the name of the JResourceLDAP to create
initialContextFactory Initial context factory for the LDAp server
providerUrl Url of the ldap server
securityAuthentication Type of the authentication used during the authentication to the LDAP server
securityPrincipal DN of the Principal(username). He can retrieve the information from the user
securityCredentials Credential(password) of the principal
securityProtocol Constant that holds the name of the environment property for specifying the security protocol to use.
language Constant that holds the name of the environment property for specifying the preferred language to use with the service.
referral Constant that holds the name of the environment property for specifying how referrals encountered by the service provider are to be processed.
stateFactories Constant that holds the name of the environment property for specifying the list of state factories to use.
authenticationMode Mode for validate the authentication (BIND_AUTHENTICATION_MODE or COMPARE_AUTHENTICATION_MODE)
userPasswordAttribute Attribute in order to get the password from the ldap server
userRolesAttribute Attribute in order to get the user role from the ldap server
roleNameAttribute Attribute for the role name when performing a lookup on a role
baseDN DN used for the lookup
userDN DN used when searching the user DN. Override the baseDN if it is defined
userSearchFilter Filter used when searching the user
roleDN DN used when searching the role DN. Override the baseDN if it is defined
roleSearchFilter Filter used when searching the role
algorithm Default algorithm. If specified, the default is not 'clear' password
Exceptions:
Exception if the resource can't be added

Implemented in org.objectweb.jonas.security.JonasSecurityServiceImpl.

void org.objectweb.jonas.security.JonasSecurityServiceImplMBean.addJResourceMemory String  name  )  throws Exception [package]
 

Add a Memory resource

Parameters:
name the name of the JResourceMemory to create
Exceptions:
Exception if the resource can't be added

Implemented in org.objectweb.jonas.security.JonasSecurityServiceImpl.

void org.objectweb.jonas.security.JonasSecurityServiceImplMBean.addResources String  xml  )  throws Exception [package]
 

Add JResources with a given xml configuration

Parameters:
xml xml representation of the resources to add
Exceptions:
Exception if the resources can't be added

Implemented in org.objectweb.jonas.security.JonasSecurityServiceImpl.

String org.objectweb.jonas.security.JonasSecurityServiceImplMBean.encryptPassword String  string,
String  algo
throws NoSuchAlgorithmException
 

Encrypt a string with an algorithm

Parameters:
string the string to encode
algo algorithm to apply on the given string
Returns:
the encoded string
Exceptions:
NoSuchAlgorithmException One reason could be a bad algorithm

Implemented in org.objectweb.jonas.security.JonasSecurityServiceImpl.

boolean org.objectweb.jonas.security.JonasSecurityServiceImplMBean.isValidAlgorithm String  algo  )  [package]
 

Check if the given algorithm is a valid algorithm

Parameters:
algo algorithm to apply on the given string
Returns:
true if it is a valid algorithm

Implemented in org.objectweb.jonas.security.JonasSecurityServiceImpl.

void org.objectweb.jonas.security.JonasSecurityServiceImplMBean.removeJResource String  resourceName  )  throws Exception [package]
 

Remove the Resource (memory, ldap, datasource,...)

Parameters:
resourceName name of the resource
Exceptions:
Exception if the resource name does not exist

Implemented in org.objectweb.jonas.security.JonasSecurityServiceImpl.


The documentation for this interface was generated from the following file:
Generated on Tue Feb 15 15:07:38 2005 for JOnAS by  doxygen 1.3.9.1