Skip to content

Commit

Permalink
rename GGSSchemeBase to GSSchemeBase
Browse files Browse the repository at this point in the history
  • Loading branch information
stoty committed Sep 10, 2024
1 parent f144375 commit 732d077
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@
* @since 4.2
*
*/
// FIXME The class name looks like a Typo. Rename in 6.0 ?
public abstract class GGSSchemeBase implements AuthScheme2 {
public abstract class GSSchemeBase implements AuthScheme2 {

enum State {
UNINITIATED,
Expand All @@ -72,7 +71,7 @@ enum State {
FAILED,
}

private static final Logger LOG = LoggerFactory.getLogger(GGSSchemeBase.class);
private static final Logger LOG = LoggerFactory.getLogger(GSSchemeBase.class);
private static final String NO_TOKEN = "";
private static final String KERBEROS_SCHEME = "HTTP";

Expand All @@ -91,19 +90,19 @@ enum State {
private String challenge;
private byte[] queuedToken = new byte[0];

GGSSchemeBase(final KerberosConfig config, final DnsResolver dnsResolver) {
GSSchemeBase(final KerberosConfig config, final DnsResolver dnsResolver) {
super();
this.config = config != null ? config : KerberosConfig.DEFAULT;
this.dnsResolver = dnsResolver != null ? dnsResolver : SystemDefaultDnsResolver.INSTANCE;
this.mutualAuth = config.getRequestMutualAuth() == KerberosConfig.Option.ENABLE;
this.state = State.UNINITIATED;
}

GGSSchemeBase(final KerberosConfig config) {
GSSchemeBase(final KerberosConfig config) {
this(config, SystemDefaultDnsResolver.INSTANCE);
}

GGSSchemeBase() {
GSSchemeBase() {
this(KerberosConfig.DEFAULT, SystemDefaultDnsResolver.INSTANCE);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* @since 4.2
*/
@Experimental
public class KerberosScheme extends GGSSchemeBase {
public class KerberosScheme extends GSSchemeBase {

private static final String KERBEROS_OID = "1.2.840.113554.1.2.2";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* @since 4.2
*/
@Experimental
public class SPNegoScheme extends GGSSchemeBase {
public class SPNegoScheme extends GSSchemeBase {

private static final String SPNEGO_OID = "1.3.6.1.5.5.2";

Expand Down

0 comments on commit 732d077

Please sign in to comment.