ajanta.util
Class AgentTicket

java.lang.Object
  |
  +--ajanta.util.AgentTicket
All Implemented Interfaces:
java.io.Serializable

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

The AgentTicket class represents a type of capability required by clients to invoke services which require authentication. It contains the ticket holder's name (URN) along with its signature on a nonce, i.e. a challenge which was previously sent to it by the service. It can optionally contain anothe nonce of its own, which challenges the service to prove its identity.

See Also:
AgentTicketing, Serialized Form

Field Summary
 ajanta.naming.CascadedCertificate cc
           
 int challenge
           
 ajanta.agent.Credentials cred
           
 java.security.cert.X509Certificate locationCert
           
 byte[] signature
           
 java.security.cert.X509Certificate userCert
           
 
Constructor Summary
AgentTicket(byte[] signature, int challenge, ajanta.agent.Credentials cred, byte[] creatorSignature, java.security.cert.X509Certificate userCert, java.security.cert.X509Certificate locationCert, ajanta.naming.CascadedCertificate cc)
           
 
Method Summary
 java.lang.String toString()
          Converts the AgentTicket object to a String representation suitable for printing onto the screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

signature

public byte[] signature

challenge

public int challenge

cred

public ajanta.agent.Credentials cred

userCert

public java.security.cert.X509Certificate userCert

locationCert

public java.security.cert.X509Certificate locationCert

cc

public ajanta.naming.CascadedCertificate cc
Constructor Detail

AgentTicket

public AgentTicket(byte[] signature,
                   int challenge,
                   ajanta.agent.Credentials cred,
                   byte[] creatorSignature,
                   java.security.cert.X509Certificate userCert,
                   java.security.cert.X509Certificate locationCert,
                   ajanta.naming.CascadedCertificate cc)
Method Detail

toString

public java.lang.String toString()
Converts the AgentTicket object to a String representation suitable for printing onto the screen.

Overrides:
toString in class java.lang.Object