|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ajanta.util.AjantaIdentity | +--ajanta.naming.NREntry
Constructor Summary | |
NREntry(ajanta.naming.URN name)
Name Registry Entry object keeps needed information for an entry. |
|
NREntry(ajanta.naming.URN name,
java.security.PublicKey e,
java.security.PublicKey v)
Name Registry Entry object keeps needed information for an entry Owner of the acl entry for this nrEntry is the name of the entry |
|
NREntry(ajanta.naming.URN name,
java.net.URL location)
Name Registry Entry object keeps needed information for an entry Owner of the acl entry for this nrEntry is the name of the entry |
|
NREntry(ajanta.naming.URN name,
java.net.URL location,
java.security.PublicKey encrypt,
java.security.PublicKey verify)
Name Registry Entry object keeps needed information for an entry Owner of the acl entry for this nrEntry is the name of the entry |
|
NREntry(ajanta.naming.URN owner,
ajanta.naming.URN name)
Name Registry Entry object keeps needed information for an entry |
|
NREntry(ajanta.naming.URN owner,
ajanta.naming.URN name,
java.security.PublicKey e,
java.security.PublicKey v)
Name Registry Entry object keeps needed information for an entry |
|
NREntry(ajanta.naming.URN owner,
ajanta.naming.URN name,
java.net.URL location)
Name Registry Entry object keeps needed information for an entry |
|
NREntry(ajanta.naming.URN owner,
ajanta.naming.URN name,
java.net.URL location,
java.security.PublicKey encrypt,
java.security.PublicKey verify)
Name Registry Entry object keeps needed information for an entry |
Method Summary | |
boolean |
addAclOwner(ajanta.naming.URN caller,
ajanta.naming.URN owner)
Adds an owner. |
boolean |
addCreateNamePermission(java.security.Principal owner,
java.security.Principal prin)
Sets CREATE_NAME permission for the principle. |
boolean |
addCreateNamePermission(ajanta.naming.URN owner,
ajanta.naming.URN prin)
Sets CREATE_NAME permission for the principle. |
void |
addLocation(java.net.URL location)
Adds a location for the current entry, a urn can have one to many location mapping |
boolean |
addWritePermission(java.security.Principal owner,
java.security.Principal prin)
Sets WRITE permission for the principle. |
boolean |
addWritePermission(ajanta.naming.URN owner,
ajanta.naming.URN prin)
Sets WRITE permission for the principle. |
boolean |
checkCreateNamePermission(java.security.Principal prin)
Checks if the specified principal has create name permission |
boolean |
checkWritePermission(java.security.Principal prin)
Checks if the specified principal has write permission |
java.security.acl.Acl |
getAcl()
return the acl for this entry |
java.security.cert.X509Certificate |
getCertificate()
|
ajanta.naming.URN |
getCreationDomain()
Return the creation domain for this urn. |
java.security.PublicKey |
getEncryptKey()
return the encryption key for this entry |
long |
getLastAccessTime()
return the last access time for this entry |
long |
getLastModTime()
return the last modification time for this entry |
java.net.URL |
getURL()
return the first location in the vector list of this urn |
java.util.Vector |
getURLs()
returs all the location for this urn |
ajanta.naming.URN |
getURN()
return the urn of this entry |
java.security.PublicKey |
getVerifyKey()
return the signature varification key for this entry |
boolean |
isAclOwner(java.security.Principal owner)
Checks if the passed Principal is a owner |
boolean |
removeCreateNamePermission(ajanta.naming.URN owner,
ajanta.naming.URN prin)
Reomoves CREATE_NAME permission for the principle. |
boolean |
removeWritePermission(ajanta.naming.URN owner,
ajanta.naming.URN prin)
Reomoves WRITE permission for the principle. |
void |
setCertificate(java.security.cert.X509Certificate certificate)
|
java.lang.String |
toString()
String representation |
Methods inherited from class ajanta.util.AjantaIdentity |
getName, getPublicKey, setPublicKey |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.security.Principal |
equals, hashCode |
Constructor Detail |
public NREntry(ajanta.naming.URN owner, ajanta.naming.URN name)
owner
- - owner of the acl entry for this nrEntryname
- urn of this entrypublic NREntry(ajanta.naming.URN name)
name
- urn of this entrypublic NREntry(ajanta.naming.URN owner, ajanta.naming.URN name, java.net.URL location)
owner
- - owner of the acl entry for this nrEntryname
- urn of this entrylocation
- - location of this entitypublic NREntry(ajanta.naming.URN name, java.net.URL location)
name
- urn of this entrylocation
- - location of this entitypublic NREntry(ajanta.naming.URN owner, ajanta.naming.URN name, java.net.URL location, java.security.PublicKey encrypt, java.security.PublicKey verify)
owner
- - owner of the acl entry for this nrEntryname
- urn of this entrylocation
- - location of this entityencrypt
- - public key of encruption key pairverify
- - public key of verification key pairpublic NREntry(ajanta.naming.URN name, java.net.URL location, java.security.PublicKey encrypt, java.security.PublicKey verify)
name
- urn of this entrylocation
- - location of this entityencrypt
- - public key of encruption key pairverify
- - public key of verification key pairpublic NREntry(ajanta.naming.URN owner, ajanta.naming.URN name, java.security.PublicKey e, java.security.PublicKey v)
owner
- - owner of the acl entry for this nrEntryname
- urn of this entrye
- - public key of encruption key pairv
- - public key of verification key pairpublic NREntry(ajanta.naming.URN name, java.security.PublicKey e, java.security.PublicKey v)
name
- - urn of this entrye
- - public key of encruption key pairv
- - public key of verification key pairMethod Detail |
public ajanta.naming.URN getURN()
getURN
in class AjantaIdentity
public void addLocation(java.net.URL location)
location
- - url to be added for this namepublic java.util.Vector getURLs()
public java.net.URL getURL()
public ajanta.naming.URN getCreationDomain()
public boolean addAclOwner(ajanta.naming.URN caller, ajanta.naming.URN owner) throws java.security.acl.NotOwnerException
caller
- - the principal invoking this method.
It must be an owner of the ACL.owner
- - the owner that should be added to the list of owners.
java.security.acl.NotOwnerException
public boolean addCreateNamePermission(ajanta.naming.URN owner, ajanta.naming.URN prin)
owner
- - owner of the Entryprin
- - the principle who will get the WRITE permission
public boolean addCreateNamePermission(java.security.Principal owner, java.security.Principal prin)
owner
- - owner of the Entryprin
- - the principle who will get the WRITE permission
public boolean addWritePermission(ajanta.naming.URN owner, ajanta.naming.URN prin)
owner
- - owner of the Entryprin
- - the principle who will get the CREATE_NAME permission
public boolean addWritePermission(java.security.Principal owner, java.security.Principal prin)
owner
- - owner of the Entryprin
- - the principle who will get the CREATE_NAME permission
public boolean removeWritePermission(ajanta.naming.URN owner, ajanta.naming.URN prin)
owner
- - owner of the Entryprin
- - the principle from whom the WRITE permission will be removed
public boolean removeCreateNamePermission(ajanta.naming.URN owner, ajanta.naming.URN prin)
owner
- - owner of the Entryprin
- - the principle from whom the CREATE_NAME permission will be removed
public boolean checkCreateNamePermission(java.security.Principal prin)
prin
- - the principal who's permission will be checked
public boolean checkWritePermission(java.security.Principal prin)
prin
- - the principal who's permission will be checked
public boolean isAclOwner(java.security.Principal owner)
public long getLastAccessTime()
public long getLastModTime()
public java.security.PublicKey getVerifyKey()
public java.security.PublicKey getEncryptKey()
public java.security.acl.Acl getAcl()
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public void setCertificate(java.security.cert.X509Certificate certificate)
public java.security.cert.X509Certificate getCertificate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |