Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.sipaccregwizz
Class SIPAccountRegistration

java.lang.Object
  extended by net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistration

public class SIPAccountRegistration
extends Object

The SIPAccountRegistration is used to store all user input data through the SIPAccountRegistrationWizard.

Author:
Yana Stamcheva, Grigorii Balutsel

Field Summary
static String DEFAULT_KEEP_ALIVE_INTERVAL
           
static String DEFAULT_POLL_PERIOD
           
static String DEFAULT_PORT
           
static String DEFAULT_SUBSCRIBE_EXPIRES
           
static String DEFAULT_TLS_PORT
           
 
Constructor Summary
SIPAccountRegistration()
           
 
Method Summary
 String getAuthorizationName()
          The authorization name
 String getClistOptionPassword()
          Gets the contact list password.
 String getClistOptionServerUri()
          Gets the contact list server uri.
 String getClistOptionUser()
          Gets the contact list user.
 String getDefaultDomain()
          This is the default domain.
 String getDefaultDTMFMethod()
           
 String getDefaultKeepAliveMethod()
           
 String getDefaultTransport()
           
 String getDisplayName()
          The display name
 String getDTMFMethod()
          Returns the DTMF method.
 String getId()
          Returns the UIN of the sip registration account.
 String getKeepAliveInterval()
          Returns the keep alive interval.
 String getKeepAliveMethod()
          Returns the keep alive method.
 String getPassword()
          Returns the password of the sip registration account.
 String getPollingPeriod()
          The offline contact polling period
 String getPreferredTransport()
           
 String getProxy()
           
 String getProxyPort()
          The port on the specified proxy
 int getSavpOption()
           
 String getSDesCipherSuites()
           
 String getServerAddress()
          The address of the server we will use for this account
 String getServerPort()
          The port on the specified server
 String getSubscriptionExpiration()
          The default expiration of subscriptions
 String getTlsClientCertificate()
          Gets the ID of the client certificate configuration.
 String getVoicemailCheckURI()
          The voicemail check URI.
 String getVoicemailURI()
          The voicemail URI.
 boolean isClistOptionUseSipCredentials()
          Checks if XCAP has to use SIP account credentials.
 boolean isDefaultEncryption()
          If default call encryption is enabled
 boolean isEnablePresence()
          If the presence is enabled
 boolean isForceP2PMode()
          If the p2p mode is forced
 boolean isMessageWaitingIndicationsEnabled()
          Check if messageWaitingIndications is enabled
 boolean isProxyAutoConfigure()
          Is proxy auto configured.
 boolean isRememberPassword()
          Returns TRUE if password has to remembered, FALSE otherwise.
 boolean isSDesEnabled()
           
 boolean isSipZrtpAttribute()
          Check if to include the ZRTP attribute to SIP/SDP
 boolean isXCapEnable()
          Checks if XCAP is enabled.
 boolean isXiVOEnable()
          Checks if XiVO option is enabled.
 void setAuthorizationName(String authName)
          Sets authorization name.
 void setClistOptionPassword(String clistOptionPassword)
          Sets the contact list password.
 void setClistOptionServerUri(String clistOptionServerUri)
          Sets the contact list server uri.
 void setClistOptionUser(String clistOptionUser)
          Sets the contact list user.
 void setClistOptionUseSipCredentials(boolean clistOptionUseSipCredentials)
          Sets if contact list has to use SIP account credentials.
 void setDefaultDomain(String defaultDomain)
          If default domain is set this means we cannot create registerless accounts through this wizard.
 void setDefaultDTMFMethod(String defaultDTMFMethod)
           
 void setDefaultEncryption(boolean defaultEncryption)
          Sets default call encryption
 void setDefaultKeepAliveMethod(String defaultKeepAliveMethod)
           
 void setDefaultTransport(String defaultTransport)
           
 void setDisplayName(String displayName)
          Sets the display name.
 void setDTMFMethod(String dtmfMethod)
          Sets the DTMF method.
 void setEnablePresence(boolean enablePresence)
          Sets if the presence is enabled
 void setForceP2PMode(boolean forceP2PMode)
          Sets if we have to force the p2p mode
 void setKeepAliveInterval(String keepAliveInterval)
          Sets the keep alive interval.
 void setKeepAliveMethod(String keepAliveMethod)
          Sets the keep alive method.
 void setMessageWaitingIndications(boolean messageWaitingIndications)
          Sets message waiting indications.
 void setPassword(String password)
          Sets the password of the sip registration account.
 void setPollingPeriod(String pollingPeriod)
          Sets the offline contacts polling period
 void setPreferredTransport(String preferredTransport)
           
 void setProxy(String proxy)
           
 void setProxyAutoConfigure(boolean proxyAutoConfigure)
          Sets auto configuration of proxy enabled or disabled.
 void setProxyPort(String port)
          Sets the proxy port.
 void setRememberPassword(boolean rememberPassword)
          Sets the rememberPassword value of this sip account registration.
 void setSavpOption(int savpOption)
           
 void setSDesCipherSuites(String cipherSuites)
           
 void setSDesEnabled(boolean sdesEnabled)
           
 void setServerAddress(String serverAddress)
          Sets the server
 void setServerPort(String port)
          Sets the server port.
 void setSipZrtpAttribute(boolean sipZrtpAttribute)
          Sets SIP ZRTP attribute support
 void setSubscriptionExpiration(String subscriptionExpiration)
          Sets the subscription expiration value
 void setTlsClientCertificate(String id)
          Sets the ID of the client certificate configuration.
 void setUserID(String id)
          Sets the identifier of the sip registration account.
 void setVoicemailCheckURI(String voicemailCheckURI)
          Sets voicemail check URI.
 void setVoicemailURI(String voicemailURI)
          Sets voicemail URI.
 void setXCapEnable(boolean xCapEnable)
          Sets if XCAP is enable.
 void setXiVOEnable(boolean xivoEnable)
          Sets if XiVO option is enable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static String DEFAULT_PORT

