public class ZRTPConfig
extends java.lang.Object
Constructor and Description |
---|
ZRTPConfig(long handle)
Constructor storing the pointer/address to the underlying native object
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ZRTPAuthTag> |
auth()
Gets the configured ZRTP Authentication Tag types for the User
Gets the ZRTP Authentication Tag types list.
|
void |
auth(java.util.List<ZRTPAuthTag> value)
Configures the ZRTP Authentication Tag types for the User
Adds the ZRTP Authentication Tag types list.
|
int |
cacheExpiry()
Gets the configured ZRTP cache expiry for the User
After a ZRTP negotiation between two peers is complete they update their caches based on their configuration and
the negotiation expiry times.
|
void |
cacheExpiry(int value)
Configures the ZRTP cache expiry for the User
After a ZRTP negotiation between two peers is complete they update their caches based on their configuration and
the negotiation expiry times.
|
java.util.List<ZRTPCipherAlgorithm> |
cipher()
Gets the configured ZRTP Cipher Algorithms for the User
Gets the specified ZRTP Cipher Algorithm list.
|
void |
cipher(java.util.List<ZRTPCipherAlgorithm> value)
Configures the ZRTP Cipher Algorithms for the User
Adds the specified ZRTP Cipher Algorithm list.
|
boolean |
enableZRTP()
Gets the configured use of user's ZRTP
|
void |
enableZRTP(boolean value)
Configures the use of user's ZRTP
|
protected void |
finalize()
Ensures the underlying native object destruction
|
long |
handle()
Gets the pointer/address to the underlying native object
|
java.util.List<ZRTPHashAlgorithm> |
hash()
Gets the configured ZRTP Hash Algorithms for the User
Gets the specified ZRTP Hash Algorithms list.
|
void |
hash(java.util.List<ZRTPHashAlgorithm> value)
Configures the ZRTP Hash Algorithms for the User
Adds the specified ZRTP Hash Algorithms list.
|
boolean |
isEqual(ZRTPConfig comp)
Compares the current configuration with the given one
|
java.util.List<ZRTPKeyAgreement> |
keyAgreement()
Gets the configured ZRTP Key Agreement algorithms for the User
Gets the ZRTP Key Agreement algorithms list.
|
void |
keyAgreement(java.util.List<ZRTPKeyAgreement> value)
Configures the ZRTP Key Agreement algorithms for the User
Adds the ZRTP Key Agreement algorithms list.
|
java.util.List<ZRTPSASEncoding> |
sasEncoding()
Gets the configured ZRTP SAS encodings for the User
Gets the ZRTP SAS encodings list.
|
void |
sasEncoding(java.util.List<ZRTPSASEncoding> value)
Configures the ZRTP SAS encodings for the User
Adds the ZRTP SAS encodings list.
|
public ZRTPConfig(long handle)
handle
- Pointer/address to the underlying native objectpublic long handle()
protected void finalize()
finalize
in class java.lang.Object
public boolean enableZRTP()
public void enableZRTP(boolean value)
value
- public java.util.List<ZRTPHashAlgorithm> hash()
ZRTPHashAlgorithm
public void hash(java.util.List<ZRTPHashAlgorithm> value)
value
- The ZRTP Hash Algorithms listZRTPHashAlgorithm
public java.util.List<ZRTPCipherAlgorithm> cipher()
ZRTPCipherAlgorithm
public void cipher(java.util.List<ZRTPCipherAlgorithm> value)
value
- The ZRTP Cipher Algorithms listZRTPCipherAlgorithm
public java.util.List<ZRTPAuthTag> auth()
ZRTPAuthTag
public void auth(java.util.List<ZRTPAuthTag> value)
value
- The ZRTP Authentication Tag types listZRTPAuthTag
public java.util.List<ZRTPKeyAgreement> keyAgreement()
ZRTPKeyAgreement
public void keyAgreement(java.util.List<ZRTPKeyAgreement> value)
value
- The ZRTP Key Agreement algorithms listZRTPKeyAgreement
public java.util.List<ZRTPSASEncoding> sasEncoding()
ZRTPSASEncoding
public void sasEncoding(java.util.List<ZRTPSASEncoding> value)
value
- The ZRTP SAS encodings listZRTPSASEncoding
public int cacheExpiry()
public void cacheExpiry(int value)
value
- The expiry in seconds or 0 for no cache or -1 for infinity (default)public boolean isEqual(ZRTPConfig comp)
comp
- SIP configuration to be compared