summaryrefslogtreecommitdiffstats
path: root/jrt/src/com/yahoo/jrt/CryptoSocket.java
diff options
context:
space:
mode:
Diffstat (limited to 'jrt/src/com/yahoo/jrt/CryptoSocket.java')
-rw-r--r--jrt/src/com/yahoo/jrt/CryptoSocket.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/jrt/src/com/yahoo/jrt/CryptoSocket.java b/jrt/src/com/yahoo/jrt/CryptoSocket.java
index 59f4d0e6650..e0489dec7a3 100644
--- a/jrt/src/com/yahoo/jrt/CryptoSocket.java
+++ b/jrt/src/com/yahoo/jrt/CryptoSocket.java
@@ -99,5 +99,7 @@ public interface CryptoSocket {
* Returns the security context for the current connection (given handshake completed),
* or empty if the current connection is not secure.
*/
- public Optional<SecurityContext> securityContext();
+ default public Optional<SecurityContext> getSecurityContext() {
+ return Optional.empty();
+ }
}