Rule Execution Server API

ilog.rules.teamserver.auth
Class AuthenticationCredentials

java.lang.Object
  extended by ilog.rules.teamserver.auth.AuthenticationCredentials
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LtpaTokenAuthenticationCredentials, UsernamePasswordAuthenticationCredentials

public abstract class AuthenticationCredentials
extends Object
implements Serializable

Abstract class for credentials to pass to the AuthenticationHandler.connect(String, AuthenticationCredentials) method.

See Also:
Serialized Form

Field Summary
static String AuthenticationHandlerClassname
          This key gives the name of the class that handles the connection to Decision Center.
 
Constructor Summary
AuthenticationCredentials()
           
 
Method Summary
 AuthenticationCredentials addAuthenticationDetails(String key, Object value)
          Stores a property.
 String[] getAuthenticationDetailNames()
          Returns the names of the properties available.
 Object getAuthenticationDetails(String key)
          Returns the value of the property as an Object, or null if no property of the given key exists.
 AuthenticationCredentials removeAuthenticationDetails(String key)
          Removes a property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AuthenticationHandlerClassname

public static final String AuthenticationHandlerClassname
This key gives the name of the class that handles the connection to Decision Center.

See Also:
AuthenticationHandler, Constant Field Values
Constructor Detail

AuthenticationCredentials

public AuthenticationCredentials()
Method Detail

getAuthenticationDetailNames

public String[] getAuthenticationDetailNames()
Returns the names of the properties available. This method returns an empty array if the credentials instance has no property available to it.

Returns:
A string array containing the keys of the stored properties.

getAuthenticationDetails

public Object getAuthenticationDetails(String key)
Returns the value of the property as an Object, or null if no property of the given key exists.

Parameters:
key - A String specifying the key of the property.
Returns:
An Object containing the value of the property, or null if the key does not exist.

addAuthenticationDetails

public AuthenticationCredentials addAuthenticationDetails(String key,
                                                          Object value)
Stores a property.

Parameters:
key - A String specifying the key of the property.
value - The Object to store.
Returns:
This instance.

removeAuthenticationDetails

public AuthenticationCredentials removeAuthenticationDetails(String key)
Removes a property.

Parameters:
key - A String specifying the key of the property to remove.
Returns:
This instance.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013