|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.auth.AbstractPrincipal
public abstract class AbstractPrincipal
An abstract Principal implementation.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
protected String |
name
The name of this principal instance. |
| Constructor Summary | |
|---|---|
protected |
AbstractPrincipal(String name)
Create a new instance with the specified name. |
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Compares this principal to the specified object. |
String |
getName()
Return the name of this principal. |
int |
hashCode()
Returns a hash code for this instance. |
String |
toString()
Returns a string representation of this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final String name
| Constructor Detail |
|---|
protected AbstractPrincipal(String name)
name - The name value to set.| Method Detail |
|---|
public boolean equals(Object object)
equals in interface Principalequals in class Objectobject - The object that is to be compared.
true if the principal passed in is the same as
that encapsulated by this principal, and false otherwise.public String toString()
toString in interface PrincipaltoString in class Objectname.public int hashCode()
hashCode in interface PrincipalhashCode in class Objectpublic String getName()
name of this principal.
getName in interface Principal
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||