LOGGER.log(Level.INFO, "Sending \"{0}\" {1} header", new String[]{TOKEN_PREFIX, AUTHORIZATION_HEADER});
method.setRequestHeader(AUTHORIZATION_HEADER, MessageFormat.format("{0} {1}", TOKEN_PREFIX, new String(token)));
getParams().setAuthenticationPreemptive(false);
}
gssContext.requestMutualAuth(mutualAuth);
gssContext.requestConf(MESSAGE_CONFIDENTIALITY);
gssContext.requestInteg(MESSAGE_INTEGRITY);
} catch (GSSException e) {
LOGGER.log(Level.SEVERE, "Caught GSSException setting options on GSSContext", e);
}
AuthScope authScope = new AuthScope(uri.getHost(), uri.getPort(), credentials.getRealm());