Build 1.0_r1(from source)

org.apache.http.auth
Class NTUserPrincipal

java.lang.Object
  extended by org.apache.http.auth.NTUserPrincipal
All Implemented Interfaces:
Principal

public class NTUserPrincipal
extends Object
implements Principal

NT (MS Windows specific) user principal used for HTTP authentication

Since:
4.0

Constructor Summary
NTUserPrincipal(String domain, String username)
           
 
Method Summary
 boolean equals(Object o)
          Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
 String getDomain()
           
 String getName()
           
 String getUsername()
           
 int hashCode()
          Returns an integer hash code for the receiver.
 String toString()
          Returns a string containing a concise, human-readable description of the receiver.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NTUserPrincipal

public NTUserPrincipal(String domain,
                       String username)
Method Detail

getName

public String getName()
Specified by:
getName in interface Principal

getDomain

public String getDomain()

getUsername

public String getUsername()

hashCode

public int hashCode()
Description copied from class: Object
Returns an integer hash code for the receiver. Any two objects which answer true when passed to .equals must answer the same value for this method.

Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object
Returns:
int the receiver's hash.
See Also:
Object.equals(java.lang.Object)

equals

public boolean equals(Object o)
Description copied from class: Object
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. The implementation in Object returns true only if the argument is the exact same object as the receiver (==).

Specified by:
equals in interface Principal
Overrides:
equals in class Object
Parameters:
o - Object the object to compare with this object.
Returns:
boolean true if the object is the same as this object false if it is different from this object.
See Also:
Object.hashCode()

toString

public String toString()
Description copied from class: Object
Returns a string containing a concise, human-readable description of the receiver.

Specified by:
toString in interface Principal
Overrides:
toString in class Object
Returns:
String a printable representation for the receiver.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature