NAME

FusionInventory::Agent::HTTP::Session - An abstract HTTP session

DESCRIPTION

This is an abstract class for HTTP sessions. It can be used to store peer connection status.

METHODS

new(%params)

The constructor. The following parameters are allowed, as keys of the %params hash:

logger

the logger object to use (default: a new stderr logger)

timer

the initial timer used when restoring a session from storage

nonce

the nonce used to compute the final secret when restoring a session from storage

timeout

the session timeout for session expiration (default to 60, in seconds)

authorized()

Return true if provided secret matches the token.

expired()

Return true when a session expired.

nonce()

Return session nonce creating one if not available.

dump()

Return session hash to be stored for session persistence.