All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ajanta.agent.TargetedState

java.lang.Object
   |
   +----ajanta.agent.TargetedState

public class TargetedState
extends Object
In some applications, an agent programmer needs to protect items in the agent's state such that they are only accessible to certain servers . Items are targeted towards particular servers, and need to be selectively revealed to those servers alone. To facilitate this, we provide a TargetedState object in Ajanta's generic agent.

See Also:
ReadOnlyContainer, AppendOnlyContainer

Variable Index

 o objs
 o servers

Constructor Index

 o TargetedState(Vector, Vector, DSAPrivateKey)

Method Index

 o verify(DSAPublicKey)
It is called to ensure that the encrypted objects and their intended targets have not been tampered with.

Variables

 o objs
 public Vector objs
 o servers
 public Vector servers

Constructors

 o TargetedState
 public TargetedState(Vector objs,
                      Vector servers,
                      DSAPrivateKey key) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, IOException
Parameters:
objs - vector of objects encrypted using the public key of the server for which it is targeted.
servers - vector of server identities corresponding to each entry in objs
key - owner's DSA private key

Methods

 o verify
 public boolean verify(DSAPublicKey key) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, IOException
It is called to ensure that the encrypted objects and their intended targets have not been tampered with.

Parameters:
key - agent's public key
Returns:
true if the not tempered, false otherwise.

All Packages  Class Hierarchy  This Package  Previous  Next  Index