com.ibm.websphere.wssecurity.wssapi
Interface WSSGenerationContext
- public interface WSSGenerationContext
- Generate the wssfactory instance.
- Generate the wssGenerationContext instance.
- Create the components, such as WSSSignature, WSSEncryption, SecurityToken, WSSTimestamp object.
- Set the components into the wssGenerationContext object.
- Invoke wssGenerationContext.process() method.
Method Summary
Modifier and Type | Method and Description |
---|---|
|
add(java.util.HashMap<java.lang.Object,java.lang.Object> customProperties)
Adds the custom properties HashMap object
|
|
add(SecurityToken token)
Adds the SecurityToken object in order to attach the security token to the
SOAP message.
|
|
add(WSSEncryption enc)
Adds the WSSEncyption object in order to encrypt the element in the SOAP
message.
|
|
add(WSSSignature sig)
Adds the WSSSignature object in order to sign the element in the SOAP
message.
|
|
add(WSSTimestamp ts)
Adds the WSSTimestamp object in order to attach the time stamp to the SOAP
message.
|
|
process(java.lang.Object messageContext)
The WS-Security element is generated after this method is called.
|
Method Detail
add
- void add(WSSSignature sig)
Adds the WSSSignature object in order to sign the element in the SOAP
message.
Parameters:
sig
- signature object add
- void add(WSSEncryption enc)
Adds the WSSEncyption object in order to encrypt the element in the SOAP
message.
Parameters:
enc
- encryption object add
- void add(SecurityToken token)
Adds the SecurityToken object in order to attach the security token to the
SOAP message.
Parameters:
token
- security token object add
- void add(WSSTimestamp ts)
Adds the WSSTimestamp object in order to attach the time stamp to the SOAP
message.
Parameters:
ts
- time stamp object add
- void add(java.util.HashMap<java.lang.Object,java.lang.Object> customProperties)
Adds the custom properties HashMap object
process
- void process(java.lang.Object messageContext)
- throws WSSException
The WS-Security element is generated after this method is called.
Parameters:
messageContext
- SOAP message context Throws:
WSSException
- if an unexcepted error occurs in processing