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 getDomain()
          Deprecated. - use getNtlmDomain()
 String getEncoding()
           
 String getMethodName()
           
 String getNc()
           
 String getNonce()
           
 String getNtlmDomain()
          Return the NTLM domain to use.
 String getNtlmHost()
          Return the NTLM host.
 String getPassword()
           
 String getPrincipal()
           
 String getQop()
           
 String getRealmName()
           
 String getResponse()
           
 Realm.AuthScheme getScheme()
           
 String getUri()
           
 boolean getUsePreemptiveAuth()
          Return true is preemptive authentication is enabled
 int hashCode()
           
 boolean isNtlmMessageType2Received()
           
 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()

getQop

public String getQop()

getNc

public String getNc()

getCnonce

public String getCnonce()

getUri

public String 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

getDomain

public String getDomain()
Deprecated. - use getNtlmDomain()

Return the NTLM domain to use. This value should map the JDK

Returns:
the NTLM domain

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

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 © 2011. All Rights Reserved.