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 String
getAlgorithm()
Charset
getCharset()
String
getCnonce()
Map<String,String>
getCustomLoginConfig()
String
getLoginContextName()
String
getNc()
String
getNonce()
String
getNtlmDomain()
Return the NTLM domain to use.String
getNtlmHost()
Return the NTLM host.String
getOpaque()
String
getPassword()
String
getPrincipal()
String
getQop()
String
getRealmName()
String
getResponse()
Realm.AuthScheme
getScheme()
String
getServicePrincipalName()
Uri
getUri()
boolean
isOmitQuery()
boolean
isUseAbsoluteURI()
boolean
isUseCanonicalHostname()
boolean
isUsePreemptiveAuth()
Return true is preemptive authentication is enabledString
toString()
-
-
-
Method Detail
-
getPrincipal
public String getPrincipal()
-
getPassword
public String getPassword()
-
getScheme
public Realm.AuthScheme getScheme()
-
getRealmName
public String getRealmName()
-
getNonce
public String getNonce()
-
getAlgorithm
public String getAlgorithm()
-
getResponse
public String getResponse()
-
getOpaque
public String getOpaque()
-
getQop
public String getQop()
-
getNc
public String getNc()
-
getCnonce
public String getCnonce()
-
getUri
public 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
public String getServicePrincipalName()
-
isUseCanonicalHostname
public boolean isUseCanonicalHostname()
-
getLoginContextName
public String getLoginContextName()
-
-