Documentation ¶
Index ¶
- func GetJWKEncryptionAlgorithm(algorithm string) *azkeys.EncryptionAlgorithm
- func GetJWKSignatureAlgorithm(algorithm string) *azkeys.SignatureAlgorithm
- func IsAlgorithmAsymmetric[T algorithms](algorithm T) bool
- func IsECKey(kt azkeys.KeyType) bool
- func IsRSAKey(kt azkeys.KeyType) 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.EncryptionAlgorithm
GetJWKEncryptionAlgorithm returns a JSONWebKeyEncryptionAlgorithm constant is the algorithm is a supported one.
func GetJWKSignatureAlgorithm ¶
func GetJWKSignatureAlgorithm(algorithm string) *azkeys.SignatureAlgorithm
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 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.
Click to show internal directories.
Click to hide internal directories.