This component is based on JavaBeans components architecture.
It is packaged by the J2SDK ActiveX bridge as an ActiveX control,
thereby allowing it to be used as a functional component in an ActiveX container.
To use this ActiveX control, you have to follow this steps :
1. Instantiate the control.
2. Configure control properties using setProperty method. The default implementation uses SOAP,
so you must configure the SOAP end point i.e. setProperty("endpoint", "myhost.com:8080");
3. Initialize the control : invoke the init() method befor using the control.
4. Invoke operations, i.e. accessSession("2F122BEE8684C0BEE186C0BE91083171");
You could specify a differente GatewayServiceLocator class and configure specific properties for it.
If no GatewayServiceLocator FQCN is specified, the WebserviceGatewayServiceLocator is used as default.
The control configuration can be specified through the "setProperty" method, all properties starting with
the "gwy." prefix will be used to configure the GatewayServiceLocator this control uses.
If you use the WebserviceGatweayServiceLocator, you can use the following properties :
gwy.endpoint : the SOAP endpoint
gwy.transportSecurity : "none" or "confidential", default to "none"./li>
gwy.username : the username credential used for the "confidential" transport security.
gwy.password : the passwrord credential used for "confidential" transport security.
accessSession(String sessionId) This method accesss the session associated to the received id.
This resets the session last access time and updates the access count.
Parameters: sessionId - the session id previously returned by initiateSession.
public boolean accessSession(String sessionId)(Code)
This method accesss the session associated to the received id.
This resets the session last access time and updates the access count.
Parameters: sessionId - the session id previously returned by initiateSession. true if the session is valid, flase otherwise.
This method creates a new GatewayServiceLocatorInstance using the
configured GatewayServiceLocator class.
It also sets all configured properties with the prefix "gwy." to the new service locator instance.
For example : the "gwy.endpoint" property will be used to set the endpoint property (setEndpoint(""))
in the new gateway service locator instance.
Obtains the SSO Session token associated to the authentication assertion token.
Parameters: assertionId -
setGwyServiceLocatorClass
public void setGwyServiceLocatorClass(String gwyServiceLocatorClass)(Code)
Configuration property to define the concrete GatewayServiceLocator class.
Parameters: gwyServiceLocatorClass - the FQCN used to create the GatewayServiceLocatorInstance
setLog4jProperties
public void setLog4jProperties(String log4jProperties)(Code)