Package ch.imvs.sdes4j.srtp
Class SrtpCryptoSuite
- java.lang.Object
-
- ch.imvs.sdes4j.srtp.SrtpCryptoSuite
-
- All Implemented Interfaces:
CryptoSuite
public class SrtpCryptoSuite extends java.lang.Object implements CryptoSuite
Crypto suite details for the SRTP grammar.- Author:
- Ingo Bauersachs
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AES_192_CM_HMAC_SHA1_32
static java.lang.String
AES_192_CM_HMAC_SHA1_80
static java.lang.String
AES_256_CM_HMAC_SHA1_32
static java.lang.String
AES_256_CM_HMAC_SHA1_80
static java.lang.String
AES_CM_128_HMAC_SHA1_32
static java.lang.String
AES_CM_128_HMAC_SHA1_80
static int
ENCRYPTION_AES128_CM
static int
ENCRYPTION_AES128_F8
static int
ENCRYPTION_AES192_CM
static int
ENCRYPTION_AES256_CM
static int
ENCRYPTION_SEED128_CCM_80
static int
ENCRYPTION_SEED128_CTR
static int
ENCRYPTION_SEED128_GCM_96
static java.lang.String
F8_128_HMAC_SHA1_80
static int
HASH_HMAC_SHA1
static int
HASH_SEED128_CCM_80
static int
HASH_SEED128_GCM_96
static java.lang.String
SEED_128_CCM_80
static java.lang.String
SEED_128_GCM_96
static java.lang.String
SEED_CTR_128_HMAC_SHA1_80
-
Constructor Summary
Constructors Constructor Description SrtpCryptoSuite(java.lang.String suite)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
encode()
Encodes the information contained in this object for use in the complete crypto attribute.boolean
equals(java.lang.Object obj)
int
getEncKeyLength()
int
getEncryptionAlgorithm()
int
getHashAlgorithm()
int
getSaltKeyLength()
int
getSrtcpAuthKeyLength()
int
getSrtcpAuthTagLength()
long
getSrtcpLifetime()
int
getSrtpAuthKeyLength()
int
getSrtpAuthTagLength()
long
getSrtpLifetime()
int
hashCode()
-
-
-
Field Detail
-
AES_256_CM_HMAC_SHA1_32
public static final java.lang.String AES_256_CM_HMAC_SHA1_32
- See Also:
- Constant Field Values
-
AES_256_CM_HMAC_SHA1_80
public static final java.lang.String AES_256_CM_HMAC_SHA1_80
- See Also:
- Constant Field Values
-
AES_192_CM_HMAC_SHA1_32
public static final java.lang.String AES_192_CM_HMAC_SHA1_32
- See Also:
- Constant Field Values
-
AES_192_CM_HMAC_SHA1_80
public static final java.lang.String AES_192_CM_HMAC_SHA1_80
- See Also:
- Constant Field Values
-
SEED_128_GCM_96
public static final java.lang.String SEED_128_GCM_96
- See Also:
- Constant Field Values
-
SEED_128_CCM_80
public static final java.lang.String SEED_128_CCM_80
- See Also:
- Constant Field Values
-
SEED_CTR_128_HMAC_SHA1_80
public static final java.lang.String SEED_CTR_128_HMAC_SHA1_80
- See Also:
- Constant Field Values
-
F8_128_HMAC_SHA1_80
public static final java.lang.String F8_128_HMAC_SHA1_80
- See Also:
- Constant Field Values
-
AES_CM_128_HMAC_SHA1_32
public static final java.lang.String AES_CM_128_HMAC_SHA1_32
- See Also:
- Constant Field Values
-
AES_CM_128_HMAC_SHA1_80
public static final java.lang.String AES_CM_128_HMAC_SHA1_80
- See Also:
- Constant Field Values
-
ENCRYPTION_AES128_CM
public static final int ENCRYPTION_AES128_CM
- See Also:
- Constant Field Values
-
ENCRYPTION_AES128_F8
public static final int ENCRYPTION_AES128_F8
- See Also:
- Constant Field Values
-
ENCRYPTION_SEED128_CTR
public static final int ENCRYPTION_SEED128_CTR
- See Also:
- Constant Field Values
-
ENCRYPTION_SEED128_CCM_80
public static final int ENCRYPTION_SEED128_CCM_80
- See Also:
- Constant Field Values
-
ENCRYPTION_SEED128_GCM_96
public static final int ENCRYPTION_SEED128_GCM_96
- See Also:
- Constant Field Values
-
ENCRYPTION_AES192_CM
public static final int ENCRYPTION_AES192_CM
- See Also:
- Constant Field Values
-
ENCRYPTION_AES256_CM
public static final int ENCRYPTION_AES256_CM
- See Also:
- Constant Field Values
-
HASH_HMAC_SHA1
public static final int HASH_HMAC_SHA1
- See Also:
- Constant Field Values
-
HASH_SEED128_CCM_80
public static final int HASH_SEED128_CCM_80
- See Also:
- Constant Field Values
-
HASH_SEED128_GCM_96
public static final int HASH_SEED128_GCM_96
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEncryptionAlgorithm
public int getEncryptionAlgorithm()
-
getHashAlgorithm
public int getHashAlgorithm()
-
getEncKeyLength
public int getEncKeyLength()
-
getSaltKeyLength
public int getSaltKeyLength()
-
getSrtpAuthTagLength
public int getSrtpAuthTagLength()
-
getSrtcpAuthTagLength
public int getSrtcpAuthTagLength()
-
getSrtpAuthKeyLength
public int getSrtpAuthKeyLength()
-
getSrtcpAuthKeyLength
public int getSrtcpAuthKeyLength()
-
getSrtpLifetime
public long getSrtpLifetime()
-
getSrtcpLifetime
public long getSrtcpLifetime()
-
encode
public java.lang.String encode()
Description copied from interface:CryptoSuite
Encodes the information contained in this object for use in the complete crypto attribute.- Specified by:
encode
in interfaceCryptoSuite
- Returns:
- The name of the crypto suite.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-