|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--ajanta.security.acl.PrincipalImpl
PrincipalImpl implements java.acl.Principal interface his interface represents a principal. A principal can be an individual, a corporation, a program thread; anything which can have an identity.
AjantaIdentity,
Serialized Form| Constructor Summary | |
PrincipalImpl(ajanta.util.AjantaIdentity identity)
Constructs a Principal object from AjantaIdentity object |
|
PrincipalImpl(java.lang.String identity)
Constructs a Principal object from String object |
|
PrincipalImpl(ajanta.naming.URN identity)
Constructs a Principal object from URN object |
|
| 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. |
int |
hashCode()
Returns a hashcode for this principal |
java.lang.String |
toString()
Returns a string representation of this principal. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PrincipalImpl(ajanta.util.AjantaIdentity identity)
identity - - In ajanta all the identity is derived from Ajanta
Identity classAjantaIdentitypublic PrincipalImpl(java.lang.String identity)
identity - - String name of this principal will be stored
as AjantaIdentiry which is a URNAjantaIdentitypublic PrincipalImpl(ajanta.naming.URN identity)
identity - - String name of this principal will be stored
as AjantaIdentiry which is a URNAjantaIdentity| Method Detail |
public boolean equals(java.lang.Object another)
equals in interface java.security.Principalequals in class java.lang.Objectanother - - the principal to compare with
public java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.Objectpublic int hashCode()
hashCode in interface java.security.PrincipalhashCode in class java.lang.Objectpublic java.lang.String getName()
getName in interface java.security.Principal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||