certificates/scep/provisioner.go

22 lines
588 B
Go
Raw Permalink Normal View History

package scep
import (
"context"
"time"
"github.com/smallstep/certificates/authority/provisioner"
)
// Provisioner is an interface that implements a subset of the provisioner.Interface --
// only those methods required by the SCEP api/authority.
type Provisioner interface {
AuthorizeSign(ctx context.Context, token string) ([]provisioner.SignOption, error)
GetName() string
DefaultTLSCertDuration() time.Duration
GetOptions() *provisioner.Options
2021-03-06 23:30:37 +00:00
GetChallengePassword() string
GetCapabilities() []string
2022-01-19 10:31:33 +00:00
ShouldIncludeRootInChain() bool
GetContentEncryptionAlgorithm() int
}