|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ajanta.util.Ticketing
Base ticketing class.This object take care of create and verify ticket. Imporantly it stores the challeges send to the other.
Field Summary | |
protected java.security.Signature |
caller_dsa
|
protected java.util.Hashtable |
challenges
|
Constructor Summary | |
Ticketing(ajanta.naming.URN name,
java.security.PrivateKey k)
Constructor |
Method Summary | |
int |
getChallenge(ajanta.naming.URN callee,
ajanta.util.ContextObject context)
register nonce for initial challenge, so that it can be used for verification |
ajanta.util.Ticket |
getTicket(ajanta.naming.URN caller,
int nonce,
ajanta.util.ContextObject context)
Gets a ticket for the caller |
boolean |
verifyTicket(ajanta.util.Ticket t,
java.security.PublicKey vk)
verifies a ticket |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Hashtable challenges
protected java.security.Signature caller_dsa
Constructor Detail |
public Ticketing(ajanta.naming.URN name, java.security.PrivateKey k)
name
- - the ticket granterk
- - private key of the ticket granter who will sign the ticketMethod Detail |
public int getChallenge(ajanta.naming.URN callee, ajanta.util.ContextObject context)
callee
- - to whom the initial challenge is sent
public ajanta.util.Ticket getTicket(ajanta.naming.URN caller, int nonce, ajanta.util.ContextObject context)
caller
- for whom the ticket will be issuednonce
- the challenge provoded by the callerpublic boolean verifyTicket(ajanta.util.Ticket t, java.security.PublicKey vk) throws java.rmi.RemoteException, java.security.InvalidKeyException, java.security.SignatureException
t
- - the ticket which would be verified.vk
- - the public key of the ticket granter
java.rmi.RemoteException
java.security.InvalidKeyException
java.security.SignatureException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |