Use proper scheme names in text

This commit is contained in:
Michael Osipov 2019-12-25 22:03:55 +01:00
parent 167dbc7576
commit 782d8e40a0
4 changed files with 6 additions and 6 deletions

View File

@ -52,7 +52,7 @@ public class BasicAuthTokenExtractor {
final BinaryDecoder codec = new Base64();
return new String(codec.decode(credsRaw), StandardCharsets.US_ASCII);
} catch (final DecoderException ex) {
throw new ProtocolException("Malformed BASIC credentials");
throw new ProtocolException("Malformed Basic credentials");
}
}
}

View File

@ -34,7 +34,7 @@ import org.ietf.jgss.GSSException;
import org.ietf.jgss.Oid;
/**
* KERBEROS authentication scheme.
* Kerberos authentication scheme.
* <p>
* Please note this class is considered experimental and may be discontinued or removed
* in the future.

View File

@ -38,7 +38,7 @@ import org.apache.hc.core5.http.io.entity.EntityUtils;
/**
* An example of how HttpClient can be customized to authenticate
* preemptively using BASIC scheme.
* preemptively using Basic scheme.
* <b/>
* Generally, preemptive authentication can be considered less
* secure than a response to an authentication challenge
@ -49,7 +49,7 @@ public class ClientPreemptiveBasicAuthentication {
public static void main(final String[] args) throws Exception {
try (final CloseableHttpClient httpclient = HttpClients.createDefault()) {
// Generate BASIC scheme object and add it to the local auth cache
// Generate Basic scheme object and add it to the local auth cache
final BasicScheme basicAuth = new BasicScheme();
basicAuth.initPreemptive(new UsernamePasswordCredentials("user", "passwd".toCharArray()));

View File

@ -42,9 +42,9 @@ import org.apache.hc.core5.http.io.entity.EntityUtils;
/**
* An example of how HttpClient can authenticate multiple requests
* using the same DIGEST scheme. After the initial request / response exchange
* using the same Digest scheme. After the initial request / response exchange
* all subsequent requests sharing the same execution context can re-use
* the last DIGEST nonce value to authenticate with the server.
* the last Digest nonce value to authenticate with the server.
*/
public class ClientPreemptiveDigestAuthentication {