Documentation ¶
Overview ¶
Package psk provides an authenticator based on pre-shared keys
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompletedConfig ¶
type CompletedConfig struct {
// contains filtered or unexported fields
}
type Config ¶
type Config struct { Keys IdentityMap }
func (*Config) Complete ¶
func (c *Config) Complete() (CompletedConfig, error)
type IdentityMap ¶
type PreSharedKeyAuthenticator ¶
type PreSharedKeyAuthenticator struct {
}func New ¶
func New(config CompletedConfig) *PreSharedKeyAuthenticator
func (*PreSharedKeyAuthenticator) Authenticate ¶
func (a *PreSharedKeyAuthenticator) Authenticate(ctx context.Context, t transport.Transporter) (*api.Identity, api.Decision)
Click to show internal directories.
Click to hide internal directories.