Versions in this module Expand all Collapse all v0 v0.0.1 Aug 30, 2021 Changes in this version + const EncodingKeyId + const JwtLibIdDefault + func GenerateKeyPairAsFiles(privateKeyFileName string, publicKeyFileName string) (*rsa.PrivateKey, error) + func PaddingB64(input string) string + func ParseKidFromTokenHeader(tokenString string) (string, error) + func VerifyBySermo(decodeKeys map[string]*rsa.PublicKey, validKids []string, ...) (bool, error) + type ThemisClaims struct + Capabilities []string + KeyId string + Mac string + PartnerId string + Serial string + Trust string + Uuid string + type TokenManager struct + func NewTokenManager(conf *configuration.Config) *TokenManager + func (m *TokenManager) Generate(mac string, ttl int64) string + func (m *TokenManager) SetVerifyFunc(fn VerifyFunc) + func (m *TokenManager) VerifyApiToken(token string) (bool, error) + func (m *TokenManager) VerifyCpeToken(token string, mac string) (bool, error) + type VerifyFunc func(map[string]*rsa.PublicKey, []string, []string, ...string) (bool, error)