Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenProcessor ¶
type TokenProcessor interface { CreateAckPacketToken(context *pucontext.PUContext, auth *connection.AuthInfo) ([]byte, error) CreateSynPacketToken(context *pucontext.PUContext, auth *connection.AuthInfo) (token []byte, err error) CreateSynAckPacketToken(context *pucontext.PUContext, auth *connection.AuthInfo) (token []byte, err error) ParsePacketToken(auth *connection.AuthInfo, data []byte) (*tokens.ConnectionClaims, error) ParseAckToken(auth *connection.AuthInfo, data []byte) (*tokens.ConnectionClaims, error) }
TokenProcessor is an interface to process tokens
func New ¶
func New(t tokens.TokenEngine) TokenProcessor
New provides a token processor capable of parsing and creating tokens for various types of packets
Click to show internal directories.
Click to hide internal directories.