| java.lang.Object org.columba.mail.pgp.JSCFController
JSCFController | public class JSCFController (Code) | | The JSCFController controls JSCFDrivers and Connections. It
chaches for each account the connection to JSCFDrivers. The
JSCFController uses the "singleton pattern", which mean, that
you should access it, using the getInstcane method.
author: waffel |
Method Summary | |
public JSCFConnection | getConnection(String userID) Creates a new Connection to the gpg driver, if the connection for the
given userID are not exists. | public JSCFConnection | getConnection() Creates a new JSCFConnection for the current used Account. | public static JSCFController | getInstance() Gives a instance of the JSCFController back. |
getConnection | public JSCFConnection getConnection(String userID) throws JSCFException(Code) | | Creates a new Connection to the gpg driver, if the connection for the
given userID are not exists. Properties for the connection
are created by using the SecurityItem from the AccountItem .
Properties like PATH and the GPG USERID are stored for the connection, if
the connection are not exists.
Parameters: userID - UserID from which the connection should give back a alrady etablished connection for this user or a newly createdconnection for this userID, if no connection exists for theuserID throws: JSCFException - If there are several Driver problems |
getConnection | public JSCFConnection getConnection() throws JSCFException(Code) | | Creates a new JSCFConnection for the current used Account. The current
used Account is determind from the AccountItem. This method calls only
JSCFController.getConnection(String) with the id from the
SecurityItem.
a alrady etablished connection for the current account or a newlycreated connection for the current account, if no connectionexists for the current account throws: JSCFException - If there are several Driver problems |
getInstance | public static JSCFController getInstance()(Code) | | Gives a instance of the JSCFController back. If no
instance was created before, a new instance will be created.
A Instance of JSCFController |
|
|