credential

package
v2.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAPool

type CAPool struct {
	// contains filtered or unexported fields
}

func MakeCAPool

func MakeCAPool(caPool CAPoolGetter, getCAPool GetCAPool) CAPool

func (CAPool) GetPool

func (c CAPool) GetPool() (*x509.CertPool, error)

func (CAPool) IsValid

func (c CAPool) IsValid() bool

type CAPoolGetter

type CAPoolGetter = interface {
	IsValid() bool
	GetPool() (*x509.CertPool, error)
}

type Config

type GetCAPool

type GetCAPool func() []*x509.Certificate

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config, save func()) *Manager

func (*Manager) AddOrReplaceCredential

func (m *Manager) AddOrReplaceCredential(c credential.Credential)

func (*Manager) AddOrReplaceCredentials

func (m *Manager) AddOrReplaceCredentials(ca ...credential.Credential)

func (*Manager) ClearCredentials

func (m *Manager) ClearCredentials()

func (*Manager) Close

func (m *Manager) Close()

func (*Manager) ExportConfig

func (m *Manager) ExportConfig() Config

func (*Manager) Get

func (m *Manager) Get(request *net.Request) (*pool.Message, error)

func (*Manager) GetCAPool

func (m *Manager) GetCAPool() []*x509.Certificate

func (*Manager) Post

func (m *Manager) Post(request *net.Request) (*pool.Message, error)

func (*Manager) RemoveCredentials

func (m *Manager) RemoveCredentials(ids ...int)

func (*Manager) RemoveCredentialsBySubjects

func (m *Manager) RemoveCredentialsBySubjects(subjects ...string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL