summaryrefslogtreecommitdiffstats
path: root/bcprov/src/main/java/org/bouncycastle/crypto/tls/TlsContext.java
diff options
context:
space:
mode:
Diffstat (limited to 'bcprov/src/main/java/org/bouncycastle/crypto/tls/TlsContext.java')
-rw-r--r--bcprov/src/main/java/org/bouncycastle/crypto/tls/TlsContext.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/bcprov/src/main/java/org/bouncycastle/crypto/tls/TlsContext.java b/bcprov/src/main/java/org/bouncycastle/crypto/tls/TlsContext.java
index dfb1052..04781ef 100644
--- a/bcprov/src/main/java/org/bouncycastle/crypto/tls/TlsContext.java
+++ b/bcprov/src/main/java/org/bouncycastle/crypto/tls/TlsContext.java
@@ -4,7 +4,6 @@ import java.security.SecureRandom;
public interface TlsContext
{
-
SecureRandom getSecureRandom();
SecurityParameters getSecurityParameters();
@@ -15,6 +14,16 @@ public interface TlsContext
ProtocolVersion getServerVersion();
+ /**
+ * Used to get the resumable session, if any, used by this connection. Only available after the
+ * handshake has successfully completed.
+ *
+ * @return A {@link TlsSession} representing the resumable session used by this connection, or
+ * null if no resumable session available.
+ * @see {@link TlsPeer#notifyHandshakeComplete()}
+ */
+ TlsSession getResumableSession();
+
Object getUserObject();
void setUserObject(Object userObject);