org.apache.http.auth
Class NTUserPrincipal
java.lang.Object
org.apache.http.auth.NTUserPrincipal
- All Implemented Interfaces:
- java.security.Principal
@Immutable
public class NTUserPrincipal
- extends java.lang.Object
- implements java.security.Principal
Microsoft Windows specific user principal implementation.
- Since:
- 4.0
Constructor Summary |
NTUserPrincipal(java.lang.String domain,
java.lang.String username)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NTUserPrincipal
public NTUserPrincipal(java.lang.String domain,
java.lang.String username)
getName
public java.lang.String getName()
- Specified by:
getName
in interface java.security.Principal
getDomain
public java.lang.String getDomain()
getUsername
public java.lang.String getUsername()
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.security.Principal
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface java.security.Principal
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Specified by:
toString
in interface java.security.Principal
- Overrides:
toString
in class java.lang.Object
Copyright © 1999-2011 Apache Software Foundation. All Rights Reserved.