public interface TlsServer extends TlsPeer
Modifier and Type | Method and Description |
---|---|
CertificateRequest |
getCertificateRequest() |
CertificateStatus |
getCertificateStatus()
This method will be called (only) if the server included an extension of type
"status_request" with empty "extension_data" in the extended server hello.
|
TlsCredentials |
getCredentials() |
TlsKeyExchange |
getKeyExchange() |
NewSessionTicket |
getNewSessionTicket()
RFC 5077 3.3.
|
int |
getSelectedCipherSuite() |
short |
getSelectedCompressionMethod() |
java.util.Hashtable |
getServerExtensions() |
java.util.Vector |
getServerSupplementalData() |
ProtocolVersion |
getServerVersion() |
void |
init(TlsServerContext context) |
void |
notifyClientCertificate(Certificate clientCertificate)
Called by the protocol handler to report the client certificate, only if
getCertificateRequest() returned non-null. |
void |
notifyClientVersion(ProtocolVersion clientVersion) |
void |
notifyFallback(boolean isFallback) |
void |
notifyOfferedCipherSuites(int[] offeredCipherSuites) |
void |
notifyOfferedCompressionMethods(short[] offeredCompressionMethods) |
void |
processClientExtensions(java.util.Hashtable clientExtensions) |
void |
processClientSupplementalData(java.util.Vector clientSupplementalData) |
getCipher, getCompression, notifyAlertRaised, notifyAlertReceived, notifyHandshakeComplete, notifySecureRenegotiation, shouldUseGMTUnixTime
void init(TlsServerContext context)
void notifyClientVersion(ProtocolVersion clientVersion) throws java.io.IOException
java.io.IOException
void notifyFallback(boolean isFallback) throws java.io.IOException
java.io.IOException
void notifyOfferedCipherSuites(int[] offeredCipherSuites) throws java.io.IOException
java.io.IOException
void notifyOfferedCompressionMethods(short[] offeredCompressionMethods) throws java.io.IOException
java.io.IOException
void processClientExtensions(java.util.Hashtable clientExtensions) throws java.io.IOException
java.io.IOException
ProtocolVersion getServerVersion() throws java.io.IOException
java.io.IOException
int getSelectedCipherSuite() throws java.io.IOException
java.io.IOException
short getSelectedCompressionMethod() throws java.io.IOException
java.io.IOException
java.util.Hashtable getServerExtensions() throws java.io.IOException
java.io.IOException
java.util.Vector getServerSupplementalData() throws java.io.IOException
java.io.IOException
TlsCredentials getCredentials() throws java.io.IOException
java.io.IOException
CertificateStatus getCertificateStatus() throws java.io.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).java.io.IOException
TlsKeyExchange getKeyExchange() throws java.io.IOException
java.io.IOException
CertificateRequest getCertificateRequest() throws java.io.IOException
java.io.IOException
void processClientSupplementalData(java.util.Vector clientSupplementalData) throws java.io.IOException
java.io.IOException
void notifyClientCertificate(Certificate clientCertificate) throws java.io.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).java.io.IOException
NewSessionTicket getNewSessionTicket() throws java.io.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.
java.io.IOException