Documentation
¶
Index ¶
- type TestSigner
- func (t *TestSigner) GetKeys(ctx context.Context) ([]jwt.PublicKey, error)
- func (t *TestSigner) GetKeysByKID(ctx context.Context, kid string) ([]jwt.PublicKey, error)
- func (t *TestSigner) SignClaimsWithAlgorithm(alg, typHdr string, claims any) (string, error)
- func (t *TestSigner) SignWithAlgorithm(ctx context.Context, alg, typHdr string, payload []byte) (string, error)
- func (t *TestSigner) SupportedAlgorithms() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestSigner ¶
type TestSigner struct {
// contains filtered or unexported fields
}
func NewTestSigner ¶
func NewTestSigner(t testing.TB, algs ...string) *TestSigner
func (*TestSigner) GetKeysByKID ¶
func (*TestSigner) SignClaimsWithAlgorithm ¶
func (t *TestSigner) SignClaimsWithAlgorithm(alg, typHdr string, claims any) (string, error)
func (*TestSigner) SignWithAlgorithm ¶
func (*TestSigner) SupportedAlgorithms ¶
func (t *TestSigner) SupportedAlgorithms() []string
Click to show internal directories.
Click to hide internal directories.