mock

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance

func (*MockClient) DecryptKeyAndCipherTextFor

func (m *MockClient) DecryptKeyAndCipherTextFor(cipherText types.DoubleEncryptedCipherText, legalEntity types.LegalEntity) ([]byte, error)

DecryptKeyAndCipherTextFor mocks base method

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) EncryptKeyAndPlainTextWith

func (m *MockClient) EncryptKeyAndPlainTextWith(plainText []byte, keys []jwk.Key) (types.DoubleEncryptedCipherText, error)

EncryptKeyAndPlainTextWith mocks base method

func (*MockClient) ExternalIdFor

func (m *MockClient) ExternalIdFor(subject, actor string, entity types.LegalEntity) ([]byte, error)

ExternalIdFor mocks base method

func (*MockClient) GenerateKeyPairFor

func (m *MockClient) GenerateKeyPairFor(legalEntity types.LegalEntity) error

GenerateKeyPairFor mocks base method

func (*MockClient) GetOpaquePrivateKey

func (m *MockClient) GetOpaquePrivateKey(entity types.LegalEntity) (crypto.Signer, error)

GetOpaquePrivateKey mocks base method

func (*MockClient) JWSSignEphemeral

func (m *MockClient) JWSSignEphemeral(payload []byte, ca types.LegalEntity, csr x509.CertificateRequest, signingTime time.Time) ([]byte, error)

JWSSignEphemeral mocks base method

func (*MockClient) KeyExistsFor

func (m *MockClient) KeyExistsFor(legalEntity types.LegalEntity) bool

KeyExistsFor mocks base method

func (*MockClient) PublicKeyInJWK

func (m *MockClient) PublicKeyInJWK(legalEntity types.LegalEntity) (jwk.Key, error)

PublicKeyInJWK mocks base method

func (*MockClient) PublicKeyInPEM

func (m *MockClient) PublicKeyInPEM(legalEntity types.LegalEntity) (string, error)

PublicKeyInPEM mocks base method

func (*MockClient) SignCertificate

func (m *MockClient) SignCertificate(entity, ca types.LegalEntity, pkcs10 []byte, profile pkg.CertificateProfile) ([]byte, error)

SignCertificate mocks base method

func (*MockClient) SignFor

func (m *MockClient) SignFor(data []byte, legalEntity types.LegalEntity) ([]byte, error)

SignFor mocks base method

func (*MockClient) SignJwtFor

func (m *MockClient) SignJwtFor(claims map[string]interface{}, legalEntity types.LegalEntity) (string, error)

SignJwtFor mocks base method

func (*MockClient) VerifyJWS

func (m *MockClient) VerifyJWS(signature []byte, signingTime time.Time, certVerifier pkg.CertificateVerifier) ([]byte, error)

VerifyJWS mocks base method

func (*MockClient) VerifyWith

func (m *MockClient) VerifyWith(data, sig []byte, jwk jwk.Key) (bool, error)

VerifyWith mocks base method

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient

func (*MockClientMockRecorder) DecryptKeyAndCipherTextFor

func (mr *MockClientMockRecorder) DecryptKeyAndCipherTextFor(cipherText, legalEntity interface{}) *gomock.Call

DecryptKeyAndCipherTextFor indicates an expected call of DecryptKeyAndCipherTextFor

func (*MockClientMockRecorder) EncryptKeyAndPlainTextWith

func (mr *MockClientMockRecorder) EncryptKeyAndPlainTextWith(plainText, keys interface{}) *gomock.Call

EncryptKeyAndPlainTextWith indicates an expected call of EncryptKeyAndPlainTextWith

func (*MockClientMockRecorder) ExternalIdFor

func (mr *MockClientMockRecorder) ExternalIdFor(subject, actor, entity interface{}) *gomock.Call

ExternalIdFor indicates an expected call of ExternalIdFor

func (*MockClientMockRecorder) GenerateKeyPairFor

func (mr *MockClientMockRecorder) GenerateKeyPairFor(legalEntity interface{}) *gomock.Call

GenerateKeyPairFor indicates an expected call of GenerateKeyPairFor

func (*MockClientMockRecorder) GetOpaquePrivateKey

func (mr *MockClientMockRecorder) GetOpaquePrivateKey(entity interface{}) *gomock.Call

GetOpaquePrivateKey indicates an expected call of GetOpaquePrivateKey

func (*MockClientMockRecorder) JWSSignEphemeral

func (mr *MockClientMockRecorder) JWSSignEphemeral(payload, ca, csr, signingTime interface{}) *gomock.Call

JWSSignEphemeral indicates an expected call of JWSSignEphemeral

func (*MockClientMockRecorder) KeyExistsFor

func (mr *MockClientMockRecorder) KeyExistsFor(legalEntity interface{}) *gomock.Call

KeyExistsFor indicates an expected call of KeyExistsFor

func (*MockClientMockRecorder) PublicKeyInJWK

func (mr *MockClientMockRecorder) PublicKeyInJWK(legalEntity interface{}) *gomock.Call

PublicKeyInJWK indicates an expected call of PublicKeyInJWK

func (*MockClientMockRecorder) PublicKeyInPEM

func (mr *MockClientMockRecorder) PublicKeyInPEM(legalEntity interface{}) *gomock.Call

PublicKeyInPEM indicates an expected call of PublicKeyInPEM

func (*MockClientMockRecorder) SignCertificate

func (mr *MockClientMockRecorder) SignCertificate(entity, ca, pkcs10, profile interface{}) *gomock.Call

SignCertificate indicates an expected call of SignCertificate

func (*MockClientMockRecorder) SignFor

func (mr *MockClientMockRecorder) SignFor(data, legalEntity interface{}) *gomock.Call

SignFor indicates an expected call of SignFor

func (*MockClientMockRecorder) SignJwtFor

func (mr *MockClientMockRecorder) SignJwtFor(claims, legalEntity interface{}) *gomock.Call

SignJwtFor indicates an expected call of SignJwtFor

func (*MockClientMockRecorder) VerifyJWS

func (mr *MockClientMockRecorder) VerifyJWS(signature, signingTime, certVerifier interface{}) *gomock.Call

VerifyJWS indicates an expected call of VerifyJWS

func (*MockClientMockRecorder) VerifyWith

func (mr *MockClientMockRecorder) VerifyWith(data, sig, jwk interface{}) *gomock.Call

VerifyWith indicates an expected call of VerifyWith

Jump to

Keyboard shortcuts

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