Top Description Fields Constructors Methods
org.apache.hc.client5.http.impl.auth

public Class KerberosScheme

extends GGSSchemeBase
Class Inheritance
Annotations
@Deprecated
@Experimental
Imports
org.apache.hc.client5.http.DnsResolver, org.apache.hc.client5.http.auth.StandardAuthScheme, org.apache.hc.core5.annotation.Experimental, org.ietf.jgss.GSSException, .Oid

Deprecated

Do not use. The GGS based experimental authentication schemes are no longer supported. Consider using Basic or Bearer authentication with TLS instead.

Kerberos authentication scheme.

Please note this class is considered experimental and may be discontinued or removed in the future.

Since
4.2
See Also
BasicScheme, BearerScheme

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
public
KerberosScheme(final KerberosConfig config, final DnsResolver dnsResolver)

Deprecated as a consequence of KerberosConfig being deprecated.
public

Method Summary

Modifier and TypeMethod and Description
protected byte[]
generateToken(final byte[] input, final String serviceName, final String authServer)

Implements abstract org.apache.hc.client5.http.impl.auth.GGSSchemeBase.generateToken.

public String
getName()

Implements org.apache.hc.client5.http.auth.AuthScheme.getName.

Returns textual designation of the given authentication scheme.
public boolean
isConnectionBased()

Implements org.apache.hc.client5.http.auth.AuthScheme.isConnectionBased.

Determines if the authentication scheme is expected to provide an authorization response on a per connection basis instead of the standard per request basis
Inherited from org.apache.hc.client5.http.impl.auth.GGSSchemeBase:
createGSSContextgenerateAuthResponsegenerateGSSTokengetManagergetPrincipalgetRealmisChallengeCompleteisResponseReadyprocessChallengetoString

Field Detail

KERBEROS_OIDback to summary
private static final String KERBEROS_OID

Constructor Detail

KerberosSchemeback to summary
public KerberosScheme(final KerberosConfig config, final DnsResolver dnsResolver)

Deprecated

as a consequence of KerberosConfig being deprecated. See corresponding docs for further information.

Since
5.0
KerberosSchemeback to summary
public KerberosScheme()

Method Detail

generateTokenback to summary
protected byte[] generateToken(final byte[] input, final String serviceName, final String authServer) throws GSSException

Implements abstract org.apache.hc.client5.http.impl.auth.GGSSchemeBase.generateToken.

Annotations
@Override
getNameback to summary
public String getName()

Implements org.apache.hc.client5.http.auth.AuthScheme.getName.

Doc from org.apache.hc.client5.http.auth.AuthScheme.getName.

Returns textual designation of the given authentication scheme.

Returns:String

the name of the given authentication scheme

Annotations
@Override
isConnectionBasedback to summary
public boolean isConnectionBased()

Implements org.apache.hc.client5.http.auth.AuthScheme.isConnectionBased.

Doc from org.apache.hc.client5.http.auth.AuthScheme.isConnectionBased.

Determines if the authentication scheme is expected to provide an authorization response on a per connection basis instead of the standard per request basis

Returns:boolean

true if the scheme is connection based, false if the scheme is request based.

Annotations
@Override