pseudonymisation

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: EUPL-1.2 Imports: 20 Imported by: 0

Documentation

Overview

Package pseudonymisation is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config, httpClientFn authn.HTTPClientProvider) *Component

func (Component) IdentifierToToken

func (c Component) IdentifierToToken(ctx context.Context, identifier fhir.Identifier, localOrganizationURA string, recipientURA string, scope string) (*fhir.Identifier, error)

IdentifierToToken converts a BSN identifier to a pseudonymous transport token using the PRS service. The process follows RFC 9497 OPRF protocol: 1. Create PRS identifier from BSN 2. Derive key using HKDF 3. Blind the input using OPRF client 4. Send blinded input to PRS for evaluation 5. PRS returns the final pseudonymized identifier (deblinding happens at the consuming system/NVI)

type Config

type Config struct {
	PRSBaseURL string `koanf:"prsurl"`
}

type FakePseudonymizer

type FakePseudonymizer struct {
}

func (FakePseudonymizer) IdentifierToToken

func (f FakePseudonymizer) IdentifierToToken(ctx context.Context, identifier fhir.Identifier, localOrganizationURA string, recipientURA string, scope string) (*fhir.Identifier, error)

type MockPseudonymizer

type MockPseudonymizer struct {
	// contains filtered or unexported fields
}

MockPseudonymizer is a mock of Pseudonymizer interface.

func NewMockPseudonymizer

func NewMockPseudonymizer(ctrl *gomock.Controller) *MockPseudonymizer

NewMockPseudonymizer creates a new mock instance.

func (*MockPseudonymizer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPseudonymizer) IdentifierToToken

func (m *MockPseudonymizer) IdentifierToToken(ctx context.Context, identifier fhir.Identifier, localOrganizationURA, recipientURA, scope string) (*fhir.Identifier, error)

IdentifierToToken mocks base method.

type MockPseudonymizerMockRecorder

type MockPseudonymizerMockRecorder struct {
	// contains filtered or unexported fields
}

MockPseudonymizerMockRecorder is the mock recorder for MockPseudonymizer.

func (*MockPseudonymizerMockRecorder) IdentifierToToken

func (mr *MockPseudonymizerMockRecorder) IdentifierToToken(ctx, identifier, localOrganizationURA, recipientURA, scope any) *gomock.Call

IdentifierToToken indicates an expected call of IdentifierToToken.

type Pseudonymizer

type Pseudonymizer interface {
	IdentifierToToken(ctx context.Context, identifier fhir.Identifier, localOrganizationURA string, recipientURA string, scope string) (*fhir.Identifier, error)
}

Jump to

Keyboard shortcuts

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