|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.services.security.CaArrayPrincipal
public class CaArrayPrincipal
This class implements the Principal
interface
and represents a Sample user.
Principals such as this CaArrayPrincipal
may be associated with a particular Subject
to augment that Subject
with an additional
identity. Refer to the Subject
class for more information
on how to achieve this. Authorization decisions can then be based upon
the Principals associated with a Subject
.
Principal
,
Subject
,
Serialized FormConstructor Summary | |
---|---|
CaArrayPrincipal(java.lang.String name)
Create a CaArrayPrincipal with a Sample username. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object another)
Compare this CaArrayPrincipal's name against another Principal |
java.lang.String |
getName()
Return the Sample username for this CaArrayPrincipal . |
int |
hashCode()
|
java.lang.String |
toString()
Return a string representation of this CaArrayPrincipal . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CaArrayPrincipal(java.lang.String name)
name
- the Sample username for this user.
java.lang.NullPointerException
- if the name
is null
.Method Detail |
---|
public java.lang.String getName()
CaArrayPrincipal
.
getName
in interface java.security.Principal
CaArrayPrincipal
public java.lang.String toString()
CaArrayPrincipal
.
toString
in interface java.security.Principal
toString
in class java.lang.Object
CaArrayPrincipal
.public boolean equals(java.lang.Object another)
equals
in interface java.security.Principal
equals
in class java.lang.Object
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 |