A C D E G H I L N O P R S T U V W

A

addEntity(EntityMap.Entity) - Method in class net.cnri.do_api.EntityMap
 
ADDRESS_BOOK_ELEMENT_ID - Static variable in class net.cnri.do_api.EntityMap
 
APPLICATION_ERROR - Static variable in exception net.cnri.dobj.DOException
 
ATTRIBUTE_MIME_TYPE - Static variable in class net.cnri.do_api.DataElement
 

C

cloneAuthentication() - Method in class net.cnri.dobj.PKAuthentication
The following must be implemented by subclasses of AbstractAuthentication in order to provide a copy of themselves for the purposes of authenticating when retrieving their credentials.
cloneAuthentication() - Method in class net.cnri.dobj.SecretKeyAuthentication
The following must be implemented by subclasses of AbstractAuthentication in order to provide a copy of themselves for the purposes of authenticating when retrieving their credentials.
copyObjectFrom(Repository, String) - Method in class net.cnri.do_api.Repository
Create a new object on this repository with the given identifier and return the ID of the new object.
createDigitalObject(String) - Method in class net.cnri.do_api.Repository
Create a new digital object in this repository and return an interface to that object.
CRYPTO_ERROR - Static variable in exception net.cnri.dobj.DOException
 

D

DataElement - Class in net.cnri.do_api
This is a high level interface to a data element for a digital object.
deleteAttribute(String) - Method in class net.cnri.do_api.DataElement
Removes any attribute to the data element that has the given name.
deleteDataElement(String) - Method in class net.cnri.do_api.DigitalObject
 
deleteDigitalObject(String) - Method in class net.cnri.do_api.Repository
Deletes a specified digital object from the repository
DigitalObject - Class in net.cnri.do_api
This is a high level interface to an arbitrary object in the DNA system.
DOAuthentication - Interface in net.cnri.dobj
Interface for objects that can be used to authenticate themselves to the other side of a DOConnection link.
DOException - Exception in net.cnri.dobj
Exception used in most digital object components.
DOException(int, String) - Constructor for exception net.cnri.dobj.DOException
 
DOException(int) - Constructor for exception net.cnri.dobj.DOException
 

E

ENTITY_LIST - Static variable in class net.cnri.do_api.EntityMap
 
EntityMap - Class in net.cnri.do_api
An EntityMap stores a mapping from identifiers to local, human readable names.
EntityMap() - Constructor for class net.cnri.do_api.EntityMap
 
EntityMap.Entity - Class in net.cnri.do_api
 
EntityMap.Entity() - Constructor for class net.cnri.do_api.EntityMap.Entity
 

G

getAttribute(String, String) - Method in class net.cnri.do_api.DataElement
Returns the value of the data element attribute having the given name.
getAttribute(String, String) - Method in class net.cnri.do_api.DigitalObject
Associates the given attributeValue with the given attributeName for this object.
getAttribute(String, String) - Method in class net.cnri.do_api.EntityMap.Entity
 
getConnection() - Method in class net.cnri.do_api.Repository
Internal method to return the underlying connection that is used to communicate with this Repository.
getCredentials() - Method in interface net.cnri.dobj.DOAuthentication
Returns any certificates that supplement this entities authentication
getCredentials() - Method in class net.cnri.dobj.SecretKeyAuthentication
Retrieve the credentials from this user's digital object so that they can be presented to any servers during authentication.
getDataElement(String) - Method in class net.cnri.do_api.DigitalObject
Return a reference to the given data element within this object
getDataElementID() - Method in class net.cnri.do_api.DataElement
Returns the data element's identifier within the object
getDateCreated() - Method in class net.cnri.do_api.DataElement
Returns the data element's creation date and time
getDateCreated() - Method in class net.cnri.do_api.DigitalObject
Return the date that this object was created
getDateLastModified() - Method in class net.cnri.do_api.DataElement
Returns the date and time that the element was last modified
getDateLastModified() - Method in class net.cnri.do_api.DigitalObject
Return the date that this object was last modified
getDigitalObject() - Method in class net.cnri.do_api.DataElement
Return the DigitalObject of which this element is a part
getDigitalObject(String) - Method in class net.cnri.do_api.Repository
If the specified digital object exists in the repository, this method will return an instance of the DigitalObject class corresponding to that object.
getEntities() - Method in class net.cnri.do_api.EntityMap
Return a java.util.List containing the EntityMap.Entity objects in the list.
getEntity(int) - Method in class net.cnri.do_api.EntityMap
Return the address book entity at the given index
getEntityForID(String) - Method in class net.cnri.do_api.EntityMap
Return the entity with the given ID or null if no entity has that ID.
getEntityLabel(String) - Method in class net.cnri.do_api.EntityMap
Return a label that can be used to describe the entity having the given ID.
getEntityName(String, String) - Method in class net.cnri.do_api.EntityMap
Return the name that is associated with the given ID.
getErrorCode() - Method in exception net.cnri.dobj.DOException
 
