Package org.apache.http.auth
Class NTUserPrincipal
- java.lang.Object
-
- org.apache.http.auth.NTUserPrincipal
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.Principal
@Contract(threading=IMMUTABLE) public class NTUserPrincipal extends java.lang.Object implements java.security.Principal, java.io.Serializable
Microsoft Windows specific user principal implementation.- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NTUserPrincipal(java.lang.String domain, java.lang.String username)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getDomain()
java.lang.String
getName()
java.lang.String
getUsername()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfacejava.security.Principal
-
getDomain
public java.lang.String getDomain()
-
getUsername
public java.lang.String getUsername()
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.security.Principal
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interfacejava.security.Principal
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.security.Principal
- Overrides:
toString
in classjava.lang.Object
-
-