HTTP Servlet
Security
181
Client programs call the secure version of the enterprise bean methods for
each service type:
T
Enterprise Service: secureProcessExtnernalDataAsync(..) ,
secureProcessExtnernalDataSync(..)
T
Object Structure Service: secureProcessMOS(..)
T
Standard Service: secureAction(..)
2
To create a secure context for invoking the enterprise bean, do either one of
the following procedures:
T
Add the following sample code to the client code:
Properties env = new Properties();
.
.
.
if(userid != null && password != null)
{
env.put(Context.SECURITY_CREDENTIALS, password);
env.put(Context.SECURITY_PRINCIPAL, userid);
}
Context ctx = new IntialContext(env);
//instead of using the default IntialContext() constructor
T
Use the default InitalContext constructor to pass the security information
through the –D parameters in the .bat/.sh script that launches the client.
–Djava.naming.security.principal=<username>
–Djava.naming.security.credentials=<password>
The SSL version of Internet Inter-ORB Protocol performs data encryption in the
provider URL, while the system communicates with the enterprise bean.
HTTP Servlet
The HTTP servlet is a J2EE component that handles inbound HTTP posts to the
system integration and follows the J2EE security principles. To secure the HTTP
servlet, you first secure the enterprise bean.
Securing the HTTP Servlet
You can use HTTP basic authentication to secure the HTTP servlet. Authorized
users, with a valid user name and password can post an XML transaction to the
system.
To enable HTTP basic authentication, modify the web.xml file of the Web
application:
1
Remove the comments from the <security-constraint> section of the
integration servlets. One per service type. There are three security-constraint
Summary of Contents for BJ0NJML - Service And Asset Management
Page 12: ...xii Integration Guide ...
Page 14: ...xiv Integration Guide ...
Page 16: ......
Page 31: ...Integration Framework for User Interface Integration Integration Framework Architecture 17 ...
Page 32: ...Integration Framework for User Interface Integration 18 Integration Guide ...
Page 60: ...Synchronous Inbound Integration Processing 46 Integration Guide ...
Page 122: ...Configuring External Systems 108 Integration Guide ...
Page 142: ...Non queue Error Management 128 Integration Guide ...
Page 154: ...Integration Components 140 Integration Guide ...
Page 156: ......
Page 172: ...Writing Custom Handlers 158 Integration Guide ...
Page 176: ...Queue Tables 162 Integration Guide ...
Page 190: ...IBM WebSphere MQ 176 Integration Guide ...
Page 212: ...Inbound Message Receipt 198 Integration Guide ...
Page 226: ...Integration Controls 212 Integration Guide ...
Page 252: ...Predefined External System Modifications 238 Integration Guide ...
Page 263: ...Web Service Queries Integration Queries 249 ...
Page 264: ...Web Service Queries 250 Integration Guide ...
Page 272: ...Integration Web Service Invocations 258 Integration Guide ...
Page 276: ...Multilanguage Attributes 262 Integration Guide ...
Page 293: ...Integration Module Invocation Integration Modules 279 ...
Page 294: ...Integration Module Invocation 280 Integration Guide ...
Page 302: ...Associating a Condition with a Signature Option 288 Integration Guide ...
Page 320: ...Work Order Collaboration Switches 306 Integration Guide ...
Page 324: ...310 Integration Guide ...