public class TlsClientImpl
extends org.bouncycastle.tls.DefaultTlsClient
TlsClient for the purposes of supporting DTLS-SRTP.| Constructor and Description |
|---|
TlsClientImpl(DtlsPacketTransformer packetTransformer)
Initializes a new TlsClientImpl instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.tls.TlsAuthentication |
getAuthentication() |
Hashtable |
getClientExtensions()
Includes the use_srtp extension in the DTLS extended client
hello.
|
protected org.bouncycastle.tls.ProtocolVersion[] |
getSupportedVersions()
Always returns
ProtocolVersion.DTLSv12. |
void |
notifyAlertRaised(short alertLevel,
short alertDescription,
String message,
Throwable cause)
Forwards to
packetTransformer. |
void |
notifyHandshakeComplete() |
void |
processServerExtensions(Hashtable serverExtensions)
Makes sure that the DTLS extended server hello contains the
use_srtp extension.
|
allowUnexpectedServerExtension, checkForUnexpectedServerExtension, getCertificateAuthorities, getCertificateStatusRequest, getCipherSuites, getClientSupplementalData, getDHGroupVerifier, getEarlyKeyShareGroups, getMultiCertStatusRequest, getNamedGroupRoles, getProtocolNames, getProtocolVersions, getPSKIdentity, getSessionToResume, getSNIServerNames, getSRPConfigVerifier, getSRPIdentity, getSupportedGroups, getSupportedSignatureAlgorithms, getSupportedSignatureAlgorithmsCert, getTrustedCAIndication, init, isFallback, notifyHandshakeBeginning, notifyNewSessionTicket, notifySelectedCipherSuite, notifyServerVersion, notifySessionID, notifySessionToResume, processServerSupplementalDataallowLegacyResumption, cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getRenegotiationPolicy, notifyAlertReceived, notifyCloseHandle, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallowLegacyResumption, cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getRenegotiationPolicy, notifyAlertReceived, notifyCloseHandle, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTimepublic TlsClientImpl(DtlsPacketTransformer packetTransformer)
packetTransformer - the PacketTransformer which is
initializing the new instancepublic org.bouncycastle.tls.TlsAuthentication getAuthentication()
protected org.bouncycastle.tls.ProtocolVersion[] getSupportedVersions()
ProtocolVersion.DTLSv12.getSupportedVersions in class org.bouncycastle.tls.AbstractTlsPeerpublic Hashtable getClientExtensions() throws IOException
getClientExtensions in interface org.bouncycastle.tls.TlsClientgetClientExtensions in class org.bouncycastle.tls.AbstractTlsClientIOExceptionpublic void notifyAlertRaised(short alertLevel,
short alertDescription,
String message,
Throwable cause)
packetTransformer.notifyAlertRaised in interface org.bouncycastle.tls.TlsPeernotifyAlertRaised in class org.bouncycastle.tls.AbstractTlsPeerpublic void notifyHandshakeComplete()
notifyHandshakeComplete in interface org.bouncycastle.tls.TlsPeernotifyHandshakeComplete in class org.bouncycastle.tls.AbstractTlsPeerpublic void processServerExtensions(Hashtable serverExtensions) throws IOException
processServerExtensions in interface org.bouncycastle.tls.TlsClientprocessServerExtensions in class org.bouncycastle.tls.AbstractTlsClientIOExceptionCopyright © 2022 jitsi.org. All rights reserved.