mock

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: GPL-3.0 Imports: 9 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) CalculateExternalId

func (m *MockClient) CalculateExternalId(subject, actor string, key types.KeyIdentifier) ([]byte, error)

CalculateExternalId mocks base method

func (*MockClient) DecryptKeyAndCipherText

func (m *MockClient) DecryptKeyAndCipherText(cipherText types.DoubleEncryptedCipherText, key types.KeyIdentifier) ([]byte, error)

DecryptKeyAndCipherText 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) EncryptKeyAndPlainText

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

EncryptKeyAndPlainText mocks base method

func (*MockClient) GenerateKeyPair

func (m *MockClient) GenerateKeyPair(key types.KeyIdentifier, overwrite bool) (crypto.PublicKey, error)

GenerateKeyPair mocks base method

func (*MockClient) GenerateVendorCACSR added in v0.15.0

func (m *MockClient) GenerateVendorCACSR(name string) ([]byte, error)

GenerateVendorCACSR mocks base method

func (*MockClient) GetPrivateKey

func (m *MockClient) GetPrivateKey(key types.KeyIdentifier) (crypto.Signer, error)

GetPrivateKey mocks base method

func (*MockClient) GetPublicKeyAsJWK

func (m *MockClient) GetPublicKeyAsJWK(key types.KeyIdentifier) (jwk.Key, error)

GetPublicKeyAsJWK mocks base method

func (*MockClient) GetPublicKeyAsPEM

func (m *MockClient) GetPublicKeyAsPEM(key types.KeyIdentifier) (string, error)

GetPublicKeyAsPEM mocks base method

func (*MockClient) GetSigningCertificate added in v0.15.0

func (m *MockClient) GetSigningCertificate(entity types.LegalEntity) (*x509.Certificate, crypto.PrivateKey, error)

GetSigningCertificate mocks base method

func (*MockClient) GetTLSCertificate

func (m *MockClient) GetTLSCertificate(entity types.LegalEntity) (*x509.Certificate, crypto.PrivateKey, error)

GetTLSCertificate mocks base method

func (*MockClient) PrivateKeyExists

func (m *MockClient) PrivateKeyExists(key types.KeyIdentifier) bool

PrivateKeyExists mocks base method

func (*MockClient) RenewSigningCertificate added in v0.15.0

func (m *MockClient) RenewSigningCertificate(entity types.LegalEntity) (*x509.Certificate, crypto.PrivateKey, error)

RenewSigningCertificate mocks base method

func (*MockClient) RenewTLSCertificate added in v0.15.0

func (m *MockClient) RenewTLSCertificate(entity types.LegalEntity) (*x509.Certificate, crypto.PrivateKey, error)

RenewTLSCertificate mocks base method

func (*MockClient) SelfSignVendorCACertificate added in v0.15.0

func (m *MockClient) SelfSignVendorCACertificate(name string) (*x509.Certificate, error)

SelfSignVendorCACertificate mocks base method

func (*MockClient) Sign

func (m *MockClient) Sign(data []byte, key types.KeyIdentifier) ([]byte, error)

Sign mocks base method

func (*MockClient) SignCertificate

func (m *MockClient) SignCertificate(subjectKey, caKey types.KeyIdentifier, pkcs10 []byte, profile pkg.CertificateProfile) ([]byte, error)

SignCertificate mocks base method

func (*MockClient) SignJWS added in v0.15.0

func (m *MockClient) SignJWS(payload []byte, key types.KeyIdentifier) ([]byte, error)

SignJWS mocks base method

func (*MockClient) SignJWSEphemeral

func (m *MockClient) SignJWSEphemeral(payload []byte, caKey types.KeyIdentifier, csr x509.CertificateRequest, signingTime time.Time) ([]byte, error)

SignJWSEphemeral mocks base method

func (*MockClient) SignJWT

func (m *MockClient) SignJWT(claims map[string]interface{}, key types.KeyIdentifier) (string, error)

SignJWT mocks base method

func (*MockClient) SignJWTRFC003 added in v0.16.0

func (m *MockClient) SignJWTRFC003(claims map[string]interface{}) (string, error)

SignJWTRFC003 mocks base method

func (*MockClient) SignTLSCertificate added in v0.16.0

func (m *MockClient) SignTLSCertificate(publicKey crypto.PublicKey) (*x509.Certificate, error)

SignTLSCertificate mocks base method

func (*MockClient) StoreVendorCACertificate added in v0.15.0

func (m *MockClient) StoreVendorCACertificate(certificate *x509.Certificate) error

StoreVendorCACertificate mocks base method

func (*MockClient) TrustStore

func (m *MockClient) TrustStore() cert.TrustStore

TrustStore mocks base method

func (*MockClient) VerifyJWS

func (m *MockClient) VerifyJWS(signature []byte, signingTime time.Time, certVerifier cert.Verifier) ([]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) CalculateExternalId

