Documentation ¶
Index ¶
- func KeyToJWKS(publicKey interface{}, alg jwa.SignatureAlgorithm) jwk.Set
- func SignEntityStatement(payload []byte, signingAlg jwa.SignatureAlgorithm, key crypto.Signer) ([]byte, error)
- func SignPayload(payload []byte, signingAlg jwa.SignatureAlgorithm, key crypto.Signer, ...) ([]byte, error)
- func VerifyWithSet(msg *jws.Message, keys jwk.Set) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyToJWKS ¶
func KeyToJWKS(publicKey interface{}, alg jwa.SignatureAlgorithm) jwk.Set
KeyToJWKS creates a jwk.Set from the passed publicKey and sets the algorithm key in the jwk.Key to the passed jwa.SignatureAlgorithm
func SignEntityStatement ¶
func SignEntityStatement(payload []byte, signingAlg jwa.SignatureAlgorithm, key crypto.Signer) ([]byte, error)
SignEntityStatement creates a signed JWT of the 'entity-statement+jwt' type for the passed payload using the passed crypto.Signer with the passed jwa.SignatureAlgorithm
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.