getFriendlyMessageForException(Exception) - Static method in exception net.cnri.dobj.DOException
 
getID() - Method in class net.cnri.do_api.DigitalObject
Returns the identifier for this digital object
getID() - Method in interface net.cnri.dobj.DOAuthentication
Returns the identifier of the calling code.
getID() - Method in class net.cnri.dobj.PKAuthentication
Returns the identifier representing the entity that is supposed to be authenticated by this object.
getID() - Method in class net.cnri.dobj.SecretKeyAuthentication
Returns the identifier representing the entity that is supposed to be authenticated by this object.
getMessage() - Method in exception net.cnri.dobj.DOException
 
getNumEntities() - Method in class net.cnri.do_api.EntityMap
Get the number of known entities in the mapping/list
getRepository() - Method in class net.cnri.do_api.DigitalObject
Return the repository server through which this object is accessed
getSigAlgForKeyAlg(String) - Static method in class net.cnri.dobj.PKAuthentication
 
getSize() - Method in class net.cnri.do_api.DataElement
Gets the size in bytes of the data element, not including attributes

H

hasID(String) - Method in class net.cnri.do_api.EntityMap.Entity
 

I

ID_ATTRIBUTE - Static variable in class net.cnri.do_api.EntityMap
 
initialize() - Method in class net.cnri.dobj.PKAuthentication
 
INTERNAL_ERROR - Static variable in exception net.cnri.dobj.DOException
 

L

listAttributes() - Method in class net.cnri.do_api.DataElement
Lists all of the attribute name value pairs for the data element
listAttributes() - Method in class net.cnri.do_api.DigitalObject
Return the list of attribute names for this object
listDataElements() - Method in class net.cnri.do_api.DigitalObject
List the elements in this digital object
listObjects() - Method in class net.cnri.do_api.Repository
Return an iterator of object IDs that are contained in this repository.
loadFromObject(DigitalObject) - Method in class net.cnri.do_api.EntityMap
Load the entity map from the given DigitalObject
lookupCode(int) - Static method in exception net.cnri.dobj.DOException
 

N

NAME_ATTRIBUTE - Static variable in class net.cnri.do_api.EntityMap
 
net.cnri.do_api - package net.cnri.do_api
This package provides a high level interface for working with digital objects.
NETWORK_ERROR - Static variable in exception net.cnri.dobj.DOException
 
NO_SUCH_OBJECT_ERROR - Static variable in exception net.cnri.dobj.DOException
 

O

OBJECT_ALREADY_EXISTS - Static variable in exception net.cnri.dobj.DOException
 
OPERATION_NOT_AVAILABLE - Static variable in exception net.cnri.dobj.DOException
 

P

performOperation(String, HeaderSet) - Method in class net.cnri.do_api.DigitalObject
Invoke a low-level operation on this object, returning the input and output streams for the operation in a StreamPair.
PERMISSION_DENIED_ERROR - Static variable in exception net.cnri.dobj.DOException
 
