diff options
Diffstat (limited to 'src/main/java/org/bouncycastle/crypto/tls/TlsServer.java')
-rw-r--r-- | src/main/java/org/bouncycastle/crypto/tls/TlsServer.java | 67 |
1 files changed, 43 insertions, 24 deletions
diff --git a/src/main/java/org/bouncycastle/crypto/tls/TlsServer.java b/src/main/java/org/bouncycastle/crypto/tls/TlsServer.java index 96a98ff9..888c70a8 100644 --- a/src/main/java/org/bouncycastle/crypto/tls/TlsServer.java +++ b/src/main/java/org/bouncycastle/crypto/tls/TlsServer.java @@ -4,67 +4,86 @@ import java.io.IOException; import java.util.Hashtable;
import java.util.Vector;
-public interface TlsServer extends TlsPeer {
+public interface TlsServer
+ extends TlsPeer
+{
void init(TlsServerContext context);
- void notifyClientVersion(ProtocolVersion clientVersion) throws IOException;
+ void notifyClientVersion(ProtocolVersion clientVersion)
+ throws IOException;
- void notifyOfferedCipherSuites(int[] offeredCipherSuites) throws IOException;
+ void notifyOfferedCipherSuites(int[] offeredCipherSuites)
+ throws IOException;
- void notifyOfferedCompressionMethods(short[] offeredCompressionMethods) throws IOException;
+ void notifyOfferedCompressionMethods(short[] offeredCompressionMethods)
+ throws IOException;
- void notifySecureRenegotiation(boolean secureNegotiation) throws IOException;
+ void notifySecureRenegotiation(boolean secureNegotiation)
+ throws IOException;
// Hashtable is (Integer -> byte[])
- void processClientExtensions(Hashtable clientExtensions) throws IOException;
+ void processClientExtensions(Hashtable clientExtensions)
+ throws IOException;
- ProtocolVersion getServerVersion() throws IOException;
+ ProtocolVersion getServerVersion()
+ throws IOException;
- int getSelectedCipherSuite() throws IOException;
+ int getSelectedCipherSuite()
+ throws IOException;
- short getSelectedCompressionMethod() throws IOException;
+ short getSelectedCompressionMethod()
+ throws IOException;
// Hashtable is (Integer -> byte[])
- Hashtable getServerExtensions() throws IOException;
+ Hashtable getServerExtensions()
+ throws IOException;
// Vector is (SupplementalDataEntry)
- Vector getServerSupplementalData() throws IOException;
+ Vector getServerSupplementalData()
+ throws IOException;
- TlsCredentials getCredentials() throws IOException;
+ TlsCredentials getCredentials()
+ throws IOException;
- TlsKeyExchange getKeyExchange() throws IOException;
+ TlsKeyExchange getKeyExchange()
+ throws IOException;
CertificateRequest getCertificateRequest();
// Vector is (SupplementalDataEntry)
- void processClientSupplementalData(Vector clientSupplementalData) throws IOException;
+ void processClientSupplementalData(Vector clientSupplementalData)
+ throws IOException;
/**
* Called by the protocol handler to report the client certificate, only if a Certificate
* {@link #getCertificateRequest()} returned non-null. Note: this method is responsible for
* certificate verification and validation.
- *
- * @param clientCertificate
- * the effective client certificate (may be an empty chain).
+ *
+ * @param clientCertificate the effective client certificate (may be an empty chain).
* @throws IOException
*/
- void notifyClientCertificate(Certificate clientCertificate) throws IOException;
+ void notifyClientCertificate(Certificate clientCertificate)
+ throws IOException;
- TlsCompression getCompression() throws IOException;
+ TlsCompression getCompression()
+ throws IOException;
- TlsCipher getCipher() throws IOException;
+ TlsCipher getCipher()
+ throws IOException;
/**
* RFC 5077 3.3. NewSessionTicket Handshake Message.
- * <p>
+ * <p/>
* This method will be called (only) if a NewSessionTicket extension was sent by the server. See
* <i>RFC 5077 4. Recommended Ticket Construction</i> for recommended format and protection.
- *
+ *
* @return The ticket.
* @throws IOException
*/
- NewSessionTicket getNewSessionTicket() throws IOException;
+ NewSessionTicket getNewSessionTicket()
+ throws IOException;
- void notifyHandshakeComplete() throws IOException;
+ void notifyHandshakeComplete()
+ throws IOException;
}
|