DEFAULT_TLS_PORT

public static String DEFAULT_TLS_PORT

DEFAULT_POLL_PERIOD

public static String DEFAULT_POLL_PERIOD

DEFAULT_SUBSCRIBE_EXPIRES

public static String DEFAULT_SUBSCRIBE_EXPIRES

DEFAULT_KEEP_ALIVE_INTERVAL

public static String DEFAULT_KEEP_ALIVE_INTERVAL
Constructor Detail

SIPAccountRegistration

public SIPAccountRegistration()
Method Detail

getPreferredTransport

public String getPreferredTransport()

setPreferredTransport

public void setPreferredTransport(String preferredTransport)

getProxy

public String getProxy()

setProxy

public void setProxy(String proxy)

getPassword

public String getPassword()
Returns the password of the sip registration account.

Returns:
the password of the sip registration account.

setPassword

public void setPassword(String password)
Sets the password of the sip registration account.

Parameters:
password - the password of the sip registration account.

isRememberPassword

public boolean isRememberPassword()
Returns TRUE if password has to remembered, FALSE otherwise.

Returns:
TRUE if password has to remembered, FALSE otherwise

setRememberPassword

public void setRememberPassword(boolean rememberPassword)
Sets the rememberPassword value of this sip account registration.

Parameters:
rememberPassword - TRUE if password has to remembered, FALSE otherwise

getTlsClientCertificate

public String getTlsClientCertificate()
Gets the ID of the client certificate configuration.

Returns:
the ID of the client certificate configuration.

setTlsClientCertificate

public void setTlsClientCertificate(String id)
Sets the ID of the client certificate configuration.

Parameters:
id - the client certificate configuration template ID.

getId

public String getId()
Returns the UIN of the sip registration account.

Returns:
the UIN of the sip registration account.

getServerAddress

public String getServerAddress()
The address of the server we will use for this account

Returns:
String

getServerPort

public String getServerPort()
The port on the specified server

Returns:
int

getDisplayName

public String getDisplayName()
The display name

Returns:
String display name

getAuthorizationName

public String getAuthorizationName()
The authorization name

Returns:
String auth name

getProxyPort

public String getProxyPort()
The port on the specified proxy

Returns:
int

