Manorrock Eagle - Azure - KeyVault Certificate

Manorrock Eagle delivers you with a Key-Value Store abstraction.

License

License

Categories

Categories

KeY Data Data Formats Formal Verification
GroupId

GroupId

com.manorrock.eagle.azure
ArtifactId

ArtifactId

eagle-azure-keyvault-certificate
Last Version

Last Version

21.5.0
Release Date

Release Date

Type

Type

jar
Description

Description

Manorrock Eagle - Azure - KeyVault Certificate
Manorrock Eagle delivers you with a Key-Value Store abstraction.

Download eagle-azure-keyvault-certificate

How to add to project

<!-- https://jarcasting.com/artifacts/com.manorrock.eagle.azure/eagle-azure-keyvault-certificate/ -->
<dependency>
    <groupId>com.manorrock.eagle.azure</groupId>
    <artifactId>eagle-azure-keyvault-certificate</artifactId>
    <version>21.5.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.manorrock.eagle.azure/eagle-azure-keyvault-certificate/
implementation 'com.manorrock.eagle.azure:eagle-azure-keyvault-certificate:21.5.0'
// https://jarcasting.com/artifacts/com.manorrock.eagle.azure/eagle-azure-keyvault-certificate/
implementation ("com.manorrock.eagle.azure:eagle-azure-keyvault-certificate:21.5.0")
'com.manorrock.eagle.azure:eagle-azure-keyvault-certificate:jar:21.5.0'
<dependency org="com.manorrock.eagle.azure" name="eagle-azure-keyvault-certificate" rev="21.5.0">
  <artifact name="eagle-azure-keyvault-certificate" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.manorrock.eagle.azure', module='eagle-azure-keyvault-certificate', version='21.5.0')
)
libraryDependencies += "com.manorrock.eagle.azure" % "eagle-azure-keyvault-certificate" % "21.5.0"
[com.manorrock.eagle.azure/eagle-azure-keyvault-certificate "21.5.0"]

Dependencies

compile (3)

Group / Artifact Type Version
com.azure : azure-identity jar 1.2.3
com.azure : azure-security-keyvault-certificates jar 4.1.5
com.manorrock.eagle : eagle-common jar 21.5.0

Project Modules

There are no modules declared in this project.

Manorrock Eagle

This project delivers you with a Key-Value Store abstraction.

Our current list of features/implementations available:

  1. Azure Cosmos DB implementation
  2. Azure Blob Storage implementation
  3. Azure File Share implementation
  4. Azure KeyVault Certificate implementation
  5. Azure KeyVault Key implementation
  6. Azure KeyVault Secret implementation
  7. ChronicleMap implementation
  8. Factory functionality
  9. Filesystem implementation
  10. Hazelcast implementation
  11. Oracle Coherence implementation
  12. Path implementation
  13. Redis implementation

Our list of things under consideration:

  1. CDI integration
  2. JDBC implementation
  3. Spring Boot starter

Getting started

  1. Creating the Key-Value Store
  2. Storing a value.
  3. Getting a value.
  4. Removing a value.

Creating the Key-Value Store

Pick one of the Key-Value Store implementations you want to use above.

If you would have taken the Filesystem implementation the code to create the Key-Value Store would look like the code below.

  File baseDirectory = new File("mybasedir");
  FilesystemKeyValueStore store = new FilesystemKeyValueStore(baseDirectory);

Storing a value

The example below illustrates how to store a value.

  store.put("mykey", "myvalue");

Getting a value

The example below illustrates how to store a value.

  String value = store.get("mykey");

Deleting a value

The example below illustrates how to delete a value.

  store.delete("mykey");

Using your own key type

By default the Key-Value Store is setup to convert a String based key to the underlying data type the Key-Value Store expects. You can deliver your own key mapper that can convert from a data-type of your choice to the underlying data type.

The example below illustrates how to deliver a Long based key mapper.

  public class LongToStringMapper implements KeyValueStoreMapper<Long, String> {

      public String to(Long from) {
        return from.toString();
      }

      public Long from(String to) {
        return Long.valueOf(to);
      }
  }

  store.setKeyMapper(new LongToStringMapper());

Using your own value type

The only difference with the section above is setting the value mapper instead of the key mapper.

The method to set the value mapper is seen below.

  store.setValueMapper(new LongtoStringMapper());

Versions

Version
21.5.0
21.4.1