public class AzureKeyVaultUtils extends Object
| Constructor and Description |
|---|
AzureKeyVaultUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.azure.security.keyvault.certificates.CertificateClient |
createCertificateClient(String azureKeyVaultName)
Create
CertificateClient instance using the provided Azure Key Vault name. |
static com.azure.security.keyvault.secrets.SecretClient |
createSecretClient(String azureKeyVaultName)
Create
SecretClient instance using the provided Azure Key Vault name. |
static String |
getPublicKeyForEncryption(com.azure.security.keyvault.certificates.CertificateClient certificateClient)
Retrieve the public key from the Azure Key Vault Certificate resource.
|
static void |
pushSecretsToAzureKeyVault(List<Secret> secrets,
com.azure.security.keyvault.secrets.SecretClient secretClient)
Push the provided encrypted secrets to the target Azure Key Vault.
|
static List<Secret> |
retrievePlainTextSecrets(InputSecretIdentifiers inputSecretIdentifiers,
com.azure.security.keyvault.secrets.SecretClient secretClient)
Retrieve the defined plain text passwords from the source Azure Key Vault.
|
public static List<Secret> retrievePlainTextSecrets(InputSecretIdentifiers inputSecretIdentifiers, com.azure.security.keyvault.secrets.SecretClient secretClient)
inputSecretIdentifiers - input secrets which are to be encrypted and pushed to the target Key VaultsecretClient - a SecretClient instance for source Azure Key Vault accesspublic static void pushSecretsToAzureKeyVault(List<Secret> secrets, com.azure.security.keyvault.secrets.SecretClient secretClient)
secrets - encrypted secrets to be pushed to the target Key VaultsecretClient - a SecretClient instance for target Azure Key Vault accesspublic static String getPublicKeyForEncryption(com.azure.security.keyvault.certificates.CertificateClient certificateClient)
certificateClient - a CertificateClient instance for target Azure Key Vault accesspublic static com.azure.security.keyvault.secrets.SecretClient createSecretClient(String azureKeyVaultName)
SecretClient instance using the provided Azure Key Vault name.azureKeyVaultName - name of the Azure Key VaultSecretClient instance using the provided Azure Key Vault namepublic static com.azure.security.keyvault.certificates.CertificateClient createCertificateClient(String azureKeyVaultName)
CertificateClient instance using the provided Azure Key Vault name.azureKeyVaultName - name of the Azure Key VaultCertificateClient instance using the provided Azure Key Vault nameCopyright © 2021 WSO2. All rights reserved.