All Packages Class Hierarchy This Package Previous Next Index
Class ajanta.security.acl.PrincipalImpl
java.lang.Object
|
+----ajanta.security.acl.PrincipalImpl
- public class PrincipalImpl
- extends Object
- implements Principal, Serializable
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.
- See Also:
- AjantaIdentity
-
PrincipalImpl(AjantaIdentity)
- Constructs a Principal object from AjantaIdentity object
-
PrincipalImpl(String)
- Constructs a Principal object from String object
-
PrincipalImpl(URN)
- Constructs a Principal object from URN object
-
equals(Object)
- Compares this principal to the specified object.
-
getName()
- Returns the name of this principal.
-
hashCode()
- Returns a hashcode for this principal
-
toString()
- Returns a string representation of this principal.
PrincipalImpl
public PrincipalImpl(AjantaIdentity identity)
- Constructs a Principal object from AjantaIdentity object
- Parameters:
- identity - - In ajanta all the identity is derived from Ajanta
Identity class
- See Also:
- AjantaIdentity
PrincipalImpl
public PrincipalImpl(String identity)
- Constructs a Principal object from String object
- Parameters:
- identity - - String name of this principal will be stored
as AjantaIdentiry which is a URN
- See Also:
- AjantaIdentity
PrincipalImpl
public PrincipalImpl(URN identity)
- Constructs a Principal object from URN object
- Parameters:
- identity - - String name of this principal will be stored
as AjantaIdentiry which is a URN
- See Also:
- AjantaIdentity
equals
public boolean equals(Object another)
- Compares this principal to the specified object.
Returns true if the object passed in matches
Currently it does not compare Public Key
- Parameters:
- another - - the principal to compare with
- Returns:
- true if the principal passed in is the same as
that encapsulated by this principal, false otherwise.
- Overrides:
- equals in class Object
toString
public String toString()
- Returns a string representation of this principal.
- Returns:
- a string representation of this principal.
- Overrides:
- toString in class Object
hashCode
public int hashCode()
- Returns a hashcode for this principal
- Returns:
- a hashcode for this principal.
- Overrides:
- hashCode in class Object
getName
public String getName()
- Returns the name of this principal.
- Returns:
- the name of this principal.
All Packages Class Hierarchy This Package Previous Next Index