Package org.asynchttpclient.spnego
Class SpnegoEngine
- java.lang.Object
-
- org.asynchttpclient.spnego.SpnegoEngine
-
public class SpnegoEngine extends Object
SPNEGO (Simple and Protected GSSAPI Negotiation Mechanism) authentication scheme.- Since:
- 4.1
-
-
Constructor Summary
Constructors Constructor Description SpnegoEngine()
SpnegoEngine(@Nullable String username, @Nullable String password, @Nullable String servicePrincipalName, @Nullable String realmName, boolean useCanonicalHostname, @Nullable Map<String,String> customLoginConfig, @Nullable String loginContextName, @Nullable SpnegoTokenGenerator spnegoGenerator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateToken(String host)
@Nullable Configuration
getLoginConfiguration()
static SpnegoEngine
instance(@Nullable String username, @Nullable String password, @Nullable String servicePrincipalName, @Nullable String realmName, boolean useCanonicalHostname, @Nullable Map<String,String> customLoginConfig, @Nullable String loginContextName)
-
-
-
Constructor Detail
-
SpnegoEngine
public SpnegoEngine(@Nullable @Nullable String username, @Nullable @Nullable String password, @Nullable @Nullable String servicePrincipalName, @Nullable @Nullable String realmName, boolean useCanonicalHostname, @Nullable @Nullable Map<String,String> customLoginConfig, @Nullable @Nullable String loginContextName, @Nullable @Nullable SpnegoTokenGenerator spnegoGenerator)
-
SpnegoEngine
public SpnegoEngine()
-
-
Method Detail
-
instance
public static SpnegoEngine instance(@Nullable @Nullable String username, @Nullable @Nullable String password, @Nullable @Nullable String servicePrincipalName, @Nullable @Nullable String realmName, boolean useCanonicalHostname, @Nullable @Nullable Map<String,String> customLoginConfig, @Nullable @Nullable String loginContextName)
-
generateToken
public String generateToken(String host) throws SpnegoEngineException
- Throws:
SpnegoEngineException
-
getLoginConfiguration
@Nullable public @Nullable Configuration getLoginConfiguration()
-
-