diff options
Diffstat (limited to 'src/com/isode/stroke/client/CoreClient.java')
-rw-r--r-- | src/com/isode/stroke/client/CoreClient.java | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/com/isode/stroke/client/CoreClient.java b/src/com/isode/stroke/client/CoreClient.java index 646f8fe..a1c6d0a 100644 --- a/src/com/isode/stroke/client/CoreClient.java +++ b/src/com/isode/stroke/client/CoreClient.java @@ -3,7 +3,7 @@ * All rights reserved. */ /* - * Copyright (c) 2010, Remko Tronçon. + * Copyright (c) 2010-2014, Remko Tronçon. * All rights reserved. */ package com.isode.stroke.client; @@ -29,7 +29,6 @@ import com.isode.stroke.signals.SignalConnection; import com.isode.stroke.signals.Slot; import com.isode.stroke.signals.Slot1; import com.isode.stroke.signals.Slot2; -import com.isode.stroke.tls.Certificate; import com.isode.stroke.tls.CertificateTrustChecker; import com.isode.stroke.tls.CertificateVerificationError; import com.isode.stroke.tls.CertificateWithKey; @@ -468,18 +467,9 @@ public class CoreClient { * @return true if the session is initialized and encrypted with TLS, * false otherwise. */ - public boolean isSessionTLSEncrypted() { + public boolean isStreamEncrypted() { return (sessionStream_ != null && sessionStream_.isTLSEncrypted()); } - - /** - * If the session is initialized and encrypted with TLS, then the - * certificate presented by the peer is returned - * @return the peer certificate, if one is available, otherwise null. - */ - public Certificate getSessionCertificate() { - return (isSessionTLSEncrypted() ? sessionStream_.getPeerCertificate() : null); - } private void resetConnector() { if (connectorConnectFinishedConnection_ != null) { |