public class TlsServerImpl
extends org.bouncycastle.tls.DefaultTlsServer
TlsServer for the purposes of supporting DTLS-SRTP.certificateStatusRequest, cipherSuites, clientExtensions, clientProtocolNames, clientSentECPointFormats, context, encryptThenMACOffered, maxFragmentLengthOffered, offeredCipherSuites, protocolVersions, selectedCipherSuite, selectedProtocolName, serverExtensions, statusRequestV2, truncatedHMacOffered, trustedCAKeys| Constructor and Description |
|---|
TlsServerImpl(DtlsPacketTransformer packetTransformer)
Initializes a new TlsServerImpl instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.tls.CertificateRequest |
getCertificateRequest() |
int[] |
getCipherSuites()
Overrides the super implementation to explicitly specify cipher suites
which we know to be supported by Bouncy Castle and provide Perfect
Forward Secrecy.
|
Hashtable |
getServerExtensions()
Includes the use_srtp extension in the DTLS extended server
hello.
|
void |
notifyAlertRaised(short alertLevel,
short alertDescription,
String message,
Throwable cause)
Forwards to
packetTransformer. |
void |
notifyClientCertificate(org.bouncycastle.tls.Certificate clientCertificate) |
void |
notifyHandshakeComplete() |
void |
processClientExtensions(Hashtable clientExtensions)
Makes sure that the DTLS extended client hello contains the
use_srtp extension.
|
getCredentials, getDSASignerCredentials, getECDSASignerCredentials, getRSAEncryptionCredentials, getRSASignerCredentials, getSupportedCipherSuitesallowCertificateStatus, allowEncryptThenMAC, allowMultiCertStatus, allowTruncatedHMac, allowTrustedCAIndication, checkServerExtensions, getCertificateStatus, getDHConfig, getECDHConfig, getMaximumNegotiableCurveBits, getMaximumNegotiableFiniteFieldBits, getNewSessionID, getNewSessionTicket, getProtocolNames, getProtocolVersions, getPSKIdentityManager, getSelectedCipherSuite, getServerExtensionsForConnection, getServerSupplementalData, getServerVersion, getSessionToResume, getSRPLoginParameters, getSupportedGroups, init, isSelectableCipherSuite, notifyClientVersion, notifyFallback, notifyHandshakeBeginning, notifyOfferedCipherSuites, notifySession, preferLocalCipherSuites, processClientSupplementalData, selectCipherSuite, selectDH, selectDHDefault, selectECDH, selectECDHDefault, selectProtocolName, selectProtocolName, shouldSelectProtocolNameEarlyallowLegacyResumption, cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getRenegotiationPolicy, getSupportedVersions, 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 TlsServerImpl(DtlsPacketTransformer packetTransformer)
packetTransformer - the PacketTransformer which is
initializing the new instancepublic org.bouncycastle.tls.CertificateRequest getCertificateRequest()
getCertificateRequest in interface org.bouncycastle.tls.TlsServergetCertificateRequest in class org.bouncycastle.tls.AbstractTlsServerpublic int[] getCipherSuites()
getCipherSuites in interface org.bouncycastle.tls.TlsPeergetCipherSuites in class org.bouncycastle.tls.AbstractTlsServerpublic Hashtable getServerExtensions() throws IOException
getServerExtensions in interface org.bouncycastle.tls.TlsServergetServerExtensions in class org.bouncycastle.tls.AbstractTlsServerIOExceptionpublic 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 notifyClientCertificate(org.bouncycastle.tls.Certificate clientCertificate)
throws IOException
notifyClientCertificate in interface org.bouncycastle.tls.TlsServernotifyClientCertificate in class org.bouncycastle.tls.AbstractTlsServerIOExceptionpublic void processClientExtensions(Hashtable clientExtensions) throws IOException
processClientExtensions in interface org.bouncycastle.tls.TlsServerprocessClientExtensions in class org.bouncycastle.tls.AbstractTlsServerIOExceptionCopyright © 2022 jitsi.org. All rights reserved.