All Packages Class Hierarchy This Package Previous Next Index
Class ajanta.util.Ticket
java.lang.Object
|
+----ajanta.util.Ticket
- public class Ticket
- extends Object
- implements Serializable
The Ticket 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:
- Ticketing
-
challenge
-
-
signature
-
-
signer
-
-
Ticket(Ticket, URN, PrivateKey)
- This constructor takes as parameter a Ticket object which has been
sent to the client by a server, and extracts the nonce contained in
it.
-
Ticket(URN, byte[], int)
-
-
toString()
- Converts the Ticket object to a String representation suitable for
printing onto the screen.
signer
public URN signer
signature
public byte signature[]
challenge
public int challenge
Ticket
public Ticket(URN u,
byte s[],
int n)
Ticket
public Ticket(Ticket t,
URN signer,
PrivateKey key) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException
- This constructor takes as parameter a Ticket object which has been
sent to the client by a server, and extracts the nonce contained in
it. This nonce is signed using the given private key, and stored in
this new Ticket object. Also, the nonce contained in the original
Ticket is then incremented, so that the Ticket can be reused for
future interactions with the same service.
- Parameters:
- t - The original Ticket containing the nonce to be signed.
- signer - The name of the client, to be inserted into the Ticket
being constructed here.
- key - The private key to be used for signing the nonce.
toString
public String toString()
- Converts the Ticket object to a String representation suitable for
printing onto the screen.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index