mocktokenaccessor

package
v10.342.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mocktokenaccessor is a generated GoMock package.

Index

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL