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

Constructor Index

 o PrincipalImpl(AjantaIdentity)
Constructs a Principal object from AjantaIdentity object
 o PrincipalImpl(String)
Constructs a Principal object from String object
 o PrincipalImpl(URN)
Constructs a Principal object from URN object

Method Index

 o equals(Object)
Compares this principal to the specified object.
 o getName()
Returns the name of this principal.
 o hashCode()
Returns a hashcode for this principal
 o toString()
Returns a string representation of this principal.

Constructors

 o 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
 o 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
 o 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

Methods

 o 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
 o toString
 public String toString()
Returns a string representation of this principal.

Returns:
a string representation of this principal.
Overrides:
toString in class Object
 o hashCode
 public int hashCode()
Returns a hashcode for this principal

Returns:
a hashcode for this principal.
Overrides:
hashCode in class Object
 o 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