orca.shirako.api
Interface ITicket

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
SharpTicket

public interface ITicket
extends java.lang.Cloneable

ITicket is intended to represent the interface for ticket implementations.

Note: This interface is in flux and will change as soon as we review the sharp implementation.

Plugin point for physical ticket implementations.


Method Summary
 java.lang.Object clone()
           
 ITicket extract(AuthToken issuer, AuthToken holder, int count, Term term)
           
 Term getTerm()
          Returns the term of this ticket
 int getType()
          Returns the resource type this ticket refers to
 int getUnits()
          Returns the number of units granted by this ticket
 

Method Detail

getType

int getType()
            throws java.lang.Exception
Returns the resource type this ticket refers to

Throws:
java.lang.Exception

getUnits

int getUnits()
             throws java.lang.Exception
Returns the number of units granted by this ticket

Throws:
java.lang.Exception

getTerm

Term getTerm()
             throws java.lang.Exception
Returns the term of this ticket

Throws:
java.lang.Exception

extract

ITicket extract(AuthToken issuer,
                AuthToken holder,
                int count,
                Term term)
                throws java.lang.Exception
Throws:
java.lang.Exception

clone

java.lang.Object clone()


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.