PKAuthentication - Class in net.cnri.dobj
A PKAuthentication object uses a private key to prove our identity.
PKAuthentication(String, PrivateKey) - Constructor for class net.cnri.dobj.PKAuthentication
Construct an authentication object that uses the given private key to prove that we are the entity identified by myID.
PROTOCOL_ERROR - Static variable in exception net.cnri.dobj.DOException
 

R

read() - Method in class net.cnri.do_api.DataElement
Returns an InputStream from which the element's data can be read
removeEntity(EntityMap.Entity) - Method in class net.cnri.do_api.EntityMap
Remove the given entity from the list
REPLICATION_ERROR - Static variable in exception net.cnri.dobj.DOException
 
REPLICATION_ITEM_OUT_OF_DATE - Static variable in exception net.cnri.dobj.DOException
 
Repository - Class in net.cnri.do_api
This object provides high level access to a digital object repository.
Repository(DOAuthentication, String) - Constructor for class net.cnri.do_api.Repository
Constructor for a repository that interfaces an object that provides an interface to the with the given authentication information
Repository(String, DOClientConnection) - Constructor for class net.cnri.do_api.Repository
Construct a Repository instance which can be used to talk over existing connections to DO servers.
REPOSITORY_AUTHENTICATION_ERROR - Static variable in exception net.cnri.dobj.DOException
 

S

saveToObject(DigitalObject) - Method in class net.cnri.do_api.EntityMap
 
SecretKeyAuthentication - Class in net.cnri.dobj
A PKAuthentication object uses a secret key to prove our identity.
SecretKeyAuthentication(String, byte[]) - Constructor for class net.cnri.dobj.SecretKeyAuthentication
Construct an authentication object that uses the given private key to prove that we are the entity identified by myID.
SERIALIZED_ENCODING - Static variable in class net.cnri.do_api.Repository
 
SERVER_ERROR - Static variable in exception net.cnri.dobj.DOException
 
setAttribute(String, String) - Method in class net.cnri.do_api.DataElement
Associates the given attributeValue with the given attributeName for this data element.
setAttribute(String, String) - Method in class net.cnri.do_api.DigitalObject
Associates the given attributeValue with the given attributeName for this object.
setAttribute(String, String) - Method in class net.cnri.do_api.EntityMap.Entity
 
setUseEncryption(boolean) - Method in class net.cnri.do_api.Repository
Sets whether or not the connection to this repository will be encrypted.
signChallenge(HeaderSet, HeaderSet) - Method in interface net.cnri.dobj.DOAuthentication
Signs the given challenge message and puts the result (including any required parameters) into the given HeaderSet object.
signChallenge(HeaderSet, HeaderSet) - Method in class net.cnri.dobj.PKAuthentication
 
signChallenge(HeaderSet, HeaderSet) - Method in class net.cnri.dobj.SecretKeyAuthentication
 
STORAGE_ERROR - Static variable in exception net.cnri.dobj.DOException
 

T

toString() - Method in class net.cnri.do_api.DataElement
 
toString() - Method in class net.cnri.do_api.DigitalObject
Returns a nicely formatted label for this object
toString() - Method in class net.cnri.do_api.EntityMap.Entity
 
toString() - Method in class net.cnri.do_api.Repository
 
toString() - Method in exception net.cnri.dobj.DOException
 
toString() - Method in class net.cnri.dobj.PKAuthentication
 
toString() - Method in class net.cnri.dobj.SecretKeyAuthentication
 
TYPE_ATTRIBUTE - Static variable in class net.cnri.do_api.EntityMap
 

U

UNABLE_TO_LOCATE_OBJECT_ERROR - Static variable in exception net.cnri.dobj.DOException
 

V

verifyDataElement(String) - Method in class net.cnri.do_api.DigitalObject
Verifies whether or not the data element with the given name exists within this object
verifyDigitalObject(String) - Method in class net.cnri.do_api.Repository
Verifies that the specified digital object exists in the current repository

W

write(InputStream) - Method in class net.cnri.do_api.DataElement
Writes the bytes from the given InputStream to the data element, returning the total number of bytes written.

A C D E G H I L N O P R S T U V W