Package org.conscrypt
Class CipherSuite
java.lang.Object
org.conscrypt.CipherSuite
public class CipherSuite extends Object
Represents Cipher Suite as defined in TLS 1.0 spec.,
A.5. The CipherSuite;
C. CipherSuite definitions.
- See Also:
- TLS 1.0 spec.
-
Method Summary
Modifier and Type Method Description StringgetAuthType(boolean emphemeral)Returns auth type constant suitable for calling X509TrustManager.checkServerTrusted.intgetBlockSize()Returns cipher block sizeStringgetBulkEncryptionAlgorithm()Returns cipher algorithm namestatic CipherSuitegetByCode(byte b1, byte b2)Returns CipherSuite based on TLS CipherSuite codestatic CipherSuitegetByCode(byte b1, byte b2, byte b3)Returns CipherSuite based on V2CipherSpec code as described in TLS 1.0 spec., E.static CipherSuitegetByName(String name)Returns CipherSuite by namestatic StringgetClientKeyType(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.StringgetHashName()Returns hash algorithm nameStringgetHmacName()Returns MAC algorithm nameintgetMACLength()Returns hash sizeStringgetName()Returns cipher suite nameStringgetServerKeyType()Returns key type constant suitable for calling X509KeyManager.chooseServerAlias or X509ExtendedKeyManager.chooseEngineServerAlias.static CipherSuite[]getSupported()Returns array of supported CipherSuitesstatic String[]getSupportedCipherSuiteNames()Returns array of supported cipher suites namesbooleanisAnonymous()Returns true if cipher suite is anonymousbooleanisExportable()Indicates whether this cipher suite is exportablebyte[]toBytes()Returns cipher suite code as byte arrayStringtoString()Returns cipher suite description
-
Method Details
-
getByName
Returns CipherSuite by name -
getByCode
Returns CipherSuite based on TLS CipherSuite code- See Also:
- TLS 1.0 spec., A.5. The CipherSuite
-
getByCode
Returns CipherSuite based on V2CipherSpec code as described in TLS 1.0 spec., E. Backward Compatibility With SSL -
isAnonymous
public boolean isAnonymous()Returns true if cipher suite is anonymous -
getSupported
Returns array of supported CipherSuites -
getSupportedCipherSuiteNames
Returns array of supported cipher suites names -
getName
Returns cipher suite name -
toBytes
public byte[] toBytes()Returns cipher suite code as byte array -
toString
Returns cipher suite description -
getBulkEncryptionAlgorithm
Returns cipher algorithm name -
getBlockSize
public int getBlockSize()Returns cipher block size -
getHmacName
Returns MAC algorithm name -
getHashName
Returns hash algorithm name -
getMACLength
public int getMACLength()Returns hash size -
isExportable
public boolean isExportable()Indicates whether this cipher suite is exportable -
getServerKeyType
Returns key type constant suitable for calling X509KeyManager.chooseServerAlias or X509ExtendedKeyManager.chooseEngineServerAlias. -
getClientKeyType
Similar to getServerKeyType, but returns value given TLS ClientCertificateType byte values from a CertificateRequest message for use with X509KeyManager.chooseClientAlias or X509ExtendedKeyManager.chooseEngineClientAlias. -
getAuthType
Returns auth type constant suitable for calling X509TrustManager.checkServerTrusted.
-