authmock

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ECDSAKeyFunc

func ECDSAKeyFunc(pk crypto.PublicKey) jwt.Keyfunc

ECDSAKeyFunc represents the keyfunc for the mock parser.

func MustNewECDSAIsserAndParser added in v0.21.2

func MustNewECDSAIsserAndParser() (*auth.Issuer, *auth.Parser)

MustNewECDSAIsserAndParser creates a new issuer and parser with a random key pair and will panic on failure.

func MustNewECDSAKeyPair added in v0.21.2

func MustNewECDSAKeyPair() (*ecdsa.PrivateKey, *ecdsa.PublicKey)

MustNewECDSAKeyPair will create a key pair and will panic on failure.

func MustNewRSAIsserAndParser added in v0.21.2

func MustNewRSAIsserAndParser() (*auth.Issuer, *auth.Parser)

MustNewRSAIsserAndParser creates a new issuer and parser with a random key pair and will panic on failure.

func MustNewRSAKeyPair added in v0.21.2

func MustNewRSAKeyPair() (*rsa.PrivateKey, *rsa.PublicKey)

MustNewRSAKeyPair will create a key pair and will panic on failure.

func NewECDSAIssuerAndParser

func NewECDSAIssuerAndParser() (*auth.Issuer, *auth.Parser, error)

NewECDSAIssuerAndParser creates a new issuer with a random key pair.

func NewECDSAIssuerAndParserFromKeyPair added in v0.21.2

func NewECDSAIssuerAndParserFromKeyPair(private *ecdsa.PrivateKey, public *ecdsa.PublicKey) (*auth.Issuer, *auth.Parser)

NewECDSAIssuerAndParserFromKeyPair creates a new issuer and parser from an ecdsa key pair.

func NewECDSAKeyPair added in v0.21.2

func NewECDSAKeyPair() (*ecdsa.PrivateKey, *ecdsa.PublicKey, error)

NewECDSAKeyPair will create a key pair.

func NewRSAIssuerAndParser

func NewRSAIssuerAndParser() (*auth.Issuer, *auth.Parser, error)

NewRSAIssuerAndParser creates a new issuer with a random key pair.

func NewRSAIssuerAndParserFromKeyPair added in v0.21.2

func NewRSAIssuerAndParserFromKeyPair(private *rsa.PrivateKey, public *rsa.PublicKey) (*auth.Issuer, *auth.Parser)

NewRSAIssuerAndParserFromKeyPair creates a new issuer and parser from an rsa key pair.

func NewRSAKeyPair added in v0.21.2

func NewRSAKeyPair() (*rsa.PrivateKey, *rsa.PublicKey, error)

NewRSAKeyPair will create a key pair.

func RSAKeyFunc

func RSAKeyFunc(pk crypto.PublicKey) jwt.Keyfunc

RSAKeyFunc represents the keyfunc for the mock parser.

Types

This section is empty.

Jump to

Keyboard shortcuts

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