Package org.asynchttpclient
Class Realm
- java.lang.Object
-
- org.asynchttpclient.Realm
-
public class Realm extends Object
This class is required when authentication is needed. The class support BASIC, DIGEST, NTLM, SPNEGO and KERBEROS.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRealm.AuthSchemestatic classRealm.BuilderA builder forRealm
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable StringgetAlgorithm()CharsetgetCharset()@Nullable StringgetCnonce()@Nullable Map<String,String>getCustomLoginConfig()@Nullable StringgetLoginContextName()StringgetNc()@Nullable StringgetNonce()StringgetNtlmDomain()Return the NTLM domain to use.StringgetNtlmHost()Return the NTLM host.@Nullable StringgetOpaque()@Nullable StringgetPassword()@Nullable StringgetPrincipal()@Nullable StringgetQop()@Nullable StringgetRealmName()@Nullable StringgetResponse()Realm.AuthSchemegetScheme()@Nullable StringgetServicePrincipalName()@Nullable UrigetUri()booleanisOmitQuery()booleanisUseAbsoluteURI()booleanisUseCanonicalHostname()booleanisUsePreemptiveAuth()Return true is preemptive authentication is enabledStringtoString()
-
-
-
Method Detail
-
getPrincipal
@Nullable public @Nullable String getPrincipal()
-
getPassword
@Nullable public @Nullable String getPassword()
-
getScheme
public Realm.AuthScheme getScheme()
-
getRealmName
@Nullable public @Nullable String getRealmName()
-
getNonce
@Nullable public @Nullable String getNonce()
-
getAlgorithm
@Nullable public @Nullable String getAlgorithm()
-
getResponse
@Nullable public @Nullable String getResponse()
-
getOpaque
@Nullable public @Nullable String getOpaque()
-
getQop
@Nullable public @Nullable String getQop()
-
getNc
public String getNc()
-
getCnonce
@Nullable public @Nullable String getCnonce()
-
getUri
@Nullable public @Nullable Uri getUri()
-
getCharset
public Charset getCharset()
-
isUsePreemptiveAuth
public boolean isUsePreemptiveAuth()
Return true is preemptive authentication is enabled- Returns:
- true is preemptive authentication is enabled
-
getNtlmDomain
public String getNtlmDomain()
Return the NTLM domain to use. This value should map the JDK- Returns:
- the NTLM domain
-
getNtlmHost
public String getNtlmHost()
Return the NTLM host.- Returns:
- the NTLM host
-
isUseAbsoluteURI
public boolean isUseAbsoluteURI()
-
isOmitQuery
public boolean isOmitQuery()
-
getServicePrincipalName
@Nullable public @Nullable String getServicePrincipalName()
-
isUseCanonicalHostname
public boolean isUseCanonicalHostname()
-
getLoginContextName
@Nullable public @Nullable String getLoginContextName()
-
-