ajanta.util
Class AjantaIdentity
java.lang.Object
|
+--ajanta.util.AjantaIdentity
- All Implemented Interfaces:
- java.security.Principal, java.io.Serializable
- Direct Known Subclasses:
- NREntry
- public class AjantaIdentity
- extends java.lang.Object
- implements java.security.Principal, java.io.Serializable
Identity class for all the Ajanta entity. All AjantaIdentity object has a
urn and a Public Key
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getName()
|
java.security.PublicKey |
getPublicKey()
|
ajanta.naming.URN |
getURN()
return the urn of the identity |
void |
setPublicKey(java.security.PublicKey key)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
equals, hashCode, toString |
AjantaIdentity
public AjantaIdentity(java.lang.String n)
- Constructor
- Parameters:
n
- - the urn of the identity as string representation
AjantaIdentity
public AjantaIdentity(ajanta.naming.URN n)
- Constructor
- Parameters:
n
- - the name of the identity as urn
getURN
public ajanta.naming.URN getURN()
- return the urn of the identity
getName
public java.lang.String getName()
- Specified by:
getName
in interface java.security.Principal
setPublicKey
public void setPublicKey(java.security.PublicKey key)
getPublicKey
public java.security.PublicKey getPublicKey()