parameters: (self, name, value, max_age=None)
docstring: Deserializes a signed cookie value.
  
          :param name:
              Cookie name.
          :param value:
              A cookie value to be deserialized.
          :param max_age:
              Maximum age in seconds for a valid cookie. If the cookie is older
              than this, returns None.
          :returns:
              The deserialized secure cookie, or None if it is not valid.
docstring_summary: Deserializes a signed cookie value.
docstring_tokens: Deserializes a signed cookie value .
function: def deserialize(self, name, value, max_age=None):
          """Deserializes a signed cookie value.
  
          :param name:
              Cookie name.
          :param value:
              A cookie value to be deserialized.
          :param max_age:
              Maximum age in seconds for a valid cookie. If the cookie is older
              than this, returns None.
          :returns:
              The deserialized secure cookie, or None if it is not valid.
          """
          if not value:
              return None
  
          # Unquote for old WebOb.
          value = Cookie._unquote(value)
  
          parts = value.split('|')
          if len(parts) != 3:
              return None
  
          signature = self._get_signature(name, parts[0], parts[1])
  
          if not security.compare_hashes(parts[2], signature):
              logging.warning('Invalid cookie signature %r', value)
              return None
  
          if max_age is not None:
              if int(parts[1]) < self._get_timestamp() - max_age:
                  logging.warning('Expired cookie %r', value)
                  return None
  
          try:
              return self._decode(parts[0])
          except Exception, e:
              logging.warning('Cookie value failed to be decoded: %r', parts[0])
              return None
function_tokens: def deserialize ( self , name , value , max_age = None ) : if not value : return None # Unquote for old WebOb. value = Cookie . _unquote ( value ) parts = value . split ( '|' ) if len ( parts ) != 3 : return None signature = self . _get_signature ( name , parts [ 0 ] , parts [ 1 ] ) if not security . compare_hashes ( parts [ 2 ] , signature ) : logging . warning ( 'Invalid cookie signature %r' , value ) return None if max_age is not None : if int ( parts [ 1 ] ) < self . _get_timestamp ( ) - max_age : logging . warning ( 'Expired cookie %r' , value ) return None try : return self . _decode ( parts [ 0 ] ) except Exception , e : logging . warning ( 'Cookie value failed to be decoded: %r' , parts [ 0 ] ) return None