2021-02-12 11:03:08 +00:00
|
|
|
package scep
|
|
|
|
|
|
|
|
import (
|
2021-02-26 13:00:47 +00:00
|
|
|
"context"
|
2021-02-12 16:02:39 +00:00
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/smallstep/certificates/authority/provisioner"
|
2021-02-12 11:03:08 +00: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 13:00:47 +00:00
|
|
|
AuthorizeSign(ctx context.Context, token string) ([]provisioner.SignOption, error)
|
2021-02-12 16:02:39 +00:00
|
|
|
GetName() string
|
|
|
|
DefaultTLSCertDuration() time.Duration
|
|
|
|
GetOptions() *provisioner.Options
|
2021-02-12 11:03:08 +00:00
|
|
|
}
|