setUserID

public void setUserID(String id)
Sets the identifier of the sip registration account.

Parameters:
id - the identifier of the sip registration account.

setServerAddress

public void setServerAddress(String serverAddress)
Sets the server

Parameters:
serverAddress - String

setServerPort

public void setServerPort(String port)
Sets the server port.

Parameters:
port - int

setDisplayName

public void setDisplayName(String displayName)
Sets the display name.

Parameters:
displayName - String

setAuthorizationName

public void setAuthorizationName(String authName)
Sets authorization name.

Parameters:
authName - String

setProxyPort

public void setProxyPort(String port)
Sets the proxy port.

Parameters:
port - int

isEnablePresence

public boolean isEnablePresence()
If the presence is enabled

Returns:
If the presence is enabled

isForceP2PMode

public boolean isForceP2PMode()
If the p2p mode is forced

Returns:
If the p2p mode is forced

getPollingPeriod

public String getPollingPeriod()
The offline contact polling period

Returns:
the polling period

getSubscriptionExpiration

public String getSubscriptionExpiration()
The default expiration of subscriptions

Returns:
the subscription expiration

setEnablePresence

public void setEnablePresence(boolean enablePresence)
Sets if the presence is enabled

Parameters:
enablePresence - if the presence is enabled

setForceP2PMode

public void setForceP2PMode(boolean forceP2PMode)
Sets if we have to force the p2p mode

Parameters:
forceP2PMode - if we have to force the p2p mode

setPollingPeriod

public void setPollingPeriod(String pollingPeriod)
Sets the offline contacts polling period

Parameters:
pollingPeriod - the offline contacts polling period

setSubscriptionExpiration

public void setSubscriptionExpiration(String subscriptionExpiration)
Sets the subscription expiration value

Parameters:
subscriptionExpiration - the subscription expiration value

getKeepAliveMethod

public String getKeepAliveMethod()
Returns the keep alive method.

Returns:
the keep alive method.

setKeepAliveMethod

public void setKeepAliveMethod(String keepAliveMethod)
Sets the keep alive method.

Parameters:
keepAliveMethod - the keep alive method to set

getKeepAliveInterval

public String getKeepAliveInterval()
Returns the keep alive interval.

Returns:
the keep alive interval

setKeepAliveInterval

public void setKeepAliveInterval(String keepAliveInterval)
Sets the keep alive interval.

Parameters:
keepAliveInterval - the keep alive interval to set

getDTMFMethod

public String getDTMFMethod()
Returns the DTMF method.

Returns:
the DTMF method.

setDTMFMethod

public void setDTMFMethod(String dtmfMethod)
Sets the DTMF method.

Parameters:
dtmfMethod - the DTMF method to set

isDefaultEncryption

public boolean isDefaultEncryption()
If default call encryption is enabled

Returns:
If default call encryption is enabled

setDefaultEncryption

public void setDefaultEncryption(boolean defaultEncryption)
Sets default call encryption

Parameters:
defaultEncryption - if we want to set call encryption on as default

isSipZrtpAttribute

public boolean isSipZrtpAttribute()
Check if to include the ZRTP attribute to SIP/SDP

Returns:
include the ZRTP attribute to SIP/SDP

setSipZrtpAttribute

public void setSipZrtpAttribute(boolean sipZrtpAttribute)
Sets SIP ZRTP attribute support

Parameters:
sipZrtpAttribute - include the ZRTP attribute to SIP/SDP

isSDesEnabled

public boolean isSDesEnabled()

setSDesEnabled

public void setSDesEnabled(boolean sdesEnabled)

getSDesCipherSuites

public String getSDesCipherSuites()

setSDesCipherSuites

public void setSDesCipherSuites(String cipherSuites)

getSavpOption

public int getSavpOption()

setSavpOption

public void setSavpOption(int savpOption)

getDefaultDomain

public String getDefaultDomain()
This is the default domain.

Returns:
the defaultDomain

setDefaultDomain

public void setDefaultDomain(String defaultDomain)
If default domain is set this means we cannot create registerless accounts through this wizard. And every time we write only the username, will will end up with username@defaultDomain.

