tokenapi

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockedManagementService

func NewMockedManagementService(t *testing.T, tmsID token.TMSID) *token.ManagementService

NewMockedManagementService returns a mocked token.ManagementService

func NewMockedManagementServiceWithIssuers added in v0.16.0

func NewMockedManagementServiceWithIssuers(t *testing.T, tmsID token.TMSID, issuers []token.Identity) (*token.ManagementService, *mock.PublicParameters, *mock.Deserializer)

NewMockedManagementServiceWithIssuers returns a mocked token.ManagementService whose public parameters report the given issuers and whose Deserializer resolves issuer verifiers via the returned mock.Deserializer, so tests can control signature verification outcomes with deserializer.GetIssuerVerifierReturns. The returned mock.PublicParameters lets tests further adjust the current public parameters (e.g. pp.IssuersReturns(nil) to simulate no issuers).

func NewMockedManagementServiceWithValidation

func NewMockedManagementServiceWithValidation(t *testing.T, tmsID token.TMSID) (*token.ManagementService, *mock.Validator)

NewMockedManagementServiceWithValidation returns a mocked token.ManagementService and a validator

Types

This section is empty.

Jump to

Keyboard shortcuts

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