ajanta.agent
Class Credentials

java.lang.Object
  |
  +--ajanta.agent.Credentials
All Implemented Interfaces:
java.io.Serializable

public class Credentials
extends java.lang.Object
implements java.io.Serializable

This class represents the credential object carried by each agent object. It is used as a tamperproof identiy of the agent. It is signed by the owner's or creator's DSA key.

See Also:
Serialized Form

Field Summary
 ajanta.naming.URN codeBase
          This is the URN of the server which will be contacted for the agent's classes.
 ajanta.util.AjantaIdentity creator
          Agent creator's identity object.
 java.security.PublicKey encryptKey
          Agent's El-Gamal key for any encrypted communication.
 ajanta.util.AjantaIdentity guardian
          Agent guardian's identity object.
 ajanta.naming.URN name
          This URN is the name of the agent.
 ajanta.util.AjantaIdentity owner
          Agent owner's identity object.
 java.security.PublicKey verifyKey
          Agent's DSA key for signing.
 
Constructor Summary
Credentials(ajanta.util.AjantaIdentity owner, ajanta.util.AjantaIdentity creator, ajanta.util.AjantaIdentity guardian, ajanta.naming.URN name, ajanta.naming.URN codeBase)
          Constructor - creator is used as the guardian and no public keys are specified.
Credentials(ajanta.util.AjantaIdentity owner, ajanta.util.AjantaIdentity creator, ajanta.util.AjantaIdentity guardian, ajanta.naming.URN name, ajanta.naming.URN codeBase, java.security.PublicKey encryptKey, java.security.PublicKey verifyKey)
          Constructor - creator is used as the guardian.
Credentials(ajanta.util.AjantaIdentity owner, ajanta.util.AjantaIdentity creator, ajanta.naming.URN name, ajanta.naming.URN codeBase)
          Constructor - creator is used as the guardian and no public keys are specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public ajanta.naming.URN name
This URN is the name of the agent.


encryptKey

public java.security.PublicKey encryptKey
Agent's El-Gamal key for any encrypted communication.


verifyKey

public java.security.PublicKey verifyKey
Agent's DSA key for signing.


owner

public ajanta.util.AjantaIdentity owner
Agent owner's identity object.


creator

public ajanta.util.AjantaIdentity creator
Agent creator's identity object.


guardian

public ajanta.util.AjantaIdentity guardian
Agent guardian's identity object.


codeBase

public ajanta.naming.URN codeBase
This is the URN of the server which will be contacted for the agent's classes.

Constructor Detail

Credentials

public Credentials(ajanta.util.AjantaIdentity owner,
                   ajanta.util.AjantaIdentity creator,
                   ajanta.naming.URN name,
                   ajanta.naming.URN codeBase)
Constructor - creator is used as the guardian and no public keys are specified.

Parameters:
owner - Agent owner's identity object
creator - Agent creator's identity object.
name - agent's URN
codeBase - code base URN

Credentials

public Credentials(ajanta.util.AjantaIdentity owner,
                   ajanta.util.AjantaIdentity creator,
                   ajanta.util.AjantaIdentity guardian,
                   ajanta.naming.URN name,
                   ajanta.naming.URN codeBase)
Constructor - creator is used as the guardian and no public keys are specified.

Parameters:
owner - Agent owner's identity object
creator - Agent creator's identity object.
guardian - Agent guardian's identity object.
name - agent's URN
codeBase - code base URN

Credentials

public Credentials(ajanta.util.AjantaIdentity owner,
                   ajanta.util.AjantaIdentity creator,
                   ajanta.util.AjantaIdentity guardian,
                   ajanta.naming.URN name,
                   ajanta.naming.URN codeBase,
                   java.security.PublicKey encryptKey,
                   java.security.PublicKey verifyKey)
Constructor - creator is used as the guardian.

Parameters:
owner - Agent owner's identity object
creator - Agent creator's identity object.
guardian - Agent guardian's identity object.
name - agent's URN
codeBase - code base URN
encryptKey - El-Gamal public keys.
verifyKey - DSA public keys.