fakes

package
v0.0.0-...-f6da7e6 Latest Latest
Warning

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

Go to latest
Published: May 25, 2015 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 1 more Imports: 4 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFastTokenSigningMethod

func RegisterFastTokenSigningMethod()

Fake out jwt signing interface with these methods

Types

type FakeToken

type FakeToken struct {
	DecodeTokenStub func(userToken string, desiredPermissions ...string) error

	CheckPublicTokenStub func() error
	// contains filtered or unexported fields
}

func (*FakeToken) CheckPublicToken

func (fake *FakeToken) CheckPublicToken() error

func (*FakeToken) CheckPublicTokenCallCount

func (fake *FakeToken) CheckPublicTokenCallCount() int

func (*FakeToken) CheckPublicTokenReturns

func (fake *FakeToken) CheckPublicTokenReturns(result1 error)

func (*FakeToken) DecodeToken

func (fake *FakeToken) DecodeToken(userToken string, desiredPermissions ...string) error

func (*FakeToken) DecodeTokenArgsForCall

func (fake *FakeToken) DecodeTokenArgsForCall(i int) (string, []string)

func (*FakeToken) DecodeTokenCallCount

func (fake *FakeToken) DecodeTokenCallCount() int

func (*FakeToken) DecodeTokenReturns

func (fake *FakeToken) DecodeTokenReturns(result1 error)

type SigningMethodFast

type SigningMethodFast struct{}

func (SigningMethodFast) Alg

func (m SigningMethodFast) Alg() string

func (SigningMethodFast) Sign

func (m SigningMethodFast) Sign(signingString string, key interface{}) (string, error)

func (SigningMethodFast) Verify

func (m SigningMethodFast) Verify(signingString, signature string, key interface{}) (err error)

Jump to

Keyboard shortcuts

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