provisioner.go 588 B

123456789101112131415161718192021
  1. package scep
  2. import (
  3. "context"
  4. "time"
  5. "github.com/smallstep/certificates/authority/provisioner"
  6. )
  7. // Provisioner is an interface that implements a subset of the provisioner.Interface --
  8. // only those methods required by the SCEP api/authority.
  9. type Provisioner interface {
  10. AuthorizeSign(ctx context.Context, token string) ([]provisioner.SignOption, error)
  11. GetName() string
  12. DefaultTLSCertDuration() time.Duration
  13. GetOptions() *provisioner.Options
  14. GetChallengePassword() string
  15. GetCapabilities() []string
  16. ShouldIncludeRootInChain() bool
  17. GetContentEncryptionAlgorithm() int
  18. }