Documentation ¶
Overview ¶
package keys offers utility functions for working with crypto.Signers, JWS, JWKs and PEM serialization.
Index ¶
- func JWKForSigner(signer crypto.Signer) jose.JSONWebKey
- func JWKJSON(signer crypto.Signer) string
- func JWKThumbprint(signer crypto.Signer) string
- func JWKThumbprintBytes(signer crypto.Signer) []byte
- func KeyAuth(signer crypto.Signer, token string) string
- func MarshalSigner(signer crypto.Signer) ([]byte, string, error)
- func NewSigner(keyType string) (crypto.Signer, error)
- func SignerToPEM(signer crypto.Signer) (string, error)
- func SigningKeyForSigner(signer crypto.Signer, keyID string) jose.SigningKey
- func UnmarshalSigner(keyBytes []byte, keyType string) (crypto.Signer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JWKForSigner ¶
func JWKForSigner(signer crypto.Signer) jose.JSONWebKey
func JWKThumbprint ¶
func JWKThumbprintBytes ¶
func SigningKeyForSigner ¶
func SigningKeyForSigner(signer crypto.Signer, keyID string) jose.SigningKey
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.