Parameters:
defaultDomain - the defaultDomain to set

getDefaultKeepAliveMethod

public String getDefaultKeepAliveMethod()
Returns:
the defaultKeepAliveMethod

setDefaultKeepAliveMethod

public void setDefaultKeepAliveMethod(String defaultKeepAliveMethod)
Parameters:
defaultKeepAliveMethod - the defaultKeepAliveMethod to set

getDefaultDTMFMethod

public String getDefaultDTMFMethod()
Returns:
the defaultDTMFMethod

setDefaultDTMFMethod

public void setDefaultDTMFMethod(String defaultDTMFMethod)
Parameters:
defaultDTMFMethod - the defaultDTMFMethod to set

getDefaultTransport

public String getDefaultTransport()
Returns:
the defaultTransport

setDefaultTransport

public void setDefaultTransport(String defaultTransport)
Parameters:
defaultTransport - the defaultTransport to set

isXCapEnable

public boolean isXCapEnable()
Checks if XCAP is enabled.

Returns:
true if XCAP is enabled otherwise false.

setXCapEnable

public void setXCapEnable(boolean xCapEnable)
Sets if XCAP is enable.

Parameters:
xCapEnable - XCAP enable.

isXiVOEnable

public boolean isXiVOEnable()
Checks if XiVO option is enabled.

Returns:
true if XiVO is enabled otherwise false.

setXiVOEnable

public void setXiVOEnable(boolean xivoEnable)
Sets if XiVO option is enable.

Parameters:
xivoEnable - XiVO enable.

isClistOptionUseSipCredentials

public boolean isClistOptionUseSipCredentials()
Checks if XCAP has to use SIP account credentials.

Returns:
true if XCAP has to use SIP account credentials otherwise false.

setClistOptionUseSipCredentials

public void setClistOptionUseSipCredentials(boolean clistOptionUseSipCredentials)
Sets if contact list has to use SIP account credentials.

Parameters:
clistOptionUseSipCredentials - if the clist has to use SIP account credentials.

getClistOptionServerUri

public String getClistOptionServerUri()
Gets the contact list server uri.

Returns:
the contact list server uri.

setClistOptionServerUri

public void setClistOptionServerUri(String clistOptionServerUri)
Sets the contact list server uri.

Parameters:
clistOptionServerUri - the contact list server uri.

getClistOptionUser

public String getClistOptionUser()
Gets the contact list user.

Returns:
the contact list user.

setClistOptionUser

public void setClistOptionUser(String clistOptionUser)
Sets the contact list user.

Parameters:
clistOptionUser - the contact list user.

getClistOptionPassword

public String getClistOptionPassword()
Gets the contact list password.

Returns:
the contact list password.

setClistOptionPassword

public void setClistOptionPassword(String clistOptionPassword)
Sets the contact list password.

Parameters:
clistOptionPassword - the contact list password.

isProxyAutoConfigure

public boolean isProxyAutoConfigure()
Is proxy auto configured.

Returns:

setProxyAutoConfigure

public void setProxyAutoConfigure(boolean proxyAutoConfigure)
Sets auto configuration of proxy enabled or disabled.

Parameters:
proxyAutoConfigure -

getVoicemailURI

public String getVoicemailURI()
The voicemail URI.

Returns:
the voicemail URI.

setVoicemailURI

public void setVoicemailURI(String voicemailURI)
Sets voicemail URI.

Parameters:
voicemailURI - new URI.

getVoicemailCheckURI

public String getVoicemailCheckURI()
The voicemail check URI.

Returns:
the voicemail URI.

setVoicemailCheckURI

public void setVoicemailCheckURI(String voicemailCheckURI)
Sets voicemail check URI.

Parameters:
voicemailCheckURI - new URI.

isMessageWaitingIndicationsEnabled

public boolean isMessageWaitingIndicationsEnabled()
Check if messageWaitingIndications is enabled

Returns:
if messageWaitingIndications is enabled

setMessageWaitingIndications

public void setMessageWaitingIndications(boolean messageWaitingIndications)
Sets message waiting indications.

Parameters:
messageWaitingIndications -

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.