Documentation ¶
Index ¶
Constants ¶
View Source
const AzureKeyVaultTimeout = 10 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpRequestDoer ¶
var AzureHttpRequestDoer HttpRequestDoer = http.DefaultClient
type JWKSigningKey ¶
func (JWKSigningKey) KeyID ¶
func (j JWKSigningKey) KeyID() string
func (JWKSigningKey) Public ¶
func (j JWKSigningKey) Public() crypto.PublicKey
func (JWKSigningKey) Sign ¶
func (j JWKSigningKey) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error)
func (JWKSigningKey) SigningAlgorithm ¶
func (j JWKSigningKey) SigningAlgorithm() string
type SigningKey ¶
func SigningKeyFromAzureKeyVault ¶
func SigningKeyFromAzureKeyVault(keyVaultURL, keyName string) (SigningKey, error)
SigningKeyFromAzureKeyVault reads a key from Azure KeyVault and returns it as SigningKey. It must be an Elliptic Curve key.
func SigningKeyFromJWKFile ¶
func SigningKeyFromJWKFile(jwkFile string) (SigningKey, error)
SigningKeyFromJWKFile reads a JWK file and returns a SigningKey
Click to show internal directories.
Click to hide internal directories.