Skip to content

Commit

Permalink
duplicate and rename mutual SPNEGO related classes
Browse files Browse the repository at this point in the history
  • Loading branch information
stoty committed Oct 1, 2024
1 parent 1a7f0e0 commit d99f274
Show file tree
Hide file tree
Showing 9 changed files with 639 additions and 167 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
import org.apache.hc.client5.http.classic.methods.HttpGet;
import org.apache.hc.client5.http.impl.DefaultAuthenticationStrategy;
import org.apache.hc.client5.http.impl.auth.CredentialsProviderBuilder;
import org.apache.hc.client5.http.impl.auth.SPNegoScheme;
import org.apache.hc.client5.http.impl.auth.MutualSpnegoScheme;
import org.apache.hc.client5.http.protocol.HttpClientContext;
import org.apache.hc.client5.http.utils.Base64;
import org.apache.hc.client5.testing.extension.sync.ClientProtocolLevel;
Expand Down Expand Up @@ -80,9 +80,9 @@
/**
* Tests for {@link SPNegoScheme}.
*/
public class TestSPNegoScheme extends AbstractIntegrationTestBase {
public class TestMutualSpnegoScheme extends AbstractIntegrationTestBase {

protected TestSPNegoScheme() {
protected TestMutualSpnegoScheme() {
super(URIScheme.HTTP, ClientProtocolLevel.STANDARD);
}

Expand Down Expand Up @@ -191,7 +191,7 @@ public void handle(
* Kerberos configuration.
*
*/
private static class NegotiateSchemeWithMockGssManager extends SPNegoScheme {
private static class NegotiateSchemeWithMockGssManager extends MutualSpnegoScheme {

final GSSManager manager = Mockito.mock(GSSManager.class);
final GSSName name = Mockito.mock(GSSName.class);
Expand All @@ -218,7 +218,7 @@ protected GSSManager getManager() {

}

private static class MutualNegotiateSchemeWithMockGssManager extends SPNegoScheme {
private static class MutualNegotiateSchemeWithMockGssManager extends MutualSpnegoScheme {

final GSSManager manager = Mockito.mock(GSSManager.class);
final GSSName name = Mockito.mock(GSSName.class);
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
*
* @since 4.2
*
* @deprecated Do not use. Consider using Spengo, Basic or Bearer authentication with TLS instead.
* @deprecated Do not use. The Kerberos authentication scheme was never standardised.
* Use {@link MutualSpnegoScheme} or some other scheme instead.
*
* @see MutualSpnegoScheme
* @see BasicScheme
* @see BearerScheme
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@
*
* @since 4.2
*
* @deprecated Do not use. The GGS based experimental authentication schemes are no longer
* supported. Consider using Basic or Bearer authentication with TLS instead.
* @deprecated Do not use. The Kerberos authentication scheme was never standardised.
* Use {@link MutualSpnegoScheme} or some other scheme instead.
*
* @see MutualSpnegoSchemeFactory
* @see BasicSchemeFactory
* @see BearerSchemeFactory
*/
Expand Down
Loading

0 comments on commit d99f274

Please sign in to comment.