Package org.bouncycastle.tls
Class SecurityParameters
java.lang.Object
org.bouncycastle.tls.SecurityParameters
Carrier class for general security parameters.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
short
short[]
byte[]
int[]
short
Deprecated.Will be removed.byte[]
byte[]
int
int
byte[]
short
byte[]
int
Deprecated.UsegetPRFAlgorithm()
instead.int
int
int
byte[]
short
byte[]
int[]
byte[]
byte[]
byte[]
int
byte[]
byte[]
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
-
Constructor Details
-
SecurityParameters
public SecurityParameters()
-
-
Method Details
-
getEntity
public int getEntity()- Returns:
ConnectionEnd
-
isResumedSession
public boolean isResumedSession() -
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() -
getConnectionIDLocal
public byte[] getConnectionIDLocal() -
getConnectionIDPeer
public byte[] getConnectionIDPeer() -
getServerSigAlgs
-
getServerSigAlgsCert
-
getServerSupportedGroups
public int[] getServerSupportedGroups() -
getCompressionAlgorithm
public short getCompressionAlgorithm()Deprecated.Will be removed. Use constant CompressionMethod._null instead.- 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
-
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() -
getClientCertificateType
public short getClientCertificateType() -
getServerCertificateType
public short getServerCertificateType()
-