Class SPNegoScheme
- java.lang.Object
-
- org.apache.hc.client5.http.impl.auth.GGSSchemeBase
-
- org.apache.hc.client5.http.impl.auth.SPNegoScheme
-
- All Implemented Interfaces:
AuthScheme
@Deprecated @Experimental public class SPNegoScheme extends GGSSchemeBase
Deprecated.Do not use. The GGS based experimental authentication schemes are no longer supported. Consider using Basic or Bearer authentication with TLS instead.SPNEGO (Simple and Protected GSSAPI Negotiation Mechanism) 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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.hc.client5.http.impl.auth.GGSSchemeBase
GGSSchemeBase.State
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
SPNEGO_OID
Deprecated.
-
Constructor Summary
Constructors Constructor Description SPNegoScheme()
Deprecated.SPNegoScheme(KerberosConfig config, DnsResolver dnsResolver)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected byte[]
generateToken(byte[] input, java.lang.String serviceName, java.lang.String authServer)
Deprecated.java.lang.String
getName()
Deprecated.Returns textual designation of the given authentication scheme.boolean
isConnectionBased()
Deprecated.Determines if the authentication scheme is expected to provide an authorization response on a per connection basis instead of the standard per request basis-
Methods inherited from class org.apache.hc.client5.http.impl.auth.GGSSchemeBase
createGSSContext, generateAuthResponse, generateGSSToken, getManager, getPrincipal, getRealm, isChallengeComplete, isResponseReady, processChallenge, toString
-
-
-
-
Field Detail
-
SPNEGO_OID
private static final java.lang.String SPNEGO_OID
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SPNegoScheme
public SPNegoScheme(KerberosConfig config, DnsResolver dnsResolver)
Deprecated.- Since:
- 5.0
-
SPNegoScheme
public SPNegoScheme()
Deprecated.
-
-
Method Detail
-
getName
public java.lang.String getName()
Deprecated.Description copied from interface:AuthScheme
Returns textual designation of the given authentication scheme.- Returns:
- the name of the given authentication scheme
-
generateToken
protected byte[] generateToken(byte[] input, java.lang.String serviceName, java.lang.String authServer) throws org.ietf.jgss.GSSException
Deprecated.- Specified by:
generateToken
in classGGSSchemeBase
- Throws:
org.ietf.jgss.GSSException
-
isConnectionBased
public boolean isConnectionBased()
Deprecated.Description copied from interface:AuthScheme
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:
true
if the scheme is connection based,false
if the scheme is request based.
-
-