Class AzureKeyVaultKeysExtReactiveService
java.lang.Object
it.pagopa.swclient.mil.azureservices.keyvault.keys.service.AzureKeyVaultKeysExtReactiveService
Provides value added services around Azure Key Vault.
- Author:
 - Antonio Tarricone
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AzureKeyVaultKeysReactiveServiceService to access to Azure Key Vault.private static final StringContext key to handle paging.private static final StringContext key to handle paging. - 
Constructor Summary
ConstructorsConstructorDescriptionConstructor. - 
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Multi<DeletedKeyBundle> deleteExpiredKeys(String domain) Deletes all expired keys which match searching criteria.private io.smallrye.mutiny.Multi<KeyItem> getKeys()Returns all keys from Azure Key Vault by means ofAzureKeyVaultKeysReactiveServicehandling the paging.io.smallrye.mutiny.Multi<KeyBundle> Returns all valid keys which match searching criteria.private io.smallrye.mutiny.Multi<KeyItem> getKeyVersions(String keyName) Returns all versions of a key from Azure Key Vault by means ofAzureKeyVaultKeysReactiveServicehandling the paging.Return the valid key with longest expiration which matches searching criteria. 
- 
Field Details
- 
keysService
Service to access to Azure Key Vault.
- See Also:
 
 - 
SKIPTOKEN_KEYS_KEY
Context key to handle paging.
- See Also:
 
 - 
SKIPTOKEN_VERS_KEY
Context key to handle paging.
- See Also:
 
 
 - 
 - 
Constructor Details
- 
AzureKeyVaultKeysExtReactiveService
Constructor.
- Parameters:
 keysService-AzureKeyVaultKeysReactiveService
 
 - 
 - 
Method Details
- 
getKeys
Returns all keys from Azure Key Vault by means of
AzureKeyVaultKeysReactiveServicehandling the paging.- Returns:
 KeyItem
 - 
getKeyVersions
Returns all versions of a key from Azure Key Vault by means of
AzureKeyVaultKeysReactiveServicehandling the paging.- Parameters:
 keyName- The name of the key.- Returns:
 KeyItem
 - 
getKeys
public io.smallrye.mutiny.Multi<KeyBundle> getKeys(String domain, List<String> expectedOps, List<String> expectedKtys) Returns all valid keys which match searching criteria.
- Parameters:
 domain- Represents who uses the key.expectedOps-JsonWebKeyOperationexpectedKtys-JsonWebKeyType- Returns:
 KeyBundle
 - 
getKeyWithLongestExp
public io.smallrye.mutiny.Uni<Optional<KeyBundle>> getKeyWithLongestExp(String domain, List<String> expectedOps, List<String> expectedKtys) Return the valid key with longest expiration which matches searching criteria.
- Parameters:
 domain- Represents who uses the key.expectedOps-JsonWebKeyOperationexpectedKtys-JsonWebKeyType- Returns:
 KeyBundle
 - 
deleteExpiredKeys
Deletes all expired keys which match searching criteria.
- Parameters:
 domain- Represents who uses the key.- Returns:
 DeletedKeyBundle
 
 -