Added validator code

This commit is contained in:
Brad Warren
2015-07-22 13:47:09 -07:00
4 changed files with 192 additions and 6 deletions
+6 -6
View File
@@ -384,18 +384,18 @@ class IDisplay(zope.interface.Interface):
class IValidator(zope.interface.Interface):
"""Configuration validator."""
def redirect(name):
def redirect(hostname, port=80, headers=None):
"""Verify redirect to HTTPS."""
def ocsp_stapling(name):
"""Verify ocsp stapling for domain."""
def https(names):
def https(hostname, port=443, headers=None):
"""Verify HTTPS is enabled for domain."""
def hsts(name):
def hsts(hostname):
"""Verify HSTS header is enabled."""
def ocsp_stapling(hostname):
"""Verify ocsp stapling for domain."""
class IReporter(zope.interface.Interface):
"""Interface to collect and display information to the user."""