Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenAccessor ¶
type TokenAccessor interface { SetToken(serverID string, validity time.Duration, secret secrets.Secrets) error GetTokenValidity() time.Duration GetTokenServerID() string 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) }
TokenAccessor define an interface to access LockedTokenEngine
Click to show internal directories.
Click to hide internal directories.