diff options
author | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2022-07-13 17:22:04 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2022-07-15 15:35:10 +0200 |
commit | 64adc479fab2fad65c398e70222f3443b75f9f32 (patch) | |
tree | 614120bdf92ede7f4a26cd449bf27f1591f45843 /jrt | |
parent | e69c68a2c4b9b8f8d556f376c8f023f602a95eff (diff) |
Rename 'succeeded' => 'authorized'
Diffstat (limited to 'jrt')
-rw-r--r-- | jrt/src/com/yahoo/jrt/TlsCryptoSocket.java | 4 |
1 files changed, 2 insertions, 2 deletions
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; |