public abstract class AbstractTlsServer extends AbstractTlsPeer implements TlsServer
| Modifier and Type | Field and Description |
|---|---|
protected TlsCipherFactory |
cipherFactory |
protected short[] |
clientECPointFormats |
protected Hashtable |
clientExtensions |
protected ProtocolVersion |
clientVersion |
protected TlsServerContext |
context |
protected boolean |
eccCipherSuitesOffered |
protected boolean |
encryptThenMACOffered |
protected short |
maxFragmentLengthOffered |
protected int[] |
namedCurves |
protected int[] |
offeredCipherSuites |
protected short[] |
offeredCompressionMethods |
protected int |
selectedCipherSuite |
protected short |
selectedCompressionMethod |
protected short[] |
serverECPointFormats |
protected Hashtable |
serverExtensions |
protected ProtocolVersion |
serverVersion |
protected Vector |
supportedSignatureAlgorithms |
protected boolean |
truncatedHMacOffered |
| Constructor and Description |
|---|
AbstractTlsServer() |
AbstractTlsServer(TlsCipherFactory cipherFactory) |
notifyAlertRaised, notifyAlertReceived, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, shouldUseGMTUnixTimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCredentials, getKeyExchangenotifyAlertRaised, notifyAlertReceived, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, shouldUseGMTUnixTimeprotected TlsCipherFactory cipherFactory
protected TlsServerContext context
protected ProtocolVersion clientVersion
protected int[] offeredCipherSuites
protected short[] offeredCompressionMethods
protected Hashtable clientExtensions
protected boolean encryptThenMACOffered
protected short maxFragmentLengthOffered
protected boolean truncatedHMacOffered
protected Vector supportedSignatureAlgorithms
protected boolean eccCipherSuitesOffered
protected int[] namedCurves
protected short[] clientECPointFormats
protected short[] serverECPointFormats
protected ProtocolVersion serverVersion
protected int selectedCipherSuite
protected short selectedCompressionMethod
protected Hashtable serverExtensions
public AbstractTlsServer()
public AbstractTlsServer(TlsCipherFactory cipherFactory)
protected boolean allowEncryptThenMAC()
protected boolean allowTruncatedHMac()
protected Hashtable checkServerExtensions()
protected abstract int[] getCipherSuites()
protected short[] getCompressionMethods()
protected ProtocolVersion getMaximumVersion()
protected ProtocolVersion getMinimumVersion()
protected boolean supportsClientECCCapabilities(int[] namedCurves,
short[] ecPointFormats)
public void init(TlsServerContext context)
public void notifyClientVersion(ProtocolVersion clientVersion) throws IOException
notifyClientVersion in interface TlsServerIOExceptionpublic void notifyFallback(boolean isFallback)
throws IOException
notifyFallback in interface TlsServerIOExceptionpublic void notifyOfferedCipherSuites(int[] offeredCipherSuites)
throws IOException
notifyOfferedCipherSuites in interface TlsServerIOExceptionpublic void notifyOfferedCompressionMethods(short[] offeredCompressionMethods)
throws IOException
notifyOfferedCompressionMethods in interface TlsServerIOExceptionpublic void processClientExtensions(Hashtable clientExtensions) throws IOException
processClientExtensions in interface TlsServerIOExceptionpublic ProtocolVersion getServerVersion() throws IOException
getServerVersion in interface TlsServerIOExceptionpublic int getSelectedCipherSuite()
throws IOException
getSelectedCipherSuite in interface TlsServerIOExceptionpublic short getSelectedCompressionMethod()
throws IOException
getSelectedCompressionMethod in interface TlsServerIOExceptionpublic Hashtable getServerExtensions() throws IOException
getServerExtensions in interface TlsServerIOExceptionpublic Vector getServerSupplementalData() throws IOException
getServerSupplementalData in interface TlsServerIOExceptionpublic CertificateStatus getCertificateStatus() throws IOException
TlsServerCertificateStatus is returned, it
is sent to the client as a handshake message of type "certificate_status".getCertificateStatus in interface TlsServerCertificateStatus to be sent to the client (or null for none).IOExceptionpublic CertificateRequest getCertificateRequest() throws IOException
getCertificateRequest in interface TlsServerIOExceptionpublic void processClientSupplementalData(Vector clientSupplementalData) throws IOException
processClientSupplementalData in interface TlsServerIOExceptionpublic void notifyClientCertificate(Certificate clientCertificate) throws IOException
TlsServerTlsServer.getCertificateRequest() returned non-null.
Note: this method is responsible for certificate verification and validation.notifyClientCertificate in interface TlsServerclientCertificate - the effective client certificate (may be an empty chain).IOExceptionpublic TlsCompression getCompression() throws IOException
getCompression in interface TlsPeerIOExceptionpublic TlsCipher getCipher() throws IOException
getCipher in interface TlsPeerIOExceptionpublic NewSessionTicket getNewSessionTicket() throws IOException
TlsServerThis method will be called (only) if a NewSessionTicket extension was sent by the server. See RFC 5077 4. Recommended Ticket Construction for recommended format and protection.
getNewSessionTicket in interface TlsServerIOExceptionCopyright © 2015–2019 The veraPDF Consortium. All rights reserved.