| 1 |
// Code generated by MockGen. DO NOT EDIT. |
| 2 |
// Source: github.com/zitadel/oidc/v3/pkg/op (interfaces: SigningKey,Key) |
| 3 |
|
| 4 |
// Package mock is a generated GoMock package. |
| 5 |
package mock |
| 6 |
|
| 7 |
import ( |
| 8 |
reflect "reflect" |
| 9 |
|
| 10 |
jose "github.com/go-jose/go-jose/v4" |
| 11 |
gomock "github.com/golang/mock/gomock" |
| 12 |
) |
| 13 |
|
| 14 |
// MockSigningKey is a mock of SigningKey interface. |
| 15 |
type MockSigningKey struct { |
| 16 |
ctrl *gomock.Controller |
| 17 |
recorder *MockSigningKeyMockRecorder |
| 18 |
} |
| 19 |
|
| 20 |
// MockSigningKeyMockRecorder is the mock recorder for MockSigningKey. |
| 21 |
type MockSigningKeyMockRecorder struct { |
| 22 |
mock *MockSigningKey |
| 23 |
} |
| 24 |
|
| 25 |
// NewMockSigningKey creates a new mock instance. |
| 26 |
func NewMockSigningKey(ctrl *gomock.Controller) *MockSigningKey { |
| 27 |
mock := &MockSigningKey{ctrl: ctrl} |
| 28 |
mock.recorder = &MockSigningKeyMockRecorder{mock} |
| 29 |
return mock |
| 30 |
} |
| 31 |
|
| 32 |
// EXPECT returns an object that allows the caller to indicate expected use. |
| 33 |
func (m *MockSigningKey) EXPECT() *MockSigningKeyMockRecorder { |
| 34 |
return m.recorder |
| 35 |
} |
| 36 |
|
| 37 |
// ID mocks base method. |
| 38 |
func (m *MockSigningKey) ID() string { |
| 39 |
m.ctrl.T.Helper() |
| 40 |
ret := m.ctrl.Call(m, "ID") |
| 41 |
ret0, _ := ret[0].(string) |
| 42 |
return ret0 |
| 43 |
} |
| 44 |
|
| 45 |
// ID indicates an expected call of ID. |
| 46 |
func (mr *MockSigningKeyMockRecorder) ID() *gomock.Call { |
| 47 |
mr.mock.ctrl.T.Helper() |
| 48 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockSigningKey)(nil).ID)) |
| 49 |
} |
| 50 |
|
| 51 |
// Key mocks base method. |
| 52 |
func (m *MockSigningKey) Key() interface{} { |
| 53 |
m.ctrl.T.Helper() |
| 54 |
ret := m.ctrl.Call(m, "Key") |
| 55 |
ret0, _ := ret[0].(interface{}) |
| 56 |
return ret0 |
| 57 |
} |
| 58 |
|
| 59 |
// Key indicates an expected call of Key. |
| 60 |
func (mr *MockSigningKeyMockRecorder) Key() *gomock.Call { |
| 61 |
mr.mock.ctrl.T.Helper() |
| 62 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Key", reflect.TypeOf((*MockSigningKey)(nil).Key)) |
| 63 |
} |
| 64 |
|
| 65 |
// SignatureAlgorithm mocks base method. |
| 66 |
func (m *MockSigningKey) SignatureAlgorithm() jose.SignatureAlgorithm { |
| 67 |
m.ctrl.T.Helper() |
| 68 |
ret := m.ctrl.Call(m, "SignatureAlgorithm") |
| 69 |
ret0, _ := ret[0].(jose.SignatureAlgorithm) |
| 70 |
return ret0 |
| 71 |
} |
| 72 |
|
| 73 |
// SignatureAlgorithm indicates an expected call of SignatureAlgorithm. |
| 74 |
func (mr *MockSigningKeyMockRecorder) SignatureAlgorithm() *gomock.Call { |
| 75 |
mr.mock.ctrl.T.Helper() |
| 76 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignatureAlgorithm", reflect.TypeOf((*MockSigningKey)(nil).SignatureAlgorithm)) |
| 77 |
} |
| 78 |
|
| 79 |
// MockKey is a mock of Key interface. |
| 80 |
type MockKey struct { |
| 81 |
ctrl *gomock.Controller |
| 82 |
recorder *MockKeyMockRecorder |
| 83 |
} |
| 84 |
|
| 85 |
// MockKeyMockRecorder is the mock recorder for MockKey. |
| 86 |
type MockKeyMockRecorder struct { |
| 87 |
mock *MockKey |
| 88 |
} |
| 89 |
|
| 90 |
// NewMockKey creates a new mock instance. |
| 91 |
func NewMockKey(ctrl *gomock.Controller) *MockKey { |
| 92 |
mock := &MockKey{ctrl: ctrl} |
| 93 |
mock.recorder = &MockKeyMockRecorder{mock} |
| 94 |
return mock |
| 95 |
} |
| 96 |
|
| 97 |
// EXPECT returns an object that allows the caller to indicate expected use. |
| 98 |
func (m *MockKey) EXPECT() *MockKeyMockRecorder { |
| 99 |
return m.recorder |
| 100 |
} |
| 101 |
|
| 102 |
// Algorithm mocks base method. |
| 103 |
func (m *MockKey) Algorithm() jose.SignatureAlgorithm { |
| 104 |
m.ctrl.T.Helper() |
| 105 |
ret := m.ctrl.Call(m, "Algorithm") |
| 106 |
ret0, _ := ret[0].(jose.SignatureAlgorithm) |
| 107 |
return ret0 |
| 108 |
} |
| 109 |
|
| 110 |
// Algorithm indicates an expected call of Algorithm. |
| 111 |
func (mr *MockKeyMockRecorder) Algorithm() *gomock.Call { |
| 112 |
mr.mock.ctrl.T.Helper() |
| 113 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Algorithm", reflect.TypeOf((*MockKey)(nil).Algorithm)) |
| 114 |
} |
| 115 |
|
| 116 |
// ID mocks base method. |
| 117 |
func (m *MockKey) ID() string { |
| 118 |
m.ctrl.T.Helper() |
| 119 |
ret := m.ctrl.Call(m, "ID") |
| 120 |
ret0, _ := ret[0].(string) |
| 121 |
return ret0 |
| 122 |
} |
| 123 |
|
| 124 |
// ID indicates an expected call of ID. |
| 125 |
func (mr *MockKeyMockRecorder) ID() *gomock.Call { |
| 126 |
mr.mock.ctrl.T.Helper() |
| 127 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockKey)(nil).ID)) |
| 128 |
} |
| 129 |
|
| 130 |
// Key mocks base method. |
| 131 |
func (m *MockKey) Key() interface{} { |
| 132 |
m.ctrl.T.Helper() |
| 133 |
ret := m.ctrl.Call(m, "Key") |
| 134 |
ret0, _ := ret[0].(interface{}) |
| 135 |
return ret0 |
| 136 |
} |
| 137 |
|
| 138 |
// Key indicates an expected call of Key. |
| 139 |
func (mr *MockKeyMockRecorder) Key() *gomock.Call { |
| 140 |
mr.mock.ctrl.T.Helper() |
| 141 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Key", reflect.TypeOf((*MockKey)(nil).Key)) |
| 142 |
} |
| 143 |
|
| 144 |
// Use mocks base method. |
| 145 |
func (m *MockKey) Use() string { |
| 146 |
m.ctrl.T.Helper() |
| 147 |
ret := m.ctrl.Call(m, "Use") |
| 148 |
ret0, _ := ret[0].(string) |
| 149 |
return ret0 |
| 150 |
} |
| 151 |
|
| 152 |
// Use indicates an expected call of Use. |
| 153 |
func (mr *MockKeyMockRecorder) Use() *gomock.Call { |
| 154 |
mr.mock.ctrl.T.Helper() |
| 155 |
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Use", reflect.TypeOf((*MockKey)(nil).Use)) |
| 156 |
} |