Package org.bouncycastle.tls
Class SecurityParameters
java.lang.Object
org.bouncycastle.tls.SecurityParameters
Carrier class for general security parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
short[]
byte[]
int[]
short
int
int
byte[]
short
byte[]
int
Deprecated.int
int
short
Deprecated.UsegetPRFCryptoHashAlgorithm()
instead.int
byte[]
byte[]
int[]
byte[]
byte[]
byte[]
int
byte[]
byte[]
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
-
Constructor Details
-
SecurityParameters
public SecurityParameters()
-
-
Method Details
-
getEntity
public int getEntity()- Returns:
ConnectionEnd
-
isRenegotiating
public boolean isRenegotiating() -
isSecureRenegotiation
public boolean isSecureRenegotiation() -
getCipherSuite
public int getCipherSuite()- Returns:
CipherSuite
-
getClientCertTypes
public short[] getClientCertTypes() -
getClientServerNames
-
getClientSigAlgs
-
getClientSigAlgsCert
-
getClientSupportedGroups
public int[] getClientSupportedGroups() -
getServerSigAlgs
-
getServerSigAlgsCert
-
getServerSupportedGroups
public int[] getServerSupportedGroups() -
getCompressionAlgorithm
public short getCompressionAlgorithm()- Returns:
CompressionMethod
-
getMaxFragmentLength
public short getMaxFragmentLength()- Returns:
MaxFragmentLength
, or -1 if none
-
getPrfAlgorithm
public int getPrfAlgorithm()Deprecated.UsegetPRFAlgorithm()
instead. -
getPRFAlgorithm
public int getPRFAlgorithm()- Returns:
PRFAlgorithm
-
getPRFCryptoHashAlgorithm
public int getPRFCryptoHashAlgorithm()- Returns:
CryptoHashAlgorithm
for the currentPRFAlgorithm
-
getPRFHashAlgorithm
public short getPRFHashAlgorithm()Deprecated.UsegetPRFCryptoHashAlgorithm()
instead.- Returns:
HashAlgorithm
for the currentPRFAlgorithm
-
getPRFHashLength
public int getPRFHashLength() -
getVerifyDataLength
public int getVerifyDataLength() -
getBaseKeyClient
-
getBaseKeyServer
-
getEarlyExporterMasterSecret
-
getEarlySecret
-
getExporterMasterSecret
-
getHandshakeSecret
-
getMasterSecret
-
getTrafficSecretClient
-
getTrafficSecretServer
-
getClientRandom
public byte[] getClientRandom() -
getServerRandom
public byte[] getServerRandom() -
getSessionHash
public byte[] getSessionHash() -
getSessionID
public byte[] getSessionID() -
getPSKIdentity
public byte[] getPSKIdentity() -
getSRPIdentity
public byte[] getSRPIdentity() -
getTLSServerEndPoint
public byte[] getTLSServerEndPoint() -
getTLSUnique
public byte[] getTLSUnique() -
isEncryptThenMAC
public boolean isEncryptThenMAC() -
isExtendedMasterSecret
public boolean isExtendedMasterSecret() -
isExtendedPadding
public boolean isExtendedPadding() -
isTruncatedHMac
public boolean isTruncatedHMac() -
getApplicationProtocol
-
isApplicationProtocolSet
public boolean isApplicationProtocolSet() -
getLocalVerifyData
public byte[] getLocalVerifyData() -
getPeerVerifyData
public byte[] getPeerVerifyData() -
getKeyExchangeAlgorithm
public int getKeyExchangeAlgorithm() -
getLocalCertificate
-
getPeerCertificate
-
getNegotiatedVersion
-
getStatusRequestVersion
public int getStatusRequestVersion()
-
getPRFAlgorithm()
instead.