dataVerifier

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Store is a reference to the Storage being used

Functions

This section is empty.

Types

type DataVerifier

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

func NewDataVerifier

func NewDataVerifier(hashAlgorithm string, publicKey string, signature string) *DataVerifier

func (*DataVerifier) RemoveTempData

func (dataVerifier *DataVerifier) RemoveTempData(orgID string, objectType string, objectID string, destinationDataURI string) common.SyncServiceError

CleanUp function is to clean up the temp file created during data verification

func (*DataVerifier) StoreVerifiedData

func (dataVerifier *DataVerifier) StoreVerifiedData(orgID string, objectType string, objectID string, destinationDataURI string) common.SyncServiceError

StoreVerifiedData will store the data from temp data that generated during data verification. And remove temp data

func (*DataVerifier) VerifyDataSignature

func (dataVerifier *DataVerifier) VerifyDataSignature(data io.Reader, orgID string, objectType string, objectID string, destinationDataURI string) (bool, common.SyncServiceError)

VerifyDataSignature is to verify the data. This function will generate the tmp data in storage. Call RemoveTempData() after verification to remove the tmp data

Jump to

Keyboard shortcuts

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