Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenAccessor ¶
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, 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
Click to show internal directories.
Click to hide internal directories.