trireme-lib: go.aporeto.io/trireme-lib/controller/internal/enforcer/nfqdatapath/tokenaccessor Index | Files | Directories

package tokenaccessor

import "go.aporeto.io/trireme-lib/controller/internal/enforcer/nfqdatapath/tokenaccessor"

Index

Package Files

interfaces.go tokenaccessor.go

type TokenAccessor Uses

type TokenAccessor interface {
    GetTokenValidity() time.Duration
    GetTokenServerID() string

    CreateAckPacketToken(context *pucontext.PUContext, auth *connection.AuthInfo, secrets secrets.Secrets) ([]byte, error)
    CreateSynPacketToken(context *pucontext.PUContext, auth *connection.AuthInfo, claimsHeader *claimsheader.ClaimsHeader, secrets secrets.Secrets) (token []byte, err error)
    CreateSynAckPacketToken(context *pucontext.PUContext, auth *connection.AuthInfo, claimsHeader *claimsheader.ClaimsHeader, secrets secrets.Secrets) (token []byte, err error)
    ParsePacketToken(auth *connection.AuthInfo, data []byte, secrets secrets.Secrets) (*tokens.ConnectionClaims, error)
    ParseAckToken(auth *connection.AuthInfo, data []byte, secrets secrets.Secrets) (*tokens.ConnectionClaims, error)
}

TokenAccessor define an interface to access LockedTokenEngine

func New Uses

func New(serverID string, validity time.Duration, secret secrets.Secrets, binary bool) (TokenAccessor, error)

New creates a new instance of TokenAccessor interface

Directories

PathSynopsis
mocktokenaccessorPackage mocktokenaccessor is a generated GoMock package.

Package tokenaccessor imports 11 packages (graph) and is imported by 8 packages. Updated 2020-03-19. Refresh now. Tools for package owners.