org.eclipse.ecf.core.security
Class ConnectContextFactory

java.lang.Object
  extended by org.eclipse.ecf.core.security.ConnectContextFactory

public class ConnectContextFactory
extends java.lang.Object

Helper class for creating instances of IConnectContext


Method Summary
static IConnectContext createPasswordConnectContext(java.lang.String password)
          Create password connect context, where password is represented as a String
static IConnectContext createUsernamePasswordConnectContext(java.lang.String username, java.lang.Object password)
          Create username and password connect context, where username is represented as a String and password as an Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createUsernamePasswordConnectContext

public static IConnectContext createUsernamePasswordConnectContext(java.lang.String username,
                                                                   java.lang.Object password)
Create username and password connect context, where username is represented as a String and password as an Object.

Parameters:
username - the username
password - the password
Returns:
IConnectContext for accessing the username and password

createPasswordConnectContext

public static IConnectContext createPasswordConnectContext(java.lang.String password)
Create password connect context, where password is represented as a String

Parameters:
password - the password to use
Returns:
IConnectContext for accessing the given password