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