Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientCertProvider ¶
type ClientCertProvider interface { // FileName returns file name of certificate. FileName() string }
ClientCertProvider is implementation for client certificate provider Responsible for preparing, providing and disposing client certificate file. Basic implementation assumes the file exists in the file system and does not take responsibility of deleting this sensitive information after use.
type TokenProvider ¶
type TokenProvider interface { // GetToken gets a JWT, parameter refreshToken indicats whether a new token value is to be retrieved. GetToken(refreshToken bool) (string, error) // GetHeaderValue gets token value from a JWT, the value format likes "Bearer %s". HeaderValue(token string) string }
TokenProvider provides token.
Click to show internal directories.
Click to hide internal directories.