public class ProtocolProviderFactorySipImpl extends ProtocolProviderFactory
ACCOUNT_DISPLAY_NAME, ACCOUNT_ICON_PATH, ACCOUNT_READ_ONLY_GROUPS, ACCOUNT_UID, AUTHORIZATION_NAME, AUTO_CHANGE_USER_NAME, AUTO_DISCOVER_JINGLE_NODES, AUTO_DISCOVER_STUN, AUTO_GENERATE_RESOURCE, CLIENT_TLS_CERTIFICATE, CUSAX_PROVIDER_ACCOUNT_PROP, DEFAULT_ENCRYPTION, DEFAULT_SIPZRTP_ATTRIBUTE, DISPLAY_NAME, DTMF_METHOD, DTMF_MINIMAL_TONE_DURATION, ENCODING_PROP_PREFIX, ENCRYPTION_PROTOCOL, ENCRYPTION_PROTOCOL_STATUS, FORCE_P2P_MODE, FORCE_PROXY_BYPASS, IS_ACCOUNT_CONFIG_HIDDEN, IS_ACCOUNT_DISABLED, IS_ACCOUNT_READ_ONLY, IS_ACCOUNT_STATUS_MENU_HIDDEN, IS_ALLOW_NON_SECURE, IS_CALLING_DISABLED_FOR_ACCOUNT, IS_CARBON_DISABLED, IS_DESKTOP_REMOTE_CONTROL_DISABLED, IS_DESKTOP_STREAMING_DISABLED, IS_PREFERRED_PROTOCOL, IS_PRESENCE_ENABLED, IS_PROTOCOL_HIDDEN, IS_SERVER_OVERRIDDEN, IS_USE_ICE, IS_USE_JINGLE_NODES, IS_USE_UPNP, IS_VIDEO_CALLING_DISABLED_FOR_ACCOUNT, JINGLE_NODES_SEARCH_BUDDIES, KEEP_ALIVE_INTERVAL, KEEP_ALIVE_METHOD, MODE_PARANOIA, MUST_REGISTER_TO_CALL, NO_PASSWORD_REQUIRED, OVERRIDE_ENCODINGS, PASSWORD, POLLING_PERIOD, PREFERRED_CLEAR_PORT_PROPERTY_NAME, PREFERRED_SECURE_PORT_PROPERTY_NAME, PREFERRED_TRANSPORT, PROTOCOL, PROTOCOL_ICON_PATH, PROXY_ADDRESS, PROXY_ADDRESS_VALIDATED, PROXY_AUTO_CONFIG, PROXY_PASSWORD, PROXY_PORT, PROXY_TRANSPORT, PROXY_TYPE, PROXY_USERNAME, registeredAccounts, RESOURCE, RESOURCE_PRIORITY, SAVP_MANDATORY, SAVP_OFF, SAVP_OPTION, SAVP_OPTIONAL, SDES_CIPHER_SUITES, SERVER_ADDRESS, SERVER_ADDRESS_VALIDATED, SERVER_PORT, SERVER_TRANSPORT, SMS_SERVER_ADDRESS, STRATEGY, STUN_ADDRESS, STUN_IS_TURN_SUPPORTED, STUN_PASSWORD, STUN_PORT, STUN_PREFIX, STUN_USERNAME, SUBSCRIPTION_EXPIRATION, USE_DEFAULT_STUN_SERVER, USE_JITSI_VIDEO_BRIDGE, USE_TRANSLATOR_IN_CONFERENCE, USER_ID, VOICEMAIL_CHECK_URI, VOICEMAIL_ENABLED, VOICEMAIL_URI
Constructor and Description |
---|
ProtocolProviderFactorySipImpl()
Constructs a new instance of the ProtocolProviderFactorySipImpl.
|
Modifier and Type | Method and Description |
---|---|
protected AccountID |
createAccountID(java.lang.String userID,
java.util.Map<java.lang.String,java.lang.String> accountProperties)
Creates a new
SipAccountIDImpl instance with a specific user
ID to represent a given set of account properties. |
protected ProtocolProviderService |
createService(java.lang.String userID,
AccountID accountID)
Initializes a new
ProtocolProviderServiceSipImpl instance
with a specific user ID to represent a specific AccountID . |
AccountID |
installAccount(java.lang.String userIDStr,
java.util.Map<java.lang.String,java.lang.String> accountProperties)
Initializes and creates an account corresponding to the specified
accountProperties and registers the resulting ProtocolProvider in the
context BundleContext parameter.
|
void |
modifyAccount(ProtocolProviderService protocolProvider,
java.util.Map<java.lang.String,java.lang.String> accountProperties)
Modifies the account corresponding to the specified accountID.
|
protected void |
storeAccount(AccountID accountID)
Overrides the original in order not to save the OPT_CLIST_PASSWORD field.
|
createAccount, findAccountPrefix, getBundleContext, getProtocolName, getProtocolProviderFactory, getProviderForAccount, getRegisteredAccounts, loadAccount, loadAccount, loadPassword, loadPassword, removeStoredAccount, stop, stop, storeAccount, storePassword, storePassword, uninstallAccount, unloadAccount
public ProtocolProviderFactorySipImpl()
protected void storeAccount(AccountID accountID)
storeAccount
in class ProtocolProviderFactory
accountID
- the account identifier.public AccountID installAccount(java.lang.String userIDStr, java.util.Map<java.lang.String,java.lang.String> accountProperties)
installAccount
in class ProtocolProviderFactory
userIDStr
- the 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.java.lang.IllegalArgumentException
- if userID does not correspond to an
identifier in the context of the underlying protocol or if
accountProperties does not contain a complete set of account
installation properties.java.lang.IllegalStateException
- if the account has already been
installed.java.lang.NullPointerException
- if any of the arguments is null.public void modifyAccount(ProtocolProviderService protocolProvider, java.util.Map<java.lang.String,java.lang.String> accountProperties)
modifyAccount
in class ProtocolProviderFactory
protocolProvider
- the protocol provider service corresponding to
the modified account.accountProperties
- a set of protocol (or implementation) specific
properties defining the new account.java.lang.NullPointerException
- if any of the arguments is null.protected AccountID createAccountID(java.lang.String userID, java.util.Map<java.lang.String,java.lang.String> accountProperties)
SipAccountIDImpl
instance with a specific user
ID to represent a given set of account properties.createAccountID
in class ProtocolProviderFactory
userID
- the user ID of the new instanceaccountProperties
- the set of properties to be represented by the
new instanceAccountID
instance with the specified user ID
representing the given set of account propertiesprotected ProtocolProviderService createService(java.lang.String userID, AccountID accountID)
ProtocolProviderServiceSipImpl
instance
with a specific user ID to represent a specific AccountID
.createService
in class ProtocolProviderFactory
userID
- the user ID to initialize the new instance withaccountID
- the AccountID
to be represented by the new
instanceProtocolProviderService
instance with the
specific user ID representing the specified
AccountID
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.