public class CipherSuite extends Object
Modifier and Type | Method and Description |
---|---|
String |
getAuthType(boolean emphemeral)
Returns auth type constant suitable for calling X509TrustManager.checkServerTrusted.
|
int |
getBlockSize()
Returns cipher block size
|
String |
getBulkEncryptionAlgorithm()
Returns cipher algorithm name
|
static CipherSuite |
getByCode(byte b1,
byte b2)
Returns CipherSuite based on TLS CipherSuite code
|
static CipherSuite |
getByCode(byte b1,
byte b2,
byte b3)
Returns CipherSuite based on V2CipherSpec code
as described in TLS 1.0 spec., E.
|
static CipherSuite |
getByName(String name)
Returns CipherSuite by name
|
static String |
getClientKeyType(byte keyType)
Similar to getServerKeyType, but returns value given TLS
ClientCertificateType byte values from a CertificateRequest
message for use with X509KeyManager.chooseClientAlias or
X509ExtendedKeyManager.chooseEngineClientAlias.
|
String |
getHashName()
Returns hash algorithm name
|
String |
getHmacName()
Returns MAC algorithm name
|
int |
getMACLength()
Returns hash size
|
String |
getName()
Returns cipher suite name
|
String |
getServerKeyType()
Returns key type constant suitable for calling
X509KeyManager.chooseServerAlias or
X509ExtendedKeyManager.chooseEngineServerAlias.
|
static CipherSuite[] |
getSupported()
Returns array of supported CipherSuites
|
static String[] |
getSupportedCipherSuiteNames()
Returns array of supported cipher suites names
|
boolean |
isAnonymous()
Returns true if cipher suite is anonymous
|
boolean |
isExportable()
Indicates whether this cipher suite is exportable
|
byte[] |
toBytes()
Returns cipher suite code as byte array
|
String |
toString()
Returns cipher suite description
|
public static CipherSuite getByName(String name)
public static CipherSuite getByCode(byte b1, byte b2)
public static CipherSuite getByCode(byte b1, byte b2, byte b3)
public boolean isAnonymous()
public static CipherSuite[] getSupported()
public static String[] getSupportedCipherSuiteNames()
public String getName()
public byte[] toBytes()
public String toString()
public String getBulkEncryptionAlgorithm()
public int getBlockSize()
public String getHmacName()
public String getHashName()
public int getMACLength()
public boolean isExportable()
public String getServerKeyType()
public static String getClientKeyType(byte keyType)
public String getAuthType(boolean emphemeral)