1
0
mirror of https://github.com/moepman/acertmgr.git synced 2024-11-16 15:49:17 +01:00
acertmgr/modes/abstract.py

23 lines
603 B
Python
Raw Normal View History

#!/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
# @return datetime after which the challenge is valid
def create_challenge(self, domain, thumbprint, token):
raise NotImplemented
def destroy_challenge(self, domain, thumbprint, token):
raise NotImplemented