|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.protocol.ProtocolProviderFactory
net.java.sip.communicator.impl.protocol.ssh.ProtocolProviderFactorySSH
net.java.sip.communicator.impl.protocol.ssh.ProtocolProviderFactorySSHImpl
public class ProtocolProviderFactorySSHImpl
The SSH protocol provider factory creates instances of the SSH protocol provider service. One Service instance corresponds to one account.
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.impl.protocol.ssh.ProtocolProviderFactorySSH |
|---|
IDENTITY_FILE, KNOWN_HOSTS_FILE |
| Constructor Summary | |
|---|---|
ProtocolProviderFactorySSHImpl()
Creates an instance of the ProtocolProviderFactorySSHImpl. |
|
| Method Summary | |
|---|---|
protected AccountID |
createAccountID(String userID,
Map<String,String> accountProperties)
Creates a new AccountID instance with a specific user ID to
represent a given set of account properties. |
protected ProtocolProviderService |
createService(String userID,
AccountID accountID)
Initializes a new ProtocolProviderService instance with a
specific user ID to represent a specific AccountID. |
AccountID |
installAccount(String userIDStr,
Map<String,String> accountProperties)
Initializaed and creates an account corresponding to the specified accountProperties and registers the resulting ProtocolProvider in the context BundleContext parameter. |
void |
modifyAccount(ProtocolProviderService protocolProvider,
Map<String,String> accountProperties)
Modifies the account corresponding to the specified accountID. |
| Methods inherited from class net.java.sip.communicator.service.protocol.ProtocolProviderFactory |
|---|
createAccount, findAccountPrefix, getBundleContext, getProtocolName, getProviderForAccount, getRegisteredAccounts, loadAccount, loadAccount, loadPassword, loadPassword, removeStoredAccount, stop, stop, storeAccount, storeAccount, storePassword, storePassword, uninstallAccount, unloadAccount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProtocolProviderFactorySSHImpl()
| Method Detail |
|---|
public AccountID installAccount(String userIDStr,
Map<String,String> accountProperties)
installAccount in class ProtocolProviderFactoryuserIDStr - tha/a user identifier uniquely representing the newly
created account within the protocol namespace.accountProperties - a set of protocol (or implementation)
specific properties defining the new account.
protected AccountID createAccountID(String userID,
Map<String,String> accountProperties)
ProtocolProviderFactoryAccountID instance with a specific user ID to
represent a given set of account properties.
The method is a pure factory allowing implementers to specify the runtime
type of the created AccountID and customize the instance.
The returned AccountID will later be associated with a
ProtocolProviderService by the caller (e.g. using
ProtocolProviderFactory.createService(String, AccountID)).
createAccountID in class ProtocolProviderFactoryuserID - the user ID of the new instanceaccountProperties - the set of properties to be represented by the
new instance
AccountID instance with the specified user ID
representing the given set of account properties
protected ProtocolProviderService createService(String userID,
AccountID accountID)
ProtocolProviderFactoryProtocolProviderService instance with a
specific user ID to represent a specific AccountID.
The method is a pure factory allowing implementers to specify the runtime
type of the created ProtocolProviderService and customize
the instance. The caller will later register the returned service with
the BundleContext of this factory.
createService in class ProtocolProviderFactoryuserID - the user ID to initialize the new instance withaccountID - the AccountID to be represented by the new
instance
ProtocolProviderService instance with the
specific user ID representing the specified
AccountID
public void modifyAccount(ProtocolProviderService protocolProvider,
Map<String,String> accountProperties)
throws NullPointerException
ProtocolProviderFactory
modifyAccount in class ProtocolProviderFactoryprotocolProvider - the protocol provider service corresponding to
the modified account.accountProperties - a set of protocol (or implementation) specific
properties defining the new account.
NullPointerException - if any of the arguments is null.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||