Documentation ¶
Overview ¶
Package mocktokenaccessor is a generated GoMock package.
Index ¶
- type MockTokenAccessor
- func (m *MockTokenAccessor) CreateAckPacketToken(proto314 bool, secretKey []byte, claims *tokens.ConnectionClaims, ...) ([]byte, error)
- func (m *MockTokenAccessor) CreateSynAckPacketToken(proto314 bool, claims *tokens.ConnectionClaims, encodedBuf, nonce []byte, ...) ([]byte, error)
- func (m *MockTokenAccessor) CreateSynPacketToken(claims *tokens.ConnectionClaims, encodedBuf, nonce []byte, ...) ([]byte, error)
- func (m *MockTokenAccessor) EXPECT() *MockTokenAccessorMockRecorder
- func (m *MockTokenAccessor) GetTokenServerID() string
- func (m *MockTokenAccessor) GetTokenValidity() time.Duration
- func (m *MockTokenAccessor) ParseAckToken(proto314 bool, secretKey, nonce, data []byte, ...) error
- func (m *MockTokenAccessor) ParsePacketToken(privateKey *ephemeralkeys.PrivateKey, data []byte, secrets secrets.Secrets, ...) ([]byte, *claimsheader.ClaimsHeader, *pkiverifier.PKIControllerInfo, []byte, ...)
- func (m *MockTokenAccessor) Randomize(arg0, arg1 []byte) error
- func (m *MockTokenAccessor) Sign(arg0 []byte, arg1 *ecdsa.PrivateKey) ([]byte, error)
- type MockTokenAccessorMockRecorder
- func (mr *MockTokenAccessorMockRecorder) CreateAckPacketToken(proto314, secretKey, claims, encodedBuf interface{}) *gomock.Call
- func (mr *MockTokenAccessorMockRecorder) CreateSynAckPacketToken(...) *gomock.Call
- func (mr *MockTokenAccessorMockRecorder) CreateSynPacketToken(claims, encodedBuf, nonce, claimsHeader, secrets interface{}) *gomock.Call
- func (mr *MockTokenAccessorMockRecorder) GetTokenServerID() *gomock.Call
- func (mr *MockTokenAccessorMockRecorder) GetTokenValidity() *gomock.Call
- func (mr *MockTokenAccessorMockRecorder) ParseAckToken(proto314, secretKey, nonce, data, connClaims interface{}) *gomock.Call
- func (mr *MockTokenAccessorMockRecorder) ParsePacketToken(privateKey, data, secrets, c, b interface{}) *gomock.Call
- func (mr *MockTokenAccessorMockRecorder) Randomize(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTokenAccessorMockRecorder) Sign(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTokenAccessor ¶
type MockTokenAccessor struct {
// contains filtered or unexported fields
}
MockTokenAccessor is a mock of TokenAccessor interface
func NewMockTokenAccessor ¶
func NewMockTokenAccessor(ctrl *gomock.Controller) *MockTokenAccessor
NewMockTokenAccessor creates a new mock instance
func (*MockTokenAccessor) CreateAckPacketToken ¶
func (m *MockTokenAccessor) CreateAckPacketToken(proto314 bool, secretKey []byte, claims *tokens.ConnectionClaims, encodedBuf []byte) ([]byte, error)
CreateAckPacketToken mocks base method
func (*MockTokenAccessor) CreateSynAckPacketToken ¶
func (m *MockTokenAccessor) CreateSynAckPacketToken(proto314 bool, claims *tokens.ConnectionClaims, encodedBuf, nonce []byte, claimsHeader *claimsheader.ClaimsHeader, secrets secrets.Secrets, secretKey []byte) ([]byte, error)
CreateSynAckPacketToken mocks base method
func (*MockTokenAccessor) CreateSynPacketToken ¶
func (m *MockTokenAccessor) CreateSynPacketToken(claims *tokens.ConnectionClaims, encodedBuf, nonce []byte, claimsHeader *claimsheader.ClaimsHeader, secrets secrets.Secrets) ([]byte, error)
CreateSynPacketToken mocks base method
func (*MockTokenAccessor) EXPECT ¶
func (m *MockTokenAccessor) EXPECT() *MockTokenAccessorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTokenAccessor) GetTokenServerID ¶
func (m *MockTokenAccessor) GetTokenServerID() string
GetTokenServerID mocks base method
func (*MockTokenAccessor) GetTokenValidity ¶
func (m *MockTokenAccessor) GetTokenValidity() time.Duration
GetTokenValidity mocks base method
func (*MockTokenAccessor) ParseAckToken ¶
func (m *MockTokenAccessor) ParseAckToken(proto314 bool, secretKey, nonce, data []byte, connClaims *tokens.ConnectionClaims) error
ParseAckToken mocks base method
func (*MockTokenAccessor) ParsePacketToken ¶
func (m *MockTokenAccessor) ParsePacketToken(privateKey *ephemeralkeys.PrivateKey, data []byte, secrets secrets.Secrets, c *tokens.ConnectionClaims, b bool) ([]byte, *claimsheader.ClaimsHeader, *pkiverifier.PKIControllerInfo, []byte, string, bool, error)
ParsePacketToken mocks base method
func (*MockTokenAccessor) Randomize ¶
func (m *MockTokenAccessor) Randomize(arg0, arg1 []byte) error
Randomize mocks base method
func (*MockTokenAccessor) Sign ¶
func (m *MockTokenAccessor) Sign(arg0 []byte, arg1 *ecdsa.PrivateKey) ([]byte, error)
Sign mocks base method
type MockTokenAccessorMockRecorder ¶
type MockTokenAccessorMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenAccessorMockRecorder is the mock recorder for MockTokenAccessor
func (*MockTokenAccessorMockRecorder) CreateAckPacketToken ¶
func (mr *MockTokenAccessorMockRecorder) CreateAckPacketToken(proto314, secretKey, claims, encodedBuf interface{}) *gomock.Call
CreateAckPacketToken indicates an expected call of CreateAckPacketToken
func (*MockTokenAccessorMockRecorder) CreateSynAckPacketToken ¶
func (mr *MockTokenAccessorMockRecorder) CreateSynAckPacketToken(proto314, claims, encodedBuf, nonce, claimsHeader, secrets, secretKey interface{}) *gomock.Call
CreateSynAckPacketToken indicates an expected call of CreateSynAckPacketToken
func (*MockTokenAccessorMockRecorder) CreateSynPacketToken ¶
func (mr *MockTokenAccessorMockRecorder) CreateSynPacketToken(claims, encodedBuf, nonce, claimsHeader, secrets interface{}) *gomock.Call
CreateSynPacketToken indicates an expected call of CreateSynPacketToken
func (*MockTokenAccessorMockRecorder) GetTokenServerID ¶
func (mr *MockTokenAccessorMockRecorder) GetTokenServerID() *gomock.Call
GetTokenServerID indicates an expected call of GetTokenServerID
func (*MockTokenAccessorMockRecorder) GetTokenValidity ¶
func (mr *MockTokenAccessorMockRecorder) GetTokenValidity() *gomock.Call
GetTokenValidity indicates an expected call of GetTokenValidity
func (*MockTokenAccessorMockRecorder) ParseAckToken ¶
func (mr *MockTokenAccessorMockRecorder) ParseAckToken(proto314, secretKey, nonce, data, connClaims interface{}) *gomock.Call
ParseAckToken indicates an expected call of ParseAckToken
func (*MockTokenAccessorMockRecorder) ParsePacketToken ¶
func (mr *MockTokenAccessorMockRecorder) ParsePacketToken(privateKey, data, secrets, c, b interface{}) *gomock.Call
ParsePacketToken indicates an expected call of ParsePacketToken
func (*MockTokenAccessorMockRecorder) Randomize ¶
func (mr *MockTokenAccessorMockRecorder) Randomize(arg0, arg1 interface{}) *gomock.Call
Randomize indicates an expected call of Randomize
func (*MockTokenAccessorMockRecorder) Sign ¶
func (mr *MockTokenAccessorMockRecorder) Sign(arg0, arg1 interface{}) *gomock.Call
Sign indicates an expected call of Sign