|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.common.security.BasicPrincipal
public class BasicPrincipal
BasicPrincipal
associates a user name with a password
Constructor Summary | |
---|---|
BasicPrincipal(java.lang.String name,
java.lang.String password)
Construct a new Principal |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object another)
Compares this principal to the specified object. |
java.lang.String |
getName()
Returns the name of this principal |
java.lang.String |
getPassword()
Returns the password of this principal |
int |
hashCode()
Returns a hashcode for this principal. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
toString |
Constructor Detail |
---|
public BasicPrincipal(java.lang.String name, java.lang.String password)
Principal
name
- the principal's namepassword
- the principal's passwordMethod Detail |
---|
public java.lang.String getName()
getName
in interface java.security.Principal
public java.lang.String getPassword()
public boolean equals(java.lang.Object another)
equals
in interface java.security.Principal
equals
in class java.lang.Object
another
- principal to compare with
true
if the principal passed in is the same as
this principal; otherwise false
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |