|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MBean interface for Security Service Management MBean type: Standard MBean model: Inheritance (JonasSecurityServiceImpl)
Method Summary | |
void |
addJResourceDS(java.lang.String name,
java.lang.String dsName,
java.lang.String userTable,
java.lang.String userTableUsernameCol,
java.lang.String userTablePasswordCol,
java.lang.String roleTable,
java.lang.String roleTableUsernameCol,
java.lang.String roleTableRolenameCol,
java.lang.String algorithm)
Add a DS resource |
void |
addJResourceLDAP(java.lang.String name,
java.lang.String initialContextFactory,
java.lang.String providerUrl,
java.lang.String securityAuthentication,
java.lang.String securityPrincipal,
java.lang.String securityCredentials,
java.lang.String securityProtocol,
java.lang.String language,
java.lang.String referral,
java.lang.String stateFactories,
java.lang.String authenticationMode,
java.lang.String userPasswordAttribute,
java.lang.String userRolesAttribute,
java.lang.String roleNameAttribute,
java.lang.String baseDN,
java.lang.String userDN,
java.lang.String userSearchFilter,
java.lang.String roleDN,
java.lang.String roleSearchFilter,
java.lang.String algorithm)
Add a LDAP resource |
void |
addJResourceMemory(java.lang.String name)
Add a Memory resource |
void |
addResources(java.lang.String xml)
Add JResources with a given xml configuration |
java.lang.String |
encryptPassword(java.lang.String string,
java.lang.String algo)
Encrypt a string with an algorithm |
boolean |
isValidAlgorithm(java.lang.String algo)
Check if the given algorithm is a valid algorithm |
void |
removeJResource(java.lang.String resourceName)
Remove the Resource (memory, ldap, datasource,...) |
Method Detail |
public java.lang.String encryptPassword(java.lang.String string, java.lang.String algo) throws java.security.NoSuchAlgorithmException
string
- the string to encodealgo
- algorithm to apply on the given string
java.security.NoSuchAlgorithmException
- One reason could be a bad algorithmpublic void addResources(java.lang.String xml) throws java.lang.Exception
xml
- xml representation of the resources to add
java.lang.Exception
- if the resources can't be addedpublic void removeJResource(java.lang.String resourceName) throws java.lang.Exception
resourceName
- name of the resource
java.lang.Exception
- if the resource name does not existpublic boolean isValidAlgorithm(java.lang.String algo)
algo
- algorithm to apply on the given string
public void addJResourceMemory(java.lang.String name) throws java.lang.Exception
name
- the name of the JResourceMemory to create
java.lang.Exception
- if the resource can't be addedpublic void addJResourceDS(java.lang.String name, java.lang.String dsName, java.lang.String userTable, java.lang.String userTableUsernameCol, java.lang.String userTablePasswordCol, java.lang.String roleTable, java.lang.String roleTableUsernameCol, java.lang.String roleTableRolenameCol, java.lang.String algorithm) throws java.lang.Exception
name
- the name of the JResourceDS to createdsName
- Name of the datasource resource to use.userTable
- Name of table which have the username/passworduserTableUsernameCol
- Column of the username of the user tableuserTablePasswordCol
- Column of the password of the user tableroleTable
- Name of table which have the username/roleroleTableUsernameCol
- Column of the username of the role tableroleTableRolenameCol
- Column of the role of the role tablealgorithm
- Default algorithm. If specified, the default is not 'clear' password
java.lang.Exception
- if the resource can't be addedpublic void addJResourceLDAP(java.lang.String name, java.lang.String initialContextFactory, java.lang.String providerUrl, java.lang.String securityAuthentication, java.lang.String securityPrincipal, java.lang.String securityCredentials, java.lang.String securityProtocol, java.lang.String language, java.lang.String referral, java.lang.String stateFactories, java.lang.String authenticationMode, java.lang.String userPasswordAttribute, java.lang.String userRolesAttribute, java.lang.String roleNameAttribute, java.lang.String baseDN, java.lang.String userDN, java.lang.String userSearchFilter, java.lang.String roleDN, java.lang.String roleSearchFilter, java.lang.String algorithm) throws java.lang.Exception
name
- the name of the JResourceLDAP to createinitialContextFactory
- Initial context factory for the LDAp serverproviderUrl
- Url of the ldap serversecurityAuthentication
- Type of the authentication used during the authentication to the LDAP serversecurityPrincipal
- DN of the Principal(username). He can retrieve the information from the usersecurityCredentials
- Credential(password) of the principalsecurityProtocol
- 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 serveruserRolesAttribute
- Attribute in order to get the user role from the ldap serverroleNameAttribute
- Attribute for the role name when performing a lookup on a rolebaseDN
- DN used for the lookupuserDN
- DN used when searching the user DN. Override the baseDN if it is defineduserSearchFilter
- Filter used when searching the userroleDN
- DN used when searching the role DN. Override the baseDN if it is definedroleSearchFilter
- Filter used when searching the rolealgorithm
- Default algorithm. If specified, the default is not 'clear' password
java.lang.Exception
- if the resource can't be added
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |