Documentation ¶
Index ¶
- func ECDSAKeyFunc(pk crypto.PublicKey) jwt.Keyfunc
- func MustNewECDSAIsserAndParser() (*auth.Issuer, *auth.Parser)
- func MustNewECDSAKeyPair() (*ecdsa.PrivateKey, *ecdsa.PublicKey)
- func MustNewRSAIsserAndParser() (*auth.Issuer, *auth.Parser)
- func MustNewRSAKeyPair() (*rsa.PrivateKey, *rsa.PublicKey)
- func NewECDSAIssuerAndParser() (*auth.Issuer, *auth.Parser, error)
- func NewECDSAIssuerAndParserFromKeyPair(private *ecdsa.PrivateKey, public *ecdsa.PublicKey) (*auth.Issuer, *auth.Parser)
- func NewECDSAKeyPair() (*ecdsa.PrivateKey, *ecdsa.PublicKey, error)
- func NewRSAIssuerAndParser() (*auth.Issuer, *auth.Parser, error)
- func NewRSAIssuerAndParserFromKeyPair(private *rsa.PrivateKey, public *rsa.PublicKey) (*auth.Issuer, *auth.Parser)
- func NewRSAKeyPair() (*rsa.PrivateKey, *rsa.PublicKey, error)
- func RSAKeyFunc(pk crypto.PublicKey) jwt.Keyfunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ECDSAKeyFunc ¶
ECDSAKeyFunc represents the keyfunc for the mock parser.
func MustNewECDSAIsserAndParser ¶ added in v0.21.2
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
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 ¶
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 ¶
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 ¶
RSAKeyFunc represents the keyfunc for the mock parser.
Types ¶
This section is empty.