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
-
objs
-
-
servers
-
-
TargetedState(Vector, Vector, DSAPrivateKey)
-
-
verify(DSAPublicKey)
-
It is called to ensure that the encrypted objects and their
intended targets have not been tampered with.
objs
public Vector objs
servers
public Vector servers
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
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