Documentation
¶
Index ¶
- type Factory
- type Role
- func (r *Role) GetIdentityInfo(ctx context.Context, id string) (idriver.IdentityInfo, error)
- func (r *Role) ID() identity.RoleType
- func (r *Role) IdentityIDs() ([]string, error)
- func (r *Role) MapToIdentity(ctx context.Context, v driver.WalletLookupID) (driver.Identity, string, error)
- func (r *Role) RegisterIdentity(ctx context.Context, config driver.IdentityConfiguration) error
- type StorageProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct { Logger logging.Logger TMSID token.TMSID Config driver.Config FSCIdentity driver.Identity NetworkDefaultIdentity driver.Identity IdentityProvider driver.IdentityProvider SignerService driver.SigService BinderService driver.BinderService StorageProvider StorageProvider DeserializerManager driver.DeserializerManager }
Factory is the factory for creating wallets, idemix and x509
func NewFactory ¶
func NewFactory( logger logging.Logger, TMSID token.TMSID, config driver.Config, fscIdentity driver.Identity, networkDefaultIdentity driver.Identity, identityProvider driver.IdentityProvider, signerService driver.SigService, binderService driver.BinderService, storageProvider StorageProvider, deserializerManager driver.DeserializerManager, ) *Factory
NewFactory creates a new Factory
type Role ¶
type Role struct {
// contains filtered or unexported fields
}
Role models a role whose identities are anonymous
func (*Role) GetIdentityInfo ¶
GetIdentityInfo returns the identity information for the given identity identifier
func (*Role) IdentityIDs ¶
func (*Role) MapToIdentity ¶
func (r *Role) MapToIdentity(ctx context.Context, v driver.WalletLookupID) (driver.Identity, string, error)
MapToIdentity returns the identity for the given argument
func (*Role) RegisterIdentity ¶
RegisterIdentity registers the given identity
type StorageProvider ¶
type StorageProvider interface {
IdentityStore(tmsID token.TMSID) (driver.IdentityStoreService, error)
}
Click to show internal directories.
Click to hide internal directories.