mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-05 21:20:34 +00:00
20 lines
518 B
Go
20 lines
518 B
Go
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
|
|
GetChallengePassword() string
|
|
GetCapabilities() []string
|
|
}
|