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.StringAES_192_CM_HMAC_SHA1_32static java.lang.StringAES_192_CM_HMAC_SHA1_80static java.lang.StringAES_256_CM_HMAC_SHA1_32static java.lang.StringAES_256_CM_HMAC_SHA1_80static java.lang.StringAES_CM_128_HMAC_SHA1_32static java.lang.StringAES_CM_128_HMAC_SHA1_80static intENCRYPTION_AES128_CMstatic intENCRYPTION_AES128_F8static intENCRYPTION_AES192_CMstatic intENCRYPTION_AES256_CMstatic intENCRYPTION_SEED128_CCM_80static intENCRYPTION_SEED128_CTRstatic intENCRYPTION_SEED128_GCM_96static java.lang.StringF8_128_HMAC_SHA1_80static intHASH_HMAC_SHA1static intHASH_SEED128_CCM_80static intHASH_SEED128_GCM_96static java.lang.StringSEED_128_CCM_80static java.lang.StringSEED_128_GCM_96static java.lang.StringSEED_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.Stringencode()Encodes the information contained in this object for use in the complete crypto attribute.booleanequals(java.lang.Object obj)intgetEncKeyLength()intgetEncryptionAlgorithm()intgetHashAlgorithm()intgetSaltKeyLength()intgetSrtcpAuthKeyLength()intgetSrtcpAuthTagLength()longgetSrtcpLifetime()intgetSrtpAuthKeyLength()intgetSrtpAuthTagLength()longgetSrtpLifetime()inthashCode()
-
-
-
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:CryptoSuiteEncodes the information contained in this object for use in the complete crypto attribute.- Specified by:
encodein interfaceCryptoSuite- Returns:
- The name of the crypto suite.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-