com.ibm.websphere.wssecurity.wssapi
Interface WSSConsumingContext
- public interface WSSConsumingContext
- Generate the wssfactory instance.
- Generate the wssConsumingContext instance.
- Create the components, such as WSSVerification, WSSDecryption object, required information to validate the securitytoken, and the keyword of the time stamp.
- Set the components into the wssConsumingContext object.
- Invoke wssConsumingContext.process() method.
Field Summary
Modifier and Type | Field and Description |
---|---|
|
TIMESTAMP
The keyword for the creation and expiration time stamp information.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
add(java.lang.Class tokenClass,javax.security.auth.callback.CallbackHandler callbackHandler)
Sets the security token information in order to validate the security token in the
receiving SOAP message.
|
|
add(java.lang.Class tokenClass,javax.security.auth.callback.CallbackHandler callbackHandler,java.lang.String loginConfigName)
Adds the security token information in order to validate the security token in the
receiving SOAP message.
|
|
add(java.util.HashMap<java.lang.Object,java.lang.Object> customProperties)
Adds the custom properties HashMap object
|
|
add(int keyword)
Sets the keyword of the TIMESTAMP in case of requiring the time stamp in the receiving SOAP message.
|
|
add(WSSDecryption decryption)
Adds the WSSDecryption object in order to decrypt the element in the
receiving SOAP message.
|
|
add(WSSVerification verification)
Adds the WSSVerification object in order to verify the element in the
receiving SOAP message.
|
|
process(java.lang.Object messageContext)
The WS-Security element is consumed after this method is called.
|
Field Detail
TIMESTAMP
- static final int TIMESTAMP
The keyword for the creation and expiration time stamp information.
See Also:
Method Detail
add
- void add(WSSVerification verification)
Adds the WSSVerification object in order to verify the element in the
receiving SOAP message.
Parameters:
verification
- verification object add
- void add(WSSDecryption decryption)
Adds the WSSDecryption object in order to decrypt the element in the
receiving SOAP message.
Parameters:
decryption
- decryption object add
- void add(java.lang.Class tokenClass,
- javax.security.auth.callback.CallbackHandler callbackHandler,
- java.lang.String loginConfigName)
- throws WSSException
Adds the security token information in order to validate the security token in the
receiving SOAP message.
Parameters:
tokenClass
- class of the security token callbackHandler
- callback handler object which the user implements
javax.security.auth.callback.CallbackHandler loginConfigName
- the name of the JAAS login configuration Throws:
WSSException
- if the arguments are not valid add
- void add(java.lang.Class tokenClass,
- javax.security.auth.callback.CallbackHandler callbackHandler)
- throws WSSException
Sets the security token information in order to validate the security token in the
receiving SOAP message.
Parameters:
tokenClass
- class of the security token callbackHandler
- callback handler object which the user implements
javax.security.auth.callback.CallbackHandler Throws:
WSSException
- if the arguments are not valid add
- void add(int keyword)
- throws WSSException
Sets the keyword of the TIMESTAMP in case of requiring the time stamp in the receiving SOAP message.
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 consumed after this method is called.
Parameters:
messageContext
- SOAP message context Throws:
WSSException
- if an unexcepted error occurs in processing