Skip to content

Commit

Permalink
fix some deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stoty committed Sep 30, 2024
1 parent eeb241b commit 5b5564b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public void processChallenge(
}

if (LOG.isDebugEnabled()) {
final HttpClientContext clientContext = HttpClientContext.adapt(context);
final HttpClientContext clientContext = HttpClientContext.cast(context);
final String exchangeId = clientContext.getExchangeId();
LOG.debug("{} GSS init {}", exchangeId, gssHostname);
}
Expand All @@ -159,7 +159,7 @@ public void processChallenge(
case UNINITIATED:
if (challenge != NO_TOKEN) {
if (LOG.isDebugEnabled()) {
final HttpClientContext clientContext = HttpClientContext.adapt(context);
final HttpClientContext clientContext = HttpClientContext.cast(context);
final String exchangeId = clientContext.getExchangeId();
LOG.debug("{} Internal GSS error: token received when none was sent yet: {}", exchangeId, challengeToken);
}
Expand All @@ -176,7 +176,7 @@ public void processChallenge(
if (!gssContext.isEstablished()) {
if (LOG.isDebugEnabled()) {
final HttpClientContext clientContext =
HttpClientContext.adapt(context);
HttpClientContext.cast(context);
final String exchangeId = clientContext.getExchangeId();
LOG.debug("{} GSSContext is not established ", exchangeId);
}
Expand All @@ -187,7 +187,7 @@ public void processChallenge(
} else if (!gssContext.getMutualAuthState()) {
if (LOG.isDebugEnabled()) {
final HttpClientContext clientContext =
HttpClientContext.adapt(context);
HttpClientContext.cast(context);
final String exchangeId = clientContext.getExchangeId();
LOG.debug("{} requireMutualAuth is set but GSSAUthContext does not have"
+ " mutualAuthState set", exchangeId);
Expand Down

0 comments on commit 5b5564b

Please sign in to comment.