|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhomenet.security.RdbmsPrincipal
public class RdbmsPrincipal
Basic implementation of the Principal class. By implementing our own Principal for our application, we can more easily add and remove instances of our principals in the authenticated Subject during the login and logout process.
| Constructor Summary | |
|---|---|
RdbmsPrincipal()
Create a RdbmsPrincipal with no
user name. |
|
RdbmsPrincipal(java.lang.String newName)
Create a RdbmsPrincipal using a
String representation of the
user name. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Compares the specified Object with this RdbmsPrincipal
for equality. |
java.lang.String |
getName()
Return the user name for this RdbmsPrincipal. |
int |
hashCode()
Return a hash code for this RdbmsPrincipal. |
java.lang.String |
toString()
Return a string representation of this RdbmsPrincipal. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RdbmsPrincipal()
RdbmsPrincipal with no
user name.
public RdbmsPrincipal(java.lang.String newName)
RdbmsPrincipal using a
String representation of the
user name.
newName - the user identification number (UID) for this user.| Method Detail |
|---|
public java.lang.String getName()
RdbmsPrincipal.
getName in interface java.security.PrincipalRdbmsPrincipalpublic boolean equals(java.lang.Object o)
RdbmsPrincipal
for equality. Returns true if the given object is also a
RdbmsPrincipal and the two
RdbmsPrincipals have the same name.
equals in interface java.security.Principalequals in class java.lang.Objecto - Object to be compared for equality with this
RdbmsPrincipal.
RdbmsPrincipal.public int hashCode()
RdbmsPrincipal.
hashCode in interface java.security.PrincipalhashCode in class java.lang.ObjectRdbmsPrincipal.public java.lang.String toString()
RdbmsPrincipal.
toString in interface java.security.PrincipaltoString in class java.lang.ObjectRdbmsPrincipal.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||