Class TlsClientImpl
- java.lang.Object
-
- org.bouncycastle.tls.AbstractTlsPeer
-
- org.bouncycastle.tls.AbstractTlsClient
-
- org.bouncycastle.tls.DefaultTlsClient
-
- org.jitsi.impl.neomedia.transform.dtls.TlsClientImpl
-
- All Implemented Interfaces:
org.bouncycastle.tls.TlsClient,org.bouncycastle.tls.TlsPeer
public class TlsClientImpl extends org.bouncycastle.tls.DefaultTlsClientImplementsTlsClientfor the purposes of supporting DTLS-SRTP.- Author:
- Lyubomir Marinov
-
-
Constructor Summary
Constructors Constructor Description TlsClientImpl(DtlsPacketTransformer packetTransformer)Initializes a new TlsClientImpl instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.tls.TlsAuthenticationgetAuthentication()HashtablegetClientExtensions()Includes the use_srtp extension in the DTLS extended client hello.protected org.bouncycastle.tls.ProtocolVersion[]getSupportedVersions()Always returnsProtocolVersion.DTLSv12.voidnotifyAlertRaised(short alertLevel, short alertDescription, String message, Throwable cause)Forwards topacketTransformer.voidnotifyHandshakeComplete()voidprocessServerExtensions(Hashtable serverExtensions)Makes sure that the DTLS extended server hello contains the use_srtp extension.-
Methods inherited from class org.bouncycastle.tls.AbstractTlsClient
allowUnexpectedServerExtension, checkForUnexpectedServerExtension, getCertificateAuthorities, getCertificateStatusRequest, getCipherSuites, getClientSupplementalData, getDHGroupVerifier, getEarlyKeyShareGroups, getExternalPSKs, getMultiCertStatusRequest, getNamedGroupRoles, getProtocolNames, getProtocolVersions, getPSKIdentity, getSessionToResume, getSNIServerNames, getSRPConfigVerifier, getSRPIdentity, getSupportedGroups, getSupportedSignatureAlgorithms, getSupportedSignatureAlgorithmsCert, getTrustedCAIndication, init, isFallback, notifyHandshakeBeginning, notifyNewSessionTicket, notifySelectedCipherSuite, notifySelectedPSK, notifyServerVersion, notifySessionID, notifySessionToResume, processServerSupplementalData
-
Methods inherited from class org.bouncycastle.tls.AbstractTlsPeer
allowLegacyResumption, cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertReceived, notifyCloseHandle, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTime
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bouncycastle.tls.TlsPeer
allowLegacyResumption, cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertReceived, notifyCloseHandle, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTime
-
-
-
-
Constructor Detail
-
TlsClientImpl
public TlsClientImpl(DtlsPacketTransformer packetTransformer)
Initializes a new TlsClientImpl instance.- Parameters:
packetTransformer- the PacketTransformer which is initializing the new instance
-
-
Method Detail
-
getAuthentication
public org.bouncycastle.tls.TlsAuthentication getAuthentication()
-
getSupportedVersions
protected org.bouncycastle.tls.ProtocolVersion[] getSupportedVersions()
Always returnsProtocolVersion.DTLSv12.- Overrides:
getSupportedVersionsin classorg.bouncycastle.tls.AbstractTlsPeer
-
getClientExtensions
public Hashtable getClientExtensions() throws IOException
Includes the use_srtp extension in the DTLS extended client hello.- Specified by:
getClientExtensionsin interfaceorg.bouncycastle.tls.TlsClient- Overrides:
getClientExtensionsin classorg.bouncycastle.tls.AbstractTlsClient- Throws:
IOException
-
notifyAlertRaised
public void notifyAlertRaised(short alertLevel, short alertDescription, String message, Throwable cause)Forwards topacketTransformer.- Specified by:
notifyAlertRaisedin interfaceorg.bouncycastle.tls.TlsPeer- Overrides:
notifyAlertRaisedin classorg.bouncycastle.tls.AbstractTlsPeer
-
notifyHandshakeComplete
public void notifyHandshakeComplete()
- Specified by:
notifyHandshakeCompletein interfaceorg.bouncycastle.tls.TlsPeer- Overrides:
notifyHandshakeCompletein classorg.bouncycastle.tls.AbstractTlsPeer
-
processServerExtensions
public void processServerExtensions(Hashtable serverExtensions) throws IOException
Makes sure that the DTLS extended server hello contains the use_srtp extension.- Specified by:
processServerExtensionsin interfaceorg.bouncycastle.tls.TlsClient- Overrides:
processServerExtensionsin classorg.bouncycastle.tls.AbstractTlsClient- Throws:
IOException
-
-