javax.media.rtp
Class EncryptionInfo

java.lang.Object
  |
  +--javax.media.rtp.EncryptionInfo
All Implemented Interfaces:
java.io.Serializable

public class EncryptionInfo
extends java.lang.Object
implements java.io.Serializable

Class to encapsulate the encryption parameters of an RTP Session.

See Also:
Serialized Form

Field Summary
static int DES
           
static int MD5
           
static int NO_ENCRYPTION
           
static int TRIPLE_DES
           
static int XOR
           
 
Constructor Summary
EncryptionInfo(int type, byte[] key)
           
 
Method Summary
 byte[] getKey()
          Accessor method to get the encryption key this object encapsulates.
 int getType()
          Accessor method to get the type of encryption this object specifies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_ENCRYPTION

public static final int NO_ENCRYPTION
See Also:
Constant Field Values

XOR

public static final int XOR
See Also:
Constant Field Values

MD5

public static final int MD5
See Also:
Constant Field Values

DES

public static final int DES
See Also:
Constant Field Values

TRIPLE_DES

public static final int TRIPLE_DES
See Also:
Constant Field Values
Constructor Detail

EncryptionInfo

public EncryptionInfo(int type,
                      byte[] key)
Method Detail

getType

public int getType()
Accessor method to get the type of encryption this object specifies.

Returns:
The type of encryption this object specifies.


getKey

public byte[] getKey()
Accessor method to get the encryption key this object encapsulates.

Returns:
The encryption key.