Documentation ¶
Overview ¶
Package certauth
Index ¶
- Variables
- func HashCert(cert *x509.Certificate) string
- type CertAuth
- func (s *CertAuth) Authenticate(r *mdm.Request, m *mdm.Authenticate) error
- func (s *CertAuth) CheckOut(r *mdm.Request, m *mdm.CheckOut) error
- func (s *CertAuth) CommandAndReportResults(r *mdm.Request, results *mdm.CommandResults) (*mdm.Command, error)
- func (s *CertAuth) DeclarativeManagement(r *mdm.Request, m *mdm.DeclarativeManagement) ([]byte, error)
- func (s *CertAuth) GetBootstrapToken(r *mdm.Request, m *mdm.GetBootstrapToken) (*mdm.BootstrapToken, error)
- func (s *CertAuth) SetBootstrapToken(r *mdm.Request, m *mdm.SetBootstrapToken) error
- func (s *CertAuth) TokenUpdate(r *mdm.Request, m *mdm.TokenUpdate) error
- func (s *CertAuth) UserAuthenticate(r *mdm.Request, m *mdm.UserAuthenticate) ([]byte, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func HashCert ¶ added in v0.6.0
func HashCert(cert *x509.Certificate) string
HashCert returns the string representation
Types ¶
type CertAuth ¶
type CertAuth struct {
// contains filtered or unexported fields
}
func New ¶
func New(next service.CheckinAndCommandService, storage storage.CertAuthStore, opts ...Option) *CertAuth
New creates a new certificate authorization middleware service. It will forward requests to next or return errors for failing authentication.
func (*CertAuth) Authenticate ¶
func (*CertAuth) CommandAndReportResults ¶
func (*CertAuth) DeclarativeManagement ¶ added in v0.3.0
func (*CertAuth) GetBootstrapToken ¶
func (s *CertAuth) GetBootstrapToken(r *mdm.Request, m *mdm.GetBootstrapToken) (*mdm.BootstrapToken, error)
func (*CertAuth) SetBootstrapToken ¶
func (*CertAuth) TokenUpdate ¶
func (*CertAuth) UserAuthenticate ¶
Click to show internal directories.
Click to hide internal directories.