'Get expires timeout seconds from parameters.'

@staticmethod
def _get_expires(params):

    expires = None
    if ('expires' in params):
        expires = params['expires']
    elif ('Expires' in params):
        expires = params['Expires']
    if expires:
        try:
            return int(expires)
        except Exception:
            pass
    return (int(time.time()) + EXPIRATION_SECONDS)
