Documentation ¶
Index ¶
- func GetJWKEncryptionAlgorithm(algorithm string) *azkeys.JSONWebKeyEncryptionAlgorithm
- func GetJWKSignatureAlgorithm(algorithm string) *azkeys.JSONWebKeySignatureAlgorithm
- func IsAlgorithmAsymmetric[T algorithms](algorithm T) bool
- func IsECKey(kt azkeys.JSONWebKeyType) bool
- func IsRSAKey(kt azkeys.JSONWebKeyType) bool
- func KeyBundleToKey(bundle *azkeys.KeyBundle) (*contribCrypto.Key, error)
- func NewAzureKeyvaultCrypto(logger logger.Logger) contribCrypto.SubtleCrypto
- type JSONWebKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJWKEncryptionAlgorithm ¶
func GetJWKEncryptionAlgorithm(algorithm string) *azkeys.JSONWebKeyEncryptionAlgorithm
GetJWKEncryptionAlgorithm returns a JSONWebKeyEncryptionAlgorithm constant is the algorithm is a supported one.
func GetJWKSignatureAlgorithm ¶
func GetJWKSignatureAlgorithm(algorithm string) *azkeys.JSONWebKeySignatureAlgorithm
GetJWKSignatureAlgorithm returns a JSONWebKeySignatureAlgorithm constant is the algorithm is a supported one.
func IsAlgorithmAsymmetric ¶
func IsAlgorithmAsymmetric[T algorithms](algorithm T) bool
IsAlgorithmAsymmetric returns true if the algorithm identifier is asymmetric.
func IsECKey ¶
func IsECKey(kt azkeys.JSONWebKeyType) bool
IsECKey returns true if the key is an EC key (EC or EC-HSM).
func IsRSAKey ¶
func IsRSAKey(kt azkeys.JSONWebKeyType) bool
IsRSAKey returns true if the key is an RSA key (RSA or RSA-HSM).
func KeyBundleToKey ¶
func KeyBundleToKey(bundle *azkeys.KeyBundle) (*contribCrypto.Key, error)
KeyBundleToKey converts an azkeys.KeyBundle object to a contribCrypto.Key object, containing only the public part of the asymmetric key.
func NewAzureKeyvaultCrypto ¶
func NewAzureKeyvaultCrypto(logger logger.Logger) contribCrypto.SubtleCrypto
NewAzureKeyvaultCrypto returns a new Azure Key Vault crypto provider.
Types ¶
type JSONWebKey ¶
type JSONWebKey struct {
azkeys.JSONWebKey
}
JSONWebKey extends azkeys.JSONWebKey to add methods to export the key.