diff options
Diffstat (limited to 'bcprov/src/main/java/org/bouncycastle/crypto/tls/TlsPeer.java')
-rw-r--r-- | bcprov/src/main/java/org/bouncycastle/crypto/tls/TlsPeer.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bcprov/src/main/java/org/bouncycastle/crypto/tls/TlsPeer.java b/bcprov/src/main/java/org/bouncycastle/crypto/tls/TlsPeer.java index e408002..88780ea 100644 --- a/bcprov/src/main/java/org/bouncycastle/crypto/tls/TlsPeer.java +++ b/bcprov/src/main/java/org/bouncycastle/crypto/tls/TlsPeer.java @@ -1,7 +1,14 @@ package org.bouncycastle.crypto.tls; +import java.io.IOException; + public interface TlsPeer { + void notifySecureRenegotiation(boolean secureNegotiation) throws IOException; + + TlsCompression getCompression() throws IOException; + + TlsCipher getCipher() throws IOException; /** * This method will be called when an alert is raised by the protocol. @@ -20,4 +27,9 @@ public interface TlsPeer * @param alertDescription {@link AlertDescription} */ void notifyAlertReceived(short alertLevel, short alertDescription); + + /** + * Notifies the peer that the handshake has been successfully completed. + */ + void notifyHandshakeComplete() throws IOException; } |