java.lang.Object
org.codelibs.saml2.core.model.hsm.HSM
org.codelibs.saml2.core.model.hsm.AzureKeyVault
-
Constructor Summary
ConstructorsConstructorDescriptionAzureKeyVault(String clientId, String clientCredentials, String tenantId, String keyVaultId) Constructor to initialise an HSM object. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Decrypts an array of bytes with a particular algorithm using the Azure Key Vault.byte[]Encrypts an array of bytes with a particular algorithm using the Azure Key Vault.voidSets the client to connect to the Azure Key Vault.byte[]Unwraps a key with a particular algorithm using the Azure Key Vault.byte[]Wraps a key with a particular algorithm using the Azure Key Vault.
-
Constructor Details
-
AzureKeyVault
Constructor to initialise an HSM object.- Parameters:
clientId- The Azure Key Vault client ID.clientCredentials- The Azure Key Vault client credentials.tenantId- The Azure Key Vault tenant ID.keyVaultId- The Azure Key Vault ID.
-
-
Method Details
-
setClient
public void setClient()Sets the client to connect to the Azure Key Vault. -
wrapKey
Wraps a key with a particular algorithm using the Azure Key Vault. -
unwrapKey
Unwraps a key with a particular algorithm using the Azure Key Vault. -
encrypt
Encrypts an array of bytes with a particular algorithm using the Azure Key Vault. -
decrypt
Decrypts an array of bytes with a particular algorithm using the Azure Key Vault.
-