Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidSignatureAlgorithm = errors.New("jwt: invalid signature algorithm")
)
Functions ¶
func ParseAlgorithm ¶
func ParseAlgorithm(keyAttrs *keystore.KeyAttributes) (string, error)
Types ¶
type JsonWebTokenClaims ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(config *config.WebService, keyring *platform.Keyring, keyAttrs *keystore.KeyAttributes) (*Service, error)
func (*Service) GenerateToken ¶
func (*Service) ParseToken ¶
type SigningMethod ¶
type SigningMethod struct {
jwt.SigningMethod
// contains filtered or unexported fields
}
func NewSigningMethod ¶
func NewSigningMethod(keyAttrs *keystore.KeyAttributes) (*SigningMethod, error)
func (*SigningMethod) Alg ¶
func (sm *SigningMethod) Alg() string
func (*SigningMethod) Digest ¶
func (sm *SigningMethod) Digest(signingString string) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.