Documentation ¶
Index ¶
Constants ¶
View Source
const ( JwtHeaderKid = "kid" JwtHeaderAlg = "alg" )
Variables ¶
View Source
var (
ErrJwtInvalidAlgCombination = errors.New("invalid algorithm combination")
)
Functions ¶
This section is empty.
Types ¶
type AddonTool ¶
type AddonTool struct {
// contains filtered or unexported fields
}
func NewAddonTool ¶
func NewAddonTool(keyStorage secretapi.KeyStorage) *AddonTool
func (*AddonTool) SignJwtToken ¶
type JwtAlg ¶
type JwtAlg string
const ( JwtAlgHS256 JwtAlg = "HS256" JwtAlgHS384 JwtAlg = "HS384" JwtAlgHS512 JwtAlg = "HS512" JwtAlgRS256 JwtAlg = "RS256" JwtAlgRS384 JwtAlg = "RS384" JwtAlgRS512 JwtAlg = "RS512" JwtAlgPS256 JwtAlg = "PS256" JwtAlgPS384 JwtAlg = "PS384" JwtAlgPS512 JwtAlg = "PS512" JwtAlgES256 JwtAlg = "ES256" JwtAlgES384 JwtAlg = "ES384" JwtAlgES512 JwtAlg = "ES512" )
Click to show internal directories.
Click to hide internal directories.