Package jade.security
Interface JADEPrincipal
-
- All Superinterfaces:
Principal
public interface JADEPrincipal extends Principal
TheJADEPrincipalinterface represents all principals acting on the platform. They will be held responsible for their own agents and containers.- Version:
- $Date$ $Revision$
- Author:
- Michele Tomaiuolo - Universita` di Parma, Giosue Vitaglione - Telecom Italia LAB
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(Object p)byte[]getEncoded()Checks the hierarchical relationship between two principals, i.e.StringgetName()Returns the name of this principal as known to its platform.SDSINamegetSDSIName()Returns the SDSI name of this principal (if any)inthashCode()StringtoString()
-
-
-
Field Detail
-
NONE
static final String NONE
The name which marks an unidentified principal.- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
String getName()
Returns the name of this principal as known to its platform.
-
getSDSIName
SDSIName getSDSIName()
Returns the SDSI name of this principal (if any)- Returns:
- The SDSIName
-
getEncoded
byte[] getEncoded()
Checks the hierarchical relationship between two principals, i.e. tells if this principal belongs to groupp. If this holds, all permissions granted topwill be automatically granted to this principal, too.- Parameters:
p- The principal to check.- Returns:
- True if this principal is a member of group
p.
-
toString
String toString()
-
hashCode
int hashCode()
-
-