public abstract class SecurityAccountRegistration
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.util.List<java.lang.String> |
ENCRYPTION_PROTOCOLS
The encryption protocols managed by this SecurityPanel.
|
Constructor and Description |
---|
SecurityAccountRegistration()
Initializes the security account registration properties with the default
values.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Integer> |
getEncryptionProtocols()
Returns the map between the encryption protocols and their priority
order.
|
java.util.Map<java.lang.String,java.lang.Boolean> |
getEncryptionProtocolStatus()
Returns the map between the encryption protocols and their status.
|
abstract int |
getSavpOption()
Returns the method used for RTP/SAVP indication.
|
java.lang.String |
getSDesCipherSuites()
Returns the list of cipher suites enabled for SDES.
|
boolean |
isDefaultEncryption()
If default call encryption is enabled
|
boolean |
isSDesEnabled()
Tells if SDES is enabled for this account.
|
boolean |
isSipZrtpAttribute()
Check if to include the ZRTP attribute to SIP/SDP or to Jabber/IQ
|
void |
loadAccount(AccountID accountID)
Loads security properties from the account with the given identifier.
|
static java.lang.Object[] |
loadEncryptionProtocols(java.util.Map<java.lang.String,java.lang.Integer> encryptionProtocols,
java.util.Map<java.lang.String,java.lang.Boolean> encryptionProtocolStatus)
Loads the list of enabled and disabled encryption protocols with their
priority into array of String and array of Boolean.
|
void |
setDefaultEncryption(boolean defaultEncryption)
Sets default call encryption
|
void |
setEncryptionProtocols(java.util.Map<java.lang.String,java.lang.Integer> encryptionProtocols)
Sets the map between the encryption protocols and their priority order.
|
void |
setEncryptionProtocolStatus(java.util.Map<java.lang.String,java.lang.Boolean> encryptionProtocolStatus)
Sets the map between the encryption protocols and their status.
|
abstract void |
setSavpOption(int savpOption)
Sets the method used for RTP/SAVP indication.
|
void |
setSDesCipherSuites(java.lang.String cipherSuites)
Sets the list of cipher suites enabled for SDES.
|
void |
setSDesEnabled(boolean sdesEnabled)
Enables or disables SDES for this account.
|
void |
setSipZrtpAttribute(boolean sipZrtpAttribute)
Sets ZRTP attribute support
|
void |
storeProperties(java.util.Map<java.lang.String,java.lang.String> propertiesMap)
Stores security properties held by this registration object into given
properties map.
|
public static final java.util.List<java.lang.String> ENCRYPTION_PROTOCOLS
public SecurityAccountRegistration()
public boolean isDefaultEncryption()
public void setDefaultEncryption(boolean defaultEncryption)
defaultEncryption
- if we want to set call encryption on as defaultpublic boolean isSipZrtpAttribute()
public void setSipZrtpAttribute(boolean sipZrtpAttribute)
sipZrtpAttribute
- include the ZRTP attribute to SIP/SDP or to
Jabber/IQpublic boolean isSDesEnabled()
public void setSDesEnabled(boolean sdesEnabled)
sdesEnabled
- True to enable SDES. False, otherwise.public java.lang.String getSDesCipherSuites()
public void setSDesCipherSuites(java.lang.String cipherSuites)
cipherSuites
- The list of cipher suites enabled for SDES.
Null if no cipher suite is enabled.public abstract void setSavpOption(int savpOption)
public abstract int getSavpOption()
public java.util.Map<java.lang.String,java.lang.Integer> getEncryptionProtocols()
public void setEncryptionProtocols(java.util.Map<java.lang.String,java.lang.Integer> encryptionProtocols)
encryptionProtocols
- The map between the encryption protocols and
their priority order.public java.util.Map<java.lang.String,java.lang.Boolean> getEncryptionProtocolStatus()
public void setEncryptionProtocolStatus(java.util.Map<java.lang.String,java.lang.Boolean> encryptionProtocolStatus)
encryptionProtocolStatus
- The map between the encryption protocols
and their status.public void storeProperties(java.util.Map<java.lang.String,java.lang.String> propertiesMap)
propertiesMap
- the map that will be used for storing security
properties held by this object.public void loadAccount(AccountID accountID)
accountID
- the account identifier.public static java.lang.Object[] loadEncryptionProtocols(java.util.Map<java.lang.String,java.lang.Integer> encryptionProtocols, java.util.Map<java.lang.String,java.lang.Boolean> encryptionProtocolStatus)
encryptionProtocols
- The map of encryption protocols with their
priority available for this account.encryptionProtocolStatus
- The map of encryption protocol statuses.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.