diff --git a/core/interfaces.go b/core/interfaces.go index 4c63a573b..8fbb09513 100644 --- a/core/interfaces.go +++ b/core/interfaces.go @@ -81,6 +81,12 @@ type CertificateAuthority interface { IssueCertificate(x509.CertificateRequest) (Certificate, error) } +type PolicyAuthority interface { + WellFormed(AcmeIdentifier) bool + WillingToIssue(AcmeIdentifier) bool + ChallengesFor(AcmeIdentifier) ([]Challenge, [][]int) +} + type StorageGetter interface { GetRegistration(string) (Registration, error) GetAuthorization(string) (Authorization, error)