com.rsa.swsj.profiles.wss
Class WSSParameters

java.lang.Object
  extended bycom.rsa.swsj.SecurityParameters
      extended bycom.rsa.swsj.profiles.wss.WSSParameters

public final class WSSParameters
extends SecurityParameters

This class holds all the parameters required by a Security operation defined in WSS specification; for example, KeyInfo or Token.


Constructor Summary
WSSParameters(SWSJContext context)

Instantiates a particular WSSParameters object.

 
Method Summary

 Token

getToken()

Returns the Token object.

 void

setToken(Token token)

Sets the Token object that can carry Key information, such as user id or X509Certificate.

 
Methods inherited from class com.rsa.swsj.SecurityParameters
getContext, getKeyInfos, setKeyInfos
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSSParameters

public WSSParameters(SWSJContext context)
              throws InvalidParameterException
Instantiates a particular WSSParameters object.

Parameters:
context - An object that collects a number of common parameters and state variables; for example, JCE provider.
Throws:
InvalidParameterException - If context is invalid.
Method Detail

setToken

public void setToken(Token token)
Sets the Token object that can carry Key information, such as user id or X509Certificate. When invoked during signature creation, this function creates a security token reference type of key information, to reference this token from the XMLSecurityOperation. Note: The Token class contains two subclasses, UsernameToken and X509Token.

Parameters:
token - The Token object.

getToken

public Token getToken()
Returns the Token object.

Returns:
The Token object that can carry Key information, such as user id or X509Certificate.