Decision Center API

ilog.rules.teamserver.auth
Class UsernamePasswordAuthenticationHandler

java.lang.Object
  extended by ilog.rules.teamserver.auth.AuthenticationHandler<UsernamePasswordAuthenticationCredentials>
      extended by ilog.rules.teamserver.auth.UsernamePasswordAuthenticationHandler

public class UsernamePasswordAuthenticationHandler
extends AuthenticationHandler<UsernamePasswordAuthenticationCredentials>

Connects to Decision Center using form-based authentication.

See Also:
UsernamePasswordAuthenticationCredentials

Constructor Summary
UsernamePasswordAuthenticationHandler()
           
 
Method Summary
 void closeSession()
          Closes the session.
 AuthenticationResponse connect(String url, UsernamePasswordAuthenticationCredentials credentials)
          Establishes the connection to Decision Center.
 
Methods inherited from class ilog.rules.teamserver.auth.AuthenticationHandler
acceptSelfSignedCertificate, getRemoteService, setAcceptSelfSignedCertificate, setRequestParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsernamePasswordAuthenticationHandler

public UsernamePasswordAuthenticationHandler()
Method Detail

connect

public AuthenticationResponse connect(String url,
                                      UsernamePasswordAuthenticationCredentials credentials)
                               throws 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<UsernamePasswordAuthenticationCredentials>
Throws:
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

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<UsernamePasswordAuthenticationCredentials>

Decision Center API

© Copyright IBM Corp. 1987, 2013