IdentityDeserializerMock is an autogenerated mock type for the IdentityDeserializerMock type
type IdentityDeserializerMock struct { mock.Mock }
func (_m *IdentityDeserializerMock) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error)
DeserializeIdentity provides a mock function with given fields: serializedIdentity
func (_m *IdentityDeserializerMock) IsWellFormed(identity *protosmsp.SerializedIdentity) error
IsWellFormed provides a mock function with given fields: identity
IdentityMock is an autogenerated mock type for the IdentityMock type
type IdentityMock struct { mock.Mock }
func (_m *IdentityMock) Anonymous() bool
Anonymous provides a mock function with given fields:
func (_m *IdentityMock) ExpiresAt() time.Time
ExpiresAt provides a mock function with given fields:
func (_m *IdentityMock) GetIdentifier() *msp.IdentityIdentifier
GetIdentifier provides a mock function with given fields:
func (_m *IdentityMock) GetMSPIdentifier() string
GetMSPIdentifier provides a mock function with given fields:
func (_m *IdentityMock) GetOrganizationalUnits() []*msp.OUIdentifier
GetOrganizationalUnits provides a mock function with given fields:
func (_m *IdentityMock) SatisfiesPrincipal(principal *protosmsp.MSPPrincipal) error
SatisfiesPrincipal provides a mock function with given fields: principal
func (_m *IdentityMock) Serialize() ([]byte, error)
Serialize provides a mock function with given fields:
func (_m *IdentityMock) Validate() error
Validate provides a mock function with given fields:
func (_m *IdentityMock) Verify(msg []byte, sig []byte) error
Verify provides a mock function with given fields: msg, sig