public class SrtpSDesFactory extends Object implements SDesFactory
| Constructor and Description |
|---|
SrtpSDesFactory() |
| Modifier and Type | Method and Description |
|---|---|
SrtpCryptoAttribute |
createCryptoAttribute()
Creates an empty crypto attribute for the grammar implementing this interface.
|
SrtpCryptoAttribute |
createCryptoAttribute(int tag,
String keyAlg)
Creates an SRTP crypto attribute with the specified parameters, for use in an SDP.
|
SrtpCryptoAttribute |
createCryptoAttribute(int tag,
String keyAlg,
SrtpSessionParam[] params)
Creates an SRTP crypto attribute with the specified parameters, for use in an SDP.
|
SrtpCryptoSuite |
createCryptoSuite(String suite)
Creates a crypto suite instance for the grammar implementing this interface.
|
SrtpKeyParam |
createKeyParam(String keyParam)
Creates a key parameter instance for the grammar implementing this interface.
|
SrtpKeyParam[] |
createKeyParamArray(int size)
Utility method to create a typed array of
KeyParameters. |
SrtpSessionParam |
createSessionParam(String sessionParam)
Creates a session parameter instance for the grammar implementing this interface.
|
SrtpSessionParam[] |
createSessionParamArray(int size)
Utility method to create a typed array of
SessionParams. |
void |
setRandomGenerator(Random r)
Sets the random number generator to be used for generating the SDES keys.
|
public SrtpCryptoAttribute createCryptoAttribute(int tag, String keyAlg)
If no random generator is set with setRandomGenerator(Random) then the
SHA1PRNG, or if not available, the system's default SecureRandom will be used.
tag - decimal number used as an identifier for a particular crypto attributekeyAlg - identifier that describes the encryption and authentication algorithmspublic SrtpCryptoAttribute createCryptoAttribute(int tag, String keyAlg, SrtpSessionParam[] params)
tag - decimal number used as an identifier for a particular crypto attributekeyAlg - identifier that describes the encryption and authentication algorithmsparams - Session parameters for the crypto attributepublic void setRandomGenerator(Random r)
SDesFactorysetRandomGenerator in interface SDesFactoryr - The random number generator.public SrtpCryptoAttribute createCryptoAttribute()
SDesFactorycreateCryptoAttribute in interface SDesFactorypublic SrtpCryptoSuite createCryptoSuite(String suite)
SDesFactorycreateCryptoSuite in interface SDesFactorysuite - The suite name that defines the cryptographic parameters.public SrtpKeyParam createKeyParam(String keyParam)
SDesFactorycreateKeyParam in interface SDesFactorykeyParam - The textual representation of the key parameter field.public SrtpKeyParam[] createKeyParamArray(int size)
SDesFactoryKeyParameters.createKeyParamArray in interface SDesFactorysize - The size of the array to create.public SrtpSessionParam createSessionParam(String sessionParam)
SDesFactorycreateSessionParam in interface SDesFactorysessionParam - The textual representation of the session parameter.public SrtpSessionParam[] createSessionParamArray(int size)
SDesFactorySessionParams.createSessionParamArray in interface SDesFactorysize - The size of the array to create.Copyright © 2016 University of Applied Sciences Northwestern Switzerland. All rights reserved.