
Aut::Ticket - Authorization Framework - Tickets

See Aut. =head1 ABSTRACT
'Aut::Ticket' is part of the 'Aut' authorization framework It provides tickets that are the user's access to services and application parts. It also provides encryption/decryption for user data.

seed in the Aut::Ticket context,
is a (random) value of 32 digits,
that is generated when a new ticket is made and can be set through public methods.new(account,password) --> Aut::TicketThis method initializes a ticket with a given account and password and generates a new seed.
valid() --> booleanReturns true, if the ticket is valid, returns False, otherwise.
rights() --> stringReturns the currently assigned "rights" value to this ticket.
account() --> stringReturns the currently assigned account for this ticket.
pass() --> stringReturns the currently assigned password for this ticket.
seed() --> stringReturns the seed value of this ticket that is being used for encryption/decryption.
get(var) --> stringGets value for 'var' from the ticket.
invalidate() --> voidInvalidates a ticket.
set_rights(_rights) --> voidSets the rights value of the ticket to _rights.
set_pass(_pass) --> voidSets the password of the ticket to _pass.
set_seed(_seed) --> voidSets the seed value of the ticket (the encryption key) to _seed.
set(var,val) --> voidSets a variable 'var' in the ticket to value 'val'.
encrypt(text) --> base64 stringEncrypts text using Aut::Crypt, with key
seed(); returns a base64 encoded (with Aut::Base64) encrypted string.
decrypt(ciphertext) --> stringDecrypts text using Aut::Crypt, after it has been decoded with Aut::Base64. If the decryption is valid, it returns the decrypted string, otherwise
undefis returned.

Aut framework, Aut::Base64, Aut::Crypt.

Hans Oesterholt-Dijkema <oesterhol@cpan.org>

This library is free software; you can redistribute it and/or modify it under Artistic license.