public interface TlsServer extends TlsPeer
getCipher, getCompression, notifyAlertRaised, notifyAlertReceived, notifyHandshakeComplete, notifySecureRenegotiation, shouldUseGMTUnixTime
void init(TlsServerContext context)
void notifyClientVersion(ProtocolVersion clientVersion) throws IOException
IOException
void notifyFallback(boolean isFallback) throws IOException
IOException
void notifyOfferedCipherSuites(int[] offeredCipherSuites) throws IOException
IOException
void notifyOfferedCompressionMethods(short[] offeredCompressionMethods) throws IOException
IOException
void processClientExtensions(Hashtable clientExtensions) throws IOException
IOException
ProtocolVersion getServerVersion() throws IOException
IOException
int getSelectedCipherSuite() throws IOException
IOException
short getSelectedCompressionMethod() throws IOException
IOException
Hashtable getServerExtensions() throws IOException
IOException
Vector getServerSupplementalData() throws IOException
IOException
TlsCredentials getCredentials() throws IOException
IOException
CertificateStatus getCertificateStatus() throws IOException
CertificateStatus
is returned, it
is sent to the client as a handshake message of type "certificate_status".CertificateStatus
to be sent to the client (or null for none).IOException
TlsKeyExchange getKeyExchange() throws IOException
IOException
CertificateRequest getCertificateRequest() throws IOException
IOException
void processClientSupplementalData(Vector clientSupplementalData) throws IOException
IOException
void notifyClientCertificate(Certificate clientCertificate) throws IOException
getCertificateRequest()
returned non-null.
Note: this method is responsible for certificate verification and validation.clientCertificate
- the effective client certificate (may be an empty chain).IOException
NewSessionTicket getNewSessionTicket() throws IOException
This 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.
IOException
Copyright © 2016 BouncyCastle.org. All rights reserved.