Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 8. Advanced Security Options
8.1. Security Propagation Copier lienLien copié sur presse-papiers!
8.2. SecurityContextPropagator Copier lienLien copié sur presse-papiers!
8.3. SecurityContextPropagator Implementations Copier lienLien copié sur presse-papiers!
Class | Description |
---|---|
Package: org.jboss.internal.soa.esb.services.security
Class: JBossASContextPropagator
|
This propagator will send security credentials to the ESB. If you need to write your own implementation you only have to write a class that implements
org.jboss.internal.soa.esb.services.security.SecurityContextPropagator and then either specify that implementation in jbossesb-properties.xml or jboss-esb.xml .
|
8.4. Add a Custom Log-In Module Copier lienLien copié sur presse-papiers!
Procedure 8.1. Task
- Open the log-in configuration file in a text editor:
vi SOA_ROOT/jboss-as/server/PROFILE/conf/login-config.xml
- Add the details of your custom log-in module.
- Save the file and exit.
- Since different log-in modules require different information, you must specify the CallbackHandler attribute to be used. Open the specific security configuration for that service.
- Make sure that the
CallbackHandler
specifies a fully-qualified classname for the class which implements theEsbCallbackHandler
interface. This code shows you how to do so:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Add both the "principle" and the credentials needed to authenticate a caller to the
AuthenticationRequest
class.
JaasSecurityService is replaced with your custom security implementation.
8.5. Certificate Log-In Module Copier lienLien copié sur presse-papiers!
8.6. Certificate Log-In Module Properties Copier lienLien copié sur presse-papiers!
Property | Description |
---|---|
moduleName
|
This identifies the JAAS Login module to use. This module will be specified in JBossAS login-config.xml.
|
rolesAllow
|
This is a comma-separated list of the roles that are allowed to execute this service.
|
alias
|
This is the alias which is used to look up the local key-store and which will be used to verify the caller's certificate.
|
8.7. Certificate Log-In Module Configuration File Properties Copier lienLien copié sur presse-papiers!
Property | Description |
---|---|
keyStoreURL
|
This is the path to the key-store used to verify the certificates. It can be a file on the local file system or on the class-path.
|
keyStorePassword
|
This is the password for the key-store above.
|
rolesPropertiesFile
|
This is optional. It is the path to a file containing role mappings. Refer to the “Role Mapping” section of the Getting Started Guide for more details about this.
|
8.8. Callback Handler Copier lienLien copié sur presse-papiers!
8.9. Role Mapping Copier lienLien copié sur presse-papiers!
8.10. Enable Role Mapping Copier lienLien copié sur presse-papiers!
Procedure 8.2. Task
- Open the log-in configuration file in a text editor:
vi SOA_ROOT/jboss-as/server/PROFILE/conf/login-config.xml
- Set the rolesPropertiesFile property. (This property can point to a file located on either the local file system or the class-path).
- Map users to roles. This example code shows how to do so:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Save the file and exit.
8.11. security_cert Quickstart Copier lienLien copié sur presse-papiers!
8.12. Security Service Copier lienLien copié sur presse-papiers!
SecurityService
interface is the Enterprise Service Bus' central security component.
8.13. Customize the Security Service Interface Copier lienLien copié sur presse-papiers!
Procedure 8.3. Task
- Implement the
SecurityService
interface:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Open the global configuration file in a text editor:
vi SOA_ROOT/jboss-as/server/PROFILE/deployers/esb.deployer/jbossesb-properties.xml
. - Configure the file to use the customized
SecurityService
- Save the file and exit.
8.14. Remote Invocation Class Copier lienLien copié sur presse-papiers!
8.15. Secure Non-Remote Method Invocation Classes on Port 8083 Copier lienLien copié sur presse-papiers!
port 8083
. However, you can also configure the system's Remote Method Invocation settings to allow client applications to download any deployed resources you desire.
Procedure 8.4. Task
Edit the Settings in the jboss-service.xml File
Open the file in a text editor:vi SOA_ROOT/server/PROFILE/conf/jboss-service.xml
Configure the Settings in the File
Here is an example:<attribute name="DownloadServerClasses">false</attribute>
<attribute name="DownloadServerClasses">false</attribute>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Set this value to false to ensure that client applications can only download Enterprise Java Bean classes.Important
By default, this value is set to false in the SOA Platform's 'production' profile. The value is set to true in all other cases, including the SOA Standalone version's default profile. Note that this is not a secure configuration and should only be used in development environments.