Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Token ¶
type Token interface { // Generate a new secret key. NewSecretKey(alg secret.Algorithm) ([]byte, error) // Generate a new token with specified secret info. Generate(s *secret.Info) (string, error) // Refresh the token with expired time renewed. Refresh(s *secret.Info) (string, error) // Parse the metadata. Parse(md *common.Metadata) (*secret.Info, error) // Parse raw token string. ParseRaw(token string) (*secret.Info, error) }
Token interface.
Click to show internal directories.
Click to hide internal directories.