public class SrtpCryptoAttribute extends CryptoAttribute
cryptoSuite, keyParams, sessionParams, tag| Constructor and Description |
|---|
SrtpCryptoAttribute(int tag,
SrtpCryptoSuite cryptoSuite,
SrtpKeyParam[] keyParams,
SrtpSessionParam[] sessionParams)
Creates a crypto attribute from already instantiated objects.
|
| Modifier and Type | Method and Description |
|---|---|
static SrtpCryptoAttribute |
create(String encoded)
Creates an SRTP crypto attribute from its textual representation.
|
static SrtpCryptoAttribute |
create(String tag,
String cryptoSuite,
String keyParams,
String sessionParams)
Creates an instance of a SrtpCryptoAttribute from SDES attributes (tag,
crypto suite, key params and session params).
|
SrtpCryptoSuite |
getCryptoSuite()
Gets the identifier that describes the encryption and authentication
algorithms (e.g., AES_CM_128_HMAC_SHA1_80) for the transport in question.
|
SrtpKeyParam[] |
getKeyParams()
Gets one or more sets of keying material for the crypto-suite in
question.
|
SrtpSessionParam[] |
getSessionParams()
Gets the additional key parameters for this particular crypto attribute.
|
create, create, encode, equals, getKeyParamsString, getSessionParamsString, getTag, hashCodepublic SrtpCryptoAttribute(int tag,
SrtpCryptoSuite cryptoSuite,
SrtpKeyParam[] keyParams,
SrtpSessionParam[] sessionParams)
tag - identifier for this particular crypto attributecryptoSuite - identifier that describes the encryption and
authentication algorithmskeyParams - one or more sets of keying materialsessionParams - the additional key parameterspublic static SrtpCryptoAttribute create(String encoded)
encoded - The textual representation of the attribute.public static SrtpCryptoAttribute create(String tag, String cryptoSuite, String keyParams, String sessionParams)
tag - unparsed tag as a string.cryptoSuite - the crypto suite as an unparsed string.keyParams - An unparsed string representation of the key param list
(each key must be separated by a ";").sessionParams - An unparsed string representation of the session
param list (each key must be separated by a " ").public SrtpCryptoSuite getCryptoSuite()
CryptoAttributegetCryptoSuite in class CryptoAttributepublic SrtpKeyParam[] getKeyParams()
CryptoAttributegetKeyParams in class CryptoAttributepublic SrtpSessionParam[] getSessionParams()
CryptoAttributegetSessionParams in class CryptoAttributeCopyright © 2016 University of Applied Sciences Northwestern Switzerland. All rights reserved.