org.apache.http.auth
Class BasicUserPrincipal

java.lang.Object
  extended by org.apache.http.auth.BasicUserPrincipal
All Implemented Interfaces:
java.io.Serializable, java.security.Principal

@Immutable
public final class BasicUserPrincipal
extends java.lang.Object
implements java.security.Principal, java.io.Serializable

Basic user principal used for HTTP authentication

Since:
4.0
See Also:
Serialized Form

Constructor Summary
BasicUserPrincipal(java.lang.String username)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicUserPrincipal

public BasicUserPrincipal(java.lang.String username)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal

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 The Apache Software Foundation. All Rights Reserved.