org.bouncycastle.crypto.tls
Interface TlsServer
- All Superinterfaces:
- TlsPeer
- All Known Implementing Classes:
- AbstractTlsServer, DefaultTlsServer
public interface TlsServer
- extends TlsPeer
init
void init(TlsServerContext context)
notifyClientVersion
void notifyClientVersion(ProtocolVersion clientVersion)
throws java.io.IOException
- Throws:
java.io.IOException
notifyOfferedCipherSuites
void notifyOfferedCipherSuites(int[] offeredCipherSuites)
throws java.io.IOException
- Throws:
java.io.IOException
notifyOfferedCompressionMethods
void notifyOfferedCompressionMethods(short[] offeredCompressionMethods)
throws java.io.IOException
- Throws:
java.io.IOException
notifySecureRenegotiation
void notifySecureRenegotiation(boolean secureNegotiation)
throws java.io.IOException
- Throws:
java.io.IOException
processClientExtensions
void processClientExtensions(java.util.Hashtable clientExtensions)
throws java.io.IOException
- Throws:
java.io.IOException
getServerVersion
ProtocolVersion getServerVersion()
throws java.io.IOException
- Throws:
java.io.IOException
getSelectedCipherSuite
int getSelectedCipherSuite()
throws java.io.IOException
- Throws:
java.io.IOException
getSelectedCompressionMethod
short getSelectedCompressionMethod()
throws java.io.IOException
- Throws:
java.io.IOException
getServerExtensions
java.util.Hashtable getServerExtensions()
throws java.io.IOException
- Throws:
java.io.IOException
getServerSupplementalData
java.util.Vector getServerSupplementalData()
throws java.io.IOException
- Throws:
java.io.IOException
getCredentials
TlsCredentials getCredentials()
throws java.io.IOException
- Throws:
java.io.IOException
getKeyExchange
TlsKeyExchange getKeyExchange()
throws java.io.IOException
- Throws:
java.io.IOException
getCertificateRequest
CertificateRequest getCertificateRequest()
processClientSupplementalData
void processClientSupplementalData(java.util.Vector clientSupplementalData)
throws java.io.IOException
- Throws:
java.io.IOException
notifyClientCertificate
void notifyClientCertificate(Certificate clientCertificate)
throws java.io.IOException
- Called by the protocol handler to report the client certificate, only if a Certificate
getCertificateRequest()
returned non-null. Note: this method is responsible for
certificate verification and validation.
- Parameters:
clientCertificate
- the effective client certificate (may be an empty chain).
- Throws:
java.io.IOException
getCompression
TlsCompression getCompression()
throws java.io.IOException
- Throws:
java.io.IOException
getCipher
TlsCipher getCipher()
throws java.io.IOException
- Throws:
java.io.IOException
getNewSessionTicket
NewSessionTicket getNewSessionTicket()
throws java.io.IOException
- RFC 5077 3.3. NewSessionTicket Handshake Message.
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.
- Returns:
- The ticket.
- Throws:
java.io.IOException
notifyHandshakeComplete
void notifyHandshakeComplete()
throws java.io.IOException
- Throws:
java.io.IOException