Class KerberosScheme
- java.lang.Object
-
- org.apache.hc.client5.http.impl.auth.GGSSchemeBase
-
- org.apache.hc.client5.http.impl.auth.KerberosScheme
-
- All Implemented Interfaces:
AuthScheme
@Experimental public class KerberosScheme extends GGSSchemeBase
Kerberos authentication scheme.Please note this class is considered experimental and may be discontinued or removed in the future.
- Since:
- 4.2
-
-
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.StringKERBEROS_OID
-
Constructor Summary
Constructors Constructor Description KerberosScheme()KerberosScheme(KerberosConfig config, DnsResolver dnsResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]generateToken(byte[] input, java.lang.String serviceName, java.lang.String authServer)java.lang.StringgetName()Returns textual designation of the given authentication scheme.booleanisConnectionBased()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
-
KERBEROS_OID
private static final java.lang.String KERBEROS_OID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
KerberosScheme
public KerberosScheme(KerberosConfig config, DnsResolver dnsResolver)
- Since:
- 5.0
-
KerberosScheme
public KerberosScheme()
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:AuthSchemeReturns 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- Specified by:
generateTokenin classGGSSchemeBase- Throws:
org.ietf.jgss.GSSException
-
isConnectionBased
public boolean isConnectionBased()
Description copied from interface:AuthSchemeDetermines if the authentication scheme is expected to provide an authorization response on a per connection basis instead of the standard per request basis- Returns:
trueif the scheme is connection based,falseif the scheme is request based.
-
-