func (mr *MockClientMockRecorder) CalculateExternalId(subject, actor, key interface{}) *gomock.Call

CalculateExternalId indicates an expected call of CalculateExternalId

func (*MockClientMockRecorder) DecryptKeyAndCipherText

func (mr *MockClientMockRecorder) DecryptKeyAndCipherText(cipherText, key interface{}) *gomock.Call

DecryptKeyAndCipherText indicates an expected call of DecryptKeyAndCipherText

func (*MockClientMockRecorder) EncryptKeyAndPlainText

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

EncryptKeyAndPlainText indicates an expected call of EncryptKeyAndPlainText

func (*MockClientMockRecorder) GenerateKeyPair

func (mr *MockClientMockRecorder) GenerateKeyPair(key, overwrite interface{}) *gomock.Call

GenerateKeyPair indicates an expected call of GenerateKeyPair

func (*MockClientMockRecorder) GenerateVendorCACSR added in v0.15.0

func (mr *MockClientMockRecorder) GenerateVendorCACSR(name interface{}) *gomock.Call

GenerateVendorCACSR indicates an expected call of GenerateVendorCACSR

func (*MockClientMockRecorder) GetPrivateKey

func (mr *MockClientMockRecorder) GetPrivateKey(key interface{}) *gomock.Call

GetPrivateKey indicates an expected call of GetPrivateKey

func (*MockClientMockRecorder) GetPublicKeyAsJWK

func (mr *MockClientMockRecorder) GetPublicKeyAsJWK(key interface{}) *gomock.Call

GetPublicKeyAsJWK indicates an expected call of GetPublicKeyAsJWK

func (*MockClientMockRecorder) GetPublicKeyAsPEM

func (mr *MockClientMockRecorder) GetPublicKeyAsPEM(key interface{}) *gomock.Call

GetPublicKeyAsPEM indicates an expected call of GetPublicKeyAsPEM

func (*MockClientMockRecorder) GetSigningCertificate added in v0.15.0

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

GetSigningCertificate indicates an expected call of GetSigningCertificate

func (*MockClientMockRecorder) GetTLSCertificate

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

GetTLSCertificate indicates an expected call of GetTLSCertificate

func (*MockClientMockRecorder) PrivateKeyExists

func (mr *MockClientMockRecorder) PrivateKeyExists(key interface{}) *gomock.Call

PrivateKeyExists indicates an expected call of PrivateKeyExists

func (*MockClientMockRecorder) RenewSigningCertificate added in v0.15.0

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

RenewSigningCertificate indicates an expected call of RenewSigningCertificate

func (*MockClientMockRecorder) RenewTLSCertificate added in v0.15.0

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

RenewTLSCertificate indicates an expected call of RenewTLSCertificate

func (*MockClientMockRecorder) SelfSignVendorCACertificate added in v0.15.0

func (mr *MockClientMockRecorder) SelfSignVendorCACertificate(name interface{}) *gomock.Call

SelfSignVendorCACertificate indicates an expected call of SelfSignVendorCACertificate

func (*MockClientMockRecorder) Sign

func (mr *MockClientMockRecorder) Sign(data, key interface{}) *gomock.Call

Sign indicates an expected call of Sign

func (*MockClientMockRecorder) SignCertificate

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

SignCertificate indicates an expected call of SignCertificate

func (*MockClientMockRecorder) SignJWS added in v0.15.0

func (mr *MockClientMockRecorder) SignJWS(payload, key interface{}) *gomock.Call

SignJWS indicates an expected call of SignJWS

func (*MockClientMockRecorder) SignJWSEphemeral

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

SignJWSEphemeral indicates an expected call of SignJWSEphemeral

func (*MockClientMockRecorder) SignJWT

func (mr *MockClientMockRecorder) SignJWT(claims, key interface{}) *gomock.Call

SignJWT indicates an expected call of SignJWT

func (*MockClientMockRecorder) SignJWTRFC003 added in v0.16.0

func (mr *MockClientMockRecorder) SignJWTRFC003(claims interface{}) *gomock.Call

SignJWTRFC003 indicates an expected call of SignJWTRFC003

func (*MockClientMockRecorder) SignTLSCertificate added in v0.16.0

func (mr *MockClientMockRecorder) SignTLSCertificate(publicKey interface{}) *gomock.Call

SignTLSCertificate indicates an expected call of SignTLSCertificate

func (*MockClientMockRecorder) StoreVendorCACertificate added in v0.15.0

func (mr *MockClientMockRecorder) StoreVendorCACertificate(certificate interface{}) *gomock.Call

StoreVendorCACertificate indicates an expected call of StoreVendorCACertificate

func (*MockClientMockRecorder) TrustStore

func (mr *MockClientMockRecorder) TrustStore() *gomock.Call

TrustStore indicates an expected call of TrustStore

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