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 class
Realm.AuthScheme
static class
Realm.Builder
A builder forRealm
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable String
getAlgorithm()
Charset
getCharset()
@Nullable String
getCnonce()
@Nullable Map<String,String>
getCustomLoginConfig()
@Nullable String
getLoginContextName()
String
getNc()
@Nullable String
getNonce()
String
getNtlmDomain()
Return the NTLM domain to use.String
getNtlmHost()
Return the NTLM host.@Nullable String
getOpaque()
@Nullable String
getPassword()
@Nullable String
getPrincipal()
@Nullable String
getQop()
@Nullable String
getRealmName()
@Nullable String
getResponse()
Realm.AuthScheme
getScheme()
@Nullable String
getServicePrincipalName()
@Nullable Uri
getUri()
boolean
isOmitQuery()
boolean
isUseAbsoluteURI()
boolean
isUseCanonicalHostname()
boolean
isUsePreemptiveAuth()
Return true is preemptive authentication is enabledString
toString()
-
-
-
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()
-
-