fm.liveswitch.sdp.CryptoAttribute Class Reference

This gives the maximum amount of media that can be encapsulated in each packet, expressed as time in milliseconds. More...

Public Member Functions

 CryptoAttribute (int tag, String cryptoSuite)
 Initializes a new instance of the fm.liveswitch.sdp.CryptoAttribute class. More...
 
String getCryptoSuite ()
 Gets the crypto suite. More...
 
fm.liveswitch.DataBuffer getKey ()
 Gets the key from the "inline" key parameter. More...
 
java.util.HashMap< String, String > getKeyParams ()
 Gets the key parameters. More...
 
fm.liveswitch.DataBuffer getSalt ()
 Gets the salt from the "inline" key parameter. More...
 
java.util.ArrayList< String > getSessionParams ()
 Gets the session parameters. More...
 
int getTag ()
 Gets the tag. More...
 
fm.liveswitch.sdp.CryptoAttribute setKeySalt (byte[] key, byte[] salt)
 Sets the key and salt for the "inline" key parameter. More...
 
void setTag (int value)
 Sets the tag. More...
 
- Public Member Functions inherited from fm.liveswitch.sdp.Attribute
fm.liveswitch.sdp.AttributeType getAttributeType ()
 Gets this Attribute's Type. More...
 
fm.liveswitch.sdp.AttributeCategory getMultiplexingCategory ()
 Gets the Multiplexing Category of this Attribute. More...
 
void setAttributeType (fm.liveswitch.sdp.AttributeType value)
 Sets this Attribute's Type. More...
 
String toString ()
 Converts this instance to a string. More...
 

Static Public Member Functions

static fm.liveswitch.sdp.CryptoAttribute fromAttributeValue (String value)
 Initializes a new instance of the fm.liveswitch.sdp.CryptoAttribute class. More...
 
- Static Public Member Functions inherited from fm.liveswitch.sdp.Attribute
static fm.liveswitch.sdp.Attribute createAttribute (String name, String value)
 Creates an attribute. More...
 
static String getTypeName (@SuppressWarnings("rawtypes") Class type)
 Gets the name of the attribute type. More...
 
static boolean isMediaLevel (@SuppressWarnings("rawtypes") Class type)
 Determines whether the type applies to media streams. More...
 
static boolean isSessionLevel (@SuppressWarnings("rawtypes") Class type)
 Determines whether the type applies to sessions. More...
 
static fm.liveswitch.sdp.Attribute parse (String s)
 Creates an fm.liveswitch.sdp.ConnectionData instance from a string. More...
 

Protected Member Functions

String getAttributeValue ()
 Gets the internal value of the attribute. More...
 
- Protected Member Functions inherited from fm.liveswitch.sdp.Attribute
 Attribute ()
 
void setMultiplexingCategory (fm.liveswitch.sdp.AttributeCategory value)
 Sets the Multiplexing Category of this Attribute. More...
 

Detailed Description

This gives the maximum amount of media that can be encapsulated in each packet, expressed as time in milliseconds.

The time SHALL be calculated as the sum of the time the media present in the packet represents. For frame-based codecs, the time SHOULD be an integer multiple of the frame size. This attribute is probably only meaningful for audio data, but may be used with other media types if it makes sense. It is a media-level attribute, and it is not dependent on charset. Note that this attribute was introduced after RFC 2327, and non-updated implementations will ignore this attribute.

Constructor & Destructor Documentation

◆ CryptoAttribute()

fm.liveswitch.sdp.CryptoAttribute.CryptoAttribute ( int  tag,
String  cryptoSuite 
)

Initializes a new instance of the fm.liveswitch.sdp.CryptoAttribute class.

Parameters
tagThe tag.
cryptoSuiteThe crypto suite.

Member Function Documentation

◆ fromAttributeValue()

static fm.liveswitch.sdp.CryptoAttribute fm.liveswitch.sdp.CryptoAttribute.fromAttributeValue ( String  value)
static

Initializes a new instance of the fm.liveswitch.sdp.CryptoAttribute class.

Parameters
valueThe attribute value.

◆ getAttributeValue()

String fm.liveswitch.sdp.CryptoAttribute.getAttributeValue ( )
protected

Gets the internal value of the attribute.

Reimplemented from fm.liveswitch.sdp.Attribute.

◆ getCryptoSuite()

String fm.liveswitch.sdp.CryptoAttribute.getCryptoSuite ( )

Gets the crypto suite.

See fm.liveswitch.sdp.CryptoAttribute#getCryptoSuite for possible values.

◆ getKey()

fm.liveswitch.DataBuffer fm.liveswitch.sdp.CryptoAttribute.getKey ( )

Gets the key from the "inline" key parameter.

◆ getKeyParams()

java.util.HashMap<String,String> fm.liveswitch.sdp.CryptoAttribute.getKeyParams ( )

Gets the key parameters.

◆ getSalt()

fm.liveswitch.DataBuffer fm.liveswitch.sdp.CryptoAttribute.getSalt ( )

Gets the salt from the "inline" key parameter.

◆ getSessionParams()

java.util.ArrayList<String> fm.liveswitch.sdp.CryptoAttribute.getSessionParams ( )

Gets the session parameters.

◆ getTag()

int fm.liveswitch.sdp.CryptoAttribute.getTag ( )

Gets the tag.

◆ setKeySalt()

fm.liveswitch.sdp.CryptoAttribute fm.liveswitch.sdp.CryptoAttribute.setKeySalt ( byte[]  key,
byte[]  salt 
)

Sets the key and salt for the "inline" key parameter.

Parameters
keyThe key.
saltThe salt.

◆ setTag()

void fm.liveswitch.sdp.CryptoAttribute.setTag ( int  value)

Sets the tag.