Rule Execution Server API

ilog.rules.teamserver.auth
Class LtpaTokenAuthenticationHandler

java.lang.Object
  extended by ilog.rules.teamserver.auth.AuthenticationHandler<LtpaTokenAuthenticationCredentials>
      extended by ilog.rules.teamserver.auth.LtpaTokenAuthenticationHandler

public class LtpaTokenAuthenticationHandler
extends AuthenticationHandler<LtpaTokenAuthenticationCredentials>

Connects to Decision Center using the LTPA technology. A cookie containing the LTPA token is added to every request to Decision Center.

See Also:
LtpaTokenAuthenticationCredentials

Constructor Summary
LtpaTokenAuthenticationHandler()
           
 
Method Summary
 void closeSession()
          Closes the session.
 AuthenticationResponse connect(String url, LtpaTokenAuthenticationCredentials credentials)
          Establishes the connection to Decision Center.
protected  org.apache.commons.httpclient.methods.GetMethod createGetMethod(String url)
           
protected  org.apache.commons.httpclient.HttpClient createHttpClient(URL url)
           
 void setRequestParams(org.apache.commons.httpclient.HttpMethod method)
          To customize the request to be sent via an HTTP connection to Decision Center.
 
Methods inherited from class ilog.rules.teamserver.auth.AuthenticationHandler
acceptSelfSignedCertificate, getRemoteService, setAcceptSelfSignedCertificate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LtpaTokenAuthenticationHandler

public LtpaTokenAuthenticationHandler()
Method Detail

connect

public AuthenticationResponse connect(String url,
                                      LtpaTokenAuthenticationCredentials credentials)
                               throws ilog.rules.teamserver.model.IlrConnectException
Description copied from class: AuthenticationHandler
Establishes the connection to Decision Center. The credentials should contain all the connection data needed.

Specified by:
connect in class AuthenticationHandler<LtpaTokenAuthenticationCredentials>
Throws:
ilog.rules.teamserver.model.IlrConnectException
Parameters:
url - The URL of Decision Center.
credentials - The credentials to use.
Returns:
The response with the status of the connection and the HTTP client to use to request Decision Center.
See Also:
AuthenticationResponse

setRequestParams

public void setRequestParams(org.apache.commons.httpclient.HttpMethod method)
Description copied from class: AuthenticationHandler
To customize the request to be sent via an HTTP connection to Decision Center.

Overrides:
setRequestParams in class AuthenticationHandler<LtpaTokenAuthenticationCredentials>
Parameters:
method - The method representing the request.

closeSession

public void closeSession()
Description copied from class: AuthenticationHandler
Closes the session. Implementers are responsible for closing the underlying connection. Usually, the HTTP client is used for the connection.

Specified by:
closeSession in class AuthenticationHandler<LtpaTokenAuthenticationCredentials>

createGetMethod

protected org.apache.commons.httpclient.methods.GetMethod createGetMethod(String url)
                                                                   throws IOException
Throws:
IOException

createHttpClient

protected org.apache.commons.httpclient.HttpClient createHttpClient(URL url)
                                                             throws IOException
Throws:
IOException

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013