2019-01-08 08:19:50 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# abstract - abstract base classes for challenge handlers
|
|
|
|
# Copyright (c) Rudolf Mayerhofer, 2019.
|
|
|
|
# available under the ISC license, see LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
class AbstractChallengeHandler:
|
|
|
|
def __init__(self, config):
|
|
|
|
self.config = config
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def get_challenge_type():
|
|
|
|
raise NotImplemented
|
|
|
|
|
2019-01-14 19:36:01 +01:00
|
|
|
# @return datetime after which the challenge is valid
|
2019-01-08 08:19:50 +01:00
|
|
|
def create_challenge(self, domain, thumbprint, token):
|
|
|
|
raise NotImplemented
|
|
|
|
|
|
|
|
def destroy_challenge(self, domain, thumbprint, token):
|
|
|
|
raise NotImplemented
|