From 64adc479fab2fad65c398e70222f3443b75f9f32 Mon Sep 17 00:00:00 2001 From: Bjørn Christian Seime Date: Wed, 13 Jul 2022 17:22:04 +0200 Subject: Rename 'succeeded' => 'authorized' --- jrt/src/com/yahoo/jrt/TlsCryptoSocket.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jrt/src') diff --git a/jrt/src/com/yahoo/jrt/TlsCryptoSocket.java b/jrt/src/com/yahoo/jrt/TlsCryptoSocket.java index 40cb7c3938a..721c7c4d2e7 100644 --- a/jrt/src/com/yahoo/jrt/TlsCryptoSocket.java +++ b/jrt/src/com/yahoo/jrt/TlsCryptoSocket.java @@ -100,7 +100,7 @@ public class TlsCryptoSocket implements CryptoSocket { if (authorizationResult == null) { PeerAuthorizerTrustManager.getAuthorizationResult(sslEngine) // only available during handshake .ifPresent(result -> { - if (!result.succeeded()) { + if (!result.authorized()) { metrics.incrementPeerAuthorizationFailures(); } authorizationResult = result; @@ -144,7 +144,7 @@ public class TlsCryptoSocket implements CryptoSocket { } } catch (SSLHandshakeException e) { // sslEngine.getDelegatedTask().run() and handshakeWrap() may throw SSLHandshakeException, potentially handshakeUnwrap() and sslEngine.beginHandshake() as well. - if (authorizationResult == null || authorizationResult.succeeded()) { // don't include handshake failures due from PeerAuthorizerTrustManager + if (authorizationResult == null || authorizationResult.authorized()) { // don't include handshake failures due from PeerAuthorizerTrustManager metrics.incrementTlsCertificateVerificationFailures(); } throw e; -- cgit v1.2.3