com.ning.http.client
Class Realm

java.lang.Object
  extended by com.ning.http.client.Realm

public class Realm
extends Object

This class is required when authentication is needed. The class support DIGEST and BASIC.


Nested Class Summary
static class Realm.AuthScheme
           
static class Realm.RealmBuilder
          A builder for Realm
 
Method Summary
 boolean equals(Object o)
           
 String getAlgorithm()
           
 Realm.AuthScheme getAuthScheme()
           
 String getCnonce()
           
 String getEncoding()
           
 String getMethodName()
           
 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()
           
 UriComponents getUri()
           
 boolean getUsePreemptiveAuth()
          Return true is preemptive authentication is enabled
 int hashCode()
           
 boolean isNtlmMessageType2Received()
           
 boolean isOmitQuery()
           
 boolean isTargetProxy()
           
 boolean isUseAbsoluteURI()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getPrincipal

public String getPrincipal()

getPassword

public String getPassword()

getAuthScheme

public Realm.AuthScheme getAuthScheme()

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 UriComponents getUri()

getEncoding

public String getEncoding()

getMethodName

public String getMethodName()

getUsePreemptiveAuth

public boolean getUsePreemptiveAuth()
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

isNtlmMessageType2Received

public boolean isNtlmMessageType2Received()

isUseAbsoluteURI

public boolean isUseAbsoluteURI()

isOmitQuery

public boolean isOmitQuery()

isTargetProxy

public boolean isTargetProxy()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014. All Rights Reserved.