Documentation ¶
Index ¶
- func CreateJWS(object interface{}) (string, error)
- func CreateJWT(id string, sub string, aud string, iss string, exp time.Duration) (string, error)
- func CreatePrivateKey() *rsa.PrivateKey
- func CreatePrivateKeySigner(privateKey *rsa.PrivateKey) jose.Signer
- func VerifyJWS(rawJWS string) ([]byte, error)
- func VerifyJWT(rawJWT string) (bool, error)
- type JwsPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePrivateKey ¶
func CreatePrivateKey() *rsa.PrivateKey
func CreatePrivateKeySigner ¶
func CreatePrivateKeySigner(privateKey *rsa.PrivateKey) jose.Signer
Types ¶
type JwsPayload ¶
Click to show internal directories.
Click to hide internal directories.