Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit bdee224

Browse files
author
Scott Schaab
authored
Merge pull request #57 from Azure/dev
Merging 1.1.1 updates to master.
2 parents 814fec0 + d12b53a commit bdee224

10 files changed

Lines changed: 1033 additions & 697 deletions

File tree

README.md

Lines changed: 80 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,89 @@
1+
[![Build Status](https://travis-ci.org/Azure/azure-keyvault-java.svg?branch=dev)](https://travis-ci.org/Azure/azure-keyvault-java)
2+
13
# Microsoft Azure Key Vault SDK for Java
24

35
This is the Microsoft Azure Key Vault client library which allows for the consumption of Key Vault services. Azure Key Vault helps safeguard cryptographic keys and secrets used by cloud applications and services. By using Key Vault, you can encrypt keys and secrets (such as authentication keys, storage account keys, data encryption keys, .PFX files, and passwords) using keys protected by hardware security modules (HSMs). For added assurance, you can import or generate keys in HSMs. If you choose to do this, Microsoft processes your keys in FIPS 140-2 Level 2 validated HSMs (hardware and firmware).
46
Key Vault streamlines the key management process and enables you to maintain control of keys that access and encrypt your data. Developers can create keys for development and testing in minutes, and then seamlessly migrate them to production keys. Security administrators can grant (and revoke) permission to keys, as needed.
57
For more information refer to [What is Key Vault?](https://docs.microsoft.com/en-us/azure/key-vault/key-vault-whatis) or [Getting Started](https://docs.microsoft.com/en-us/azure/key-vault/key-vault-get-started).
68

9+
Documentation for this SDK can be found at [Azure Key Vault Java Documentation](https://docs.microsoft.com/en-us/java/api/overview/azure/keyvault)
10+
711
## Sample code
812
You can find sample code that illustrates key vault usage scenarios [here](https://azure.microsoft.com/en-us/resources/samples/?sort=0&service=key-vault&platform=java).
913

14+
<table>
15+
<tr>
16+
<th>Category</th>
17+
<th>Samples</th>
18+
</tr>
19+
<tr>
20+
<td>Authentication</td>
21+
<td>
22+
<ul>
23+
<li>
24+
<a href="https://github.com/Azure-Samples/key-vault-java-authentication">Authenticating with a service principal and a self-signed certificate</a>
25+
</li>
26+
<li>
27+
<a href="https://github.com/Azure-Samples/key-vault-java-authentication">Authenticating with ADAL through a callback</a>
28+
</li>
29+
<li>
30+
<a href="https://github.com/Azure-Samples/key-vault-java-certificate-authentication/">Authenticating with a .pfx file</a>
31+
</li>
32+
</ul>
33+
</td>
34+
</tr>
35+
<tr>
36+
<td>Vault Management</td>
37+
<td>
38+
<ul>
39+
<li>
40+
<a href="https://github.com/Azure-Samples/key-vault-java-certificate-authentication/">Creating a vault</a>
41+
</li>
42+
<li>
43+
<a href="https://github.com/Azure-Samples/key-vault-java-network-acl/">Creating a vault with access restrictions based on IP and Azure Virtual Networks</a>
44+
</li>
45+
</ul>
46+
</td>
47+
</tr>
48+
<tr>
49+
<td>Secret Management</td>
50+
<td>
51+
<ul>
52+
<li>
53+
<a href="https://github.com/Azure-Samples/key-vault-java-certificate-authentication
54+
">Putting keys and secrets into a vault</a>
55+
</li>
56+
<li>
57+
<a href="https://github.com/Azure-Samples/key-vault-java-certificate-authentication/">Signing</a>
58+
</li>
59+
<li>
60+
<a href="https://github.com/Azure-Samples/key-vault-java-certificate-authentication/">Verification of signature with both Java Security and Azure Key Vault REST</a>
61+
</li>
62+
<li>
63+
<a href="https://github.com/Azure-Samples/key-vault-java-certificate-authentication/">Injecting a .pfx file into a VM at deployment using a template</a>
64+
</li>
65+
<li>
66+
<a href="https://github.com/Azure-Samples/key-vault-java-recovery/">Using the soft delete and backup restore features</a>
67+
</li>
68+
<li>
69+
<a href="https://github.com/Azure-Samples/key-vault-java-recovery/">Managing storage accounts</a>
70+
</li>
71+
</ul>
72+
</td>
73+
</tr>
74+
</table>
75+
76+
For more information on using Java with Azure, see [here](https://azure.microsoft.com/en-us/develop/java/)
77+
1078
## Download
1179

12-
To get the binaries of this library as distributed by Microsoft, ready for use within your project, you can use Maven.
80+
To get the binaries of this library as distributed by Microsoft, ready for use within your project, you can use Maven. Add the following fragment to you POM's dependencies.
1381

1482
```xml
1583
<dependency>
1684
<groupId>com.microsoft.azure</groupId>
17-
<artifactId>azure-keyvault</artifactId>
18-
<version>1.1</version>
19-
</dependency>
20-
<dependency>
21-
<groupId>com.microsoft.azure</groupId>
22-
<artifactId>azure-keyvault-cryptography</artifactId>
23-
<version>1.1</version>
24-
</dependency>
25-
<dependency>
26-
<groupId>com.microsoft.azure</groupId>
27-
<artifactId>azure-keyvault-extensions</artifactId>
28-
<version>1.1</version>
29-
</dependency>
30-
<dependency>
31-
<groupId>com.microsoft.azure</groupId>
32-
<artifactId>azure-keyvault-core</artifactId>
33-
<version>1.1</version>
34-
</dependency>
35-
<dependency>
36-
<groupId>com.microsoft.azure</groupId>
37-
<artifactId>azure-keyvault-webkey</artifactId>
38-
<version>1.1</version>
85+
<artifactId>azure-keyvault-complete</artifactId>
86+
<version>1.1.1</version>
3987
</dependency>
4088
```
4189

@@ -62,6 +110,15 @@ If you would like to become an active contributor to this project please follow
62110
4. Push to the branch (`git push origin my-new-feature`)
63111
5. Create new Pull Request
64112

113+
# Previous Versions
114+
115+
| Version | Comments |
116+
| :-------: | :-------- |
117+
| [1.1](https://github.com/Azure/azure-keyvault-java/tree/1.1) | Version 1.1 release |
118+
| [1.1-beta-1](https://github.com/Azure/azure-keyvault-java/tree/1.1-beta-1) | Version 1.1.0 **beta** release |
119+
| [1.1-alpha-2](https://github.com/Azure/azure-keyvault-java/tree/v1.1-alpha-2) | Version 1.1.0 **alpha** release |
120+
| [1.0.0](https://github.com/Azure/azure-keyvault-java/tree/v1.0.0) | Version 1.0.0 release |
121+
65122
# More information
66123
* [Azure Key Vault Java Documentation](https://docs.microsoft.com/en-us/java/api/overview/azure/keyvault)
67124
* [What is Key Vault?](https://docs.microsoft.com/en-us/azure/key-vault/key-vault-whatis)

azure-keyvault-complete/pom.xml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
2+
the MIT License. See License.txt in the project root for license information. -->
3+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>com.microsoft.azure</groupId>
9+
<artifactId>azure-keyvault-parent</artifactId>
10+
<version>1.1.1</version>
11+
<relativePath>../pom.xml</relativePath>
12+
</parent>
13+
14+
<groupId>com.microsoft.azure</groupId>
15+
<artifactId>azure-keyvault-complete</artifactId>
16+
<version>1.1.1</version>
17+
<packaging>pom</packaging>
18+
19+
<licenses>
20+
<license>
21+
<name>The MIT License (MIT)</name>
22+
<url>http://opensource.org/licenses/MIT</url>
23+
<distribution>repo</distribution>
24+
</license>
25+
</licenses>
26+
27+
<name>Microsoft Azure Key Vault SDK Complete</name>
28+
<description>This encapsulate all modules of the Microsoft Azure Key Vault SDK.</description>
29+
<url>https://github.com/Azure/azure-keyvault-java</url>
30+
31+
<properties>
32+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33+
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
34+
</properties>
35+
36+
<scm>
37+
<url>scm:git:https://github.com/Azure/azure-keyvault-java</url>
38+
<connection>scm:git:git@github.com:Azure/azure-keyvault-java.git</connection>
39+
<tag>HEAD</tag>
40+
</scm>
41+
42+
<developers>
43+
<developer>
44+
<id>microsoft</id>
45+
<name>Microsoft</name>
46+
</developer>
47+
</developers>
48+
49+
<dependencies>
50+
<dependency>
51+
<groupId>com.microsoft.azure</groupId>
52+
<artifactId>azure-keyvault</artifactId>
53+
</dependency>
54+
<dependency>
55+
<groupId>com.microsoft.azure</groupId>
56+
<artifactId>azure-keyvault-core</artifactId>
57+
</dependency>
58+
<dependency>
59+
<groupId>com.microsoft.azure</groupId>
60+
<artifactId>azure-keyvault-webkey</artifactId>
61+
</dependency>
62+
<dependency>
63+
<groupId>com.microsoft.azure</groupId>
64+
<artifactId>azure-keyvault-extensions</artifactId>
65+
</dependency>
66+
<dependency>
67+
<groupId>com.microsoft.azure</groupId>
68+
<artifactId>azure-keyvault-cryptography</artifactId>
69+
</dependency>
70+
</dependencies>
71+
72+
</project>

azure-keyvault-core/pom.xml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
<parent>
99
<groupId>com.microsoft.azure</groupId>
1010
<artifactId>azure-keyvault-parent</artifactId>
11-
<version>1.1</version>
11+
<version>1.1.1</version>
1212
<relativePath>../pom.xml</relativePath>
1313
</parent>
1414

1515
<artifactId>azure-keyvault-core</artifactId>
16+
<version>1.1.1</version>
1617
<packaging>jar</packaging>
1718

1819
<name>Microsoft Azure SDK for Key Vault Core</name>
@@ -45,6 +46,19 @@
4546
</developer>
4647
</developers>
4748

49+
50+
<dependencies>
51+
<!-- COMPILE DEPENDENCY -->
52+
<dependency>
53+
<groupId>org.apache.commons</groupId>
54+
<artifactId>commons-lang3</artifactId>
55+
</dependency>
56+
<dependency>
57+
<groupId>com.google.guava</groupId>
58+
<artifactId>guava</artifactId>
59+
</dependency>
60+
</dependencies>
61+
4862
<build>
4963
<plugins>
5064
<plugin>
@@ -92,16 +106,4 @@
92106
</plugin>
93107
</plugins>
94108
</build>
95-
<dependencies>
96-
<dependency>
97-
<groupId>org.apache.commons</groupId>
98-
<artifactId>commons-lang3</artifactId>
99-
<version>3.4</version>
100-
</dependency>
101-
<dependency>
102-
<groupId>com.google.guava</groupId>
103-
<artifactId>guava</artifactId>
104-
<version>20.0</version>
105-
</dependency>
106-
</dependencies>
107109
</project>

azure-keyvault-cryptography/pom.xml

Lines changed: 45 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
<parent>
88
<groupId>com.microsoft.azure</groupId>
99
<artifactId>azure-keyvault-parent</artifactId>
10-
<version>1.1</version>
10+
<version>1.1.1</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

1414
<artifactId>azure-keyvault-cryptography</artifactId>
15+
<version>1.1.1</version>
1516
<packaging>jar</packaging>
1617

1718
<name>Microsoft Azure SDK for Key Vault Cryptography</name>
@@ -41,37 +42,48 @@
4142

4243

4344
<dependencies>
44-
<dependency>
45-
<groupId>junit</groupId>
46-
<artifactId>junit</artifactId>
47-
<scope>test</scope>
48-
</dependency>
49-
<dependency>
50-
<groupId>org.bouncycastle</groupId>
51-
<artifactId>bcprov-jdk15on</artifactId>
52-
<scope>test</scope>
53-
<version>1.59</version>
54-
</dependency>
55-
<dependency>
56-
<groupId>com.microsoft.azure</groupId>
57-
<artifactId>azure-keyvault-webkey</artifactId>
58-
<version>1.1</version>
59-
</dependency>
60-
<dependency>
61-
<groupId>com.microsoft.azure</groupId>
62-
<artifactId>azure-keyvault-core</artifactId>
63-
<version>1.0.0</version>
64-
</dependency>
65-
<dependency>
66-
<groupId>com.microsoft.rest</groupId>
67-
<artifactId>client-runtime</artifactId>
68-
<version>1.3.0</version>
69-
</dependency>
70-
<dependency>
71-
<groupId>com.microsoft.azure</groupId>
72-
<artifactId>azure-client-authentication</artifactId>
73-
<version>1.3.0</version>
74-
</dependency>
75-
45+
<!-- COMPILE DEPENDENCIES -->
46+
<!-- Microsoft Azure KeyVault Dependencies -->
47+
<dependency>
48+
<groupId>com.microsoft.azure</groupId>
49+
<artifactId>azure-keyvault-webkey</artifactId>
50+
</dependency>
51+
<dependency>
52+
<groupId>com.microsoft.azure</groupId>
53+
<artifactId>azure-keyvault-core</artifactId>
54+
</dependency>
55+
56+
<!-- Jackson dependencies -->
57+
<dependency>
58+
<groupId>com.fasterxml.jackson.core</groupId>
59+
<artifactId>jackson-databind</artifactId>
60+
</dependency>
61+
62+
<!-- Other Dependencies -->
63+
<dependency>
64+
<groupId>org.apache.commons</groupId>
65+
<artifactId>commons-lang3</artifactId>
66+
</dependency>
67+
<dependency>
68+
<groupId>commons-codec</groupId>
69+
<artifactId>commons-codec</artifactId>
70+
</dependency>
71+
<dependency>
72+
<groupId>com.google.guava</groupId>
73+
<artifactId>guava</artifactId>
74+
</dependency>
75+
76+
77+
<!-- TEST DEPENDENCIES -->
78+
<dependency>
79+
<groupId>junit</groupId>
80+
<artifactId>junit</artifactId>
81+
<scope>test</scope>
82+
</dependency>
83+
<dependency>
84+
<groupId>org.bouncycastle</groupId>
85+
<artifactId>bcprov-jdk15on</artifactId>
86+
<scope>test</scope>
87+
</dependency>
7688
</dependencies>
7789
</project>

0 commit comments

Comments
 (0)