Principal
public class HttpPrincipalextends Objectimplements Principal
HttpPrincipal(String username, String realm)
boolean
equals(Object another)
String
getName()
getRealm()
getUsername()
int
hashCode()
toString()
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
implies
public HttpPrincipal(String username, String realm)
username
realm
NullPointerException
public boolean equals(Object another)
true
false
equals
Object
another
Object.hashCode()
HashMap
public String getName()
getName
public String getUsername()
public String getRealm()
public int hashCode()
(getUsername()+getRealm().hashCode()
hashCode
Object.equals(java.lang.Object)
System.identityHashCode(java.lang.Object)
public String toString()
toString