forked from ory/fosite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
refresh_token_strategy.go
63 lines (51 loc) · 2.15 KB
/
refresh_token_strategy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/ory-am/fosite/handler/core (interfaces: RefreshTokenStrategy)
package internal
import (
gomock "github.com/golang/mock/gomock"
fosite "github.com/ory-am/fosite"
context "golang.org/x/net/context"
)
// Mock of RefreshTokenStrategy interface
type MockRefreshTokenStrategy struct {
ctrl *gomock.Controller
recorder *_MockRefreshTokenStrategyRecorder
}
// Recorder for MockRefreshTokenStrategy (not exported)
type _MockRefreshTokenStrategyRecorder struct {
mock *MockRefreshTokenStrategy
}
func NewMockRefreshTokenStrategy(ctrl *gomock.Controller) *MockRefreshTokenStrategy {
mock := &MockRefreshTokenStrategy{ctrl: ctrl}
mock.recorder = &_MockRefreshTokenStrategyRecorder{mock}
return mock
}
func (_m *MockRefreshTokenStrategy) EXPECT() *_MockRefreshTokenStrategyRecorder {
return _m.recorder
}
func (_m *MockRefreshTokenStrategy) GenerateRefreshToken(_param0 context.Context, _param1 fosite.Requester) (string, string, error) {
ret := _m.ctrl.Call(_m, "GenerateRefreshToken", _param0, _param1)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
func (_mr *_MockRefreshTokenStrategyRecorder) GenerateRefreshToken(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GenerateRefreshToken", arg0, arg1)
}
func (_m *MockRefreshTokenStrategy) RefreshTokenSignature(_param0 string) string {
ret := _m.ctrl.Call(_m, "RefreshTokenSignature", _param0)
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockRefreshTokenStrategyRecorder) RefreshTokenSignature(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "RefreshTokenSignature", arg0)
}
func (_m *MockRefreshTokenStrategy) ValidateRefreshToken(_param0 context.Context, _param1 fosite.Requester, _param2 string) error {
ret := _m.ctrl.Call(_m, "ValidateRefreshToken", _param0, _param1, _param2)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockRefreshTokenStrategyRecorder) ValidateRefreshToken(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "ValidateRefreshToken", arg0, arg1, arg2)
}