Solstice::Model::FileTicket - An interface for fetching one time use tickets for files.


Solstice documentation  | view source Contained in the Solstice distribution.

Index


NAME

Top

Solstice::Model::FileTicket - An interface for fetching one time use tickets for files.

SYNOPSIS

Top

  # Create a new ticket for a file
  my $ticket = Solstice::Model::FileTicket->new({ file => $file });

  # Get a nice, encrypted id
  my $key    = $ticket->getKey();

  # Create a ticket based on a key
  # If it's not valid, $ticket will be undefined.
  my $ticket = Solstice::Model::FileTicket->new({ key => $key });

  # Get the file id back out of the ticket.
  # Should we add a getFile() method?
  my $file_id = $ticket->getFileID();

  # Expire the ticket
  $ticket->expire();

Export

None by default.

Methods

new()

Constructor.

expire()

Removes the ticket.

getParamName()

Private Methods

_initByKey($key)

Loads the ticket for the given key.

_initByFile($file)

Creates and stores a new ticket for the given file. The file must be stored.

_getAccessorDefinition()

AUTHOR

Top

Catalyst Research & Development Group, <catalyst@u.washington.edu>

VERSION

Top

$Revision: $

SEE ALSO

Top

Solstice::Model, perl.

COPYRIGHT

Top


Solstice documentation  | view source Contained in the Solstice distribution.