SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.media.keyshare
Class ZRTPKeyProvider

java.lang.Object
  extended by net.java.sip.communicator.impl.media.keyshare.ZRTPKeyProvider
All Implemented Interfaces:
KeyProviderAlgorithm

public class ZRTPKeyProvider
extends Object
implements KeyProviderAlgorithm

ZRTPProvider class implements KeyProvider interface. Used to activate the ZRTPConnector creation. Also could be used to provide additional info. (Originally the interface contained setter and getter methods for keys and other cryptographic parameters but this were removed due to redundancy regarding the fact these are partial provided already inside directly in the SRTPTransformEngine class. The ZRTPConnector originally implemented the interface to have direct access to these as a ZRTPProvider. It might still be a viable option.)

Author:
Emanuel Onica (eonica@info.uaic.ro)

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.java.sip.communicator.impl.media.keyshare.KeyProviderAlgorithm
KeyProviderAlgorithm.ProviderType
 
Constructor Summary
ZRTPKeyProvider(int priority)
           
 
Method Summary
 int getPriority()
          Gets this algorithm's priority of usage in handling the key management
 KeyProviderAlgorithm.ProviderType getProviderType()
          Obtains the current provider type for the class implementing the interface
 void setPriority(int priority)
          Sets this algorithm's priority of usage in handling the key management
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZRTPKeyProvider

public ZRTPKeyProvider(int priority)
Method Detail

getProviderType

public KeyProviderAlgorithm.ProviderType getProviderType()
Description copied from interface: KeyProviderAlgorithm
Obtains the current provider type for the class implementing the interface

Specified by:
getProviderType in interface KeyProviderAlgorithm
Returns:
the provider type

getPriority

public int getPriority()
Description copied from interface: KeyProviderAlgorithm
Gets this algorithm's priority of usage in handling the key management

Specified by:
getPriority in interface KeyProviderAlgorithm
Returns:
the priority of usage in handling the key management

setPriority

public void setPriority(int priority)
Description copied from interface: KeyProviderAlgorithm
Sets this algorithm's priority of usage in handling the key management

Specified by:
setPriority in interface KeyProviderAlgorithm
Parameters:
priority - the priority of usage in handling the key management

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

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