Skip to content

Commit

Permalink
Updates after azure-security-keyvault-jca:2.7.0 released (#29075)
Browse files Browse the repository at this point in the history
  • Loading branch information
rujche authored May 26, 2022
1 parent 39b34ac commit dc1a9fa
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 30 deletions.
2 changes: 1 addition & 1 deletion eng/jacoco-test-coverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-security-keyvault-jca</artifactId>
<version>2.7.0-beta.1</version> <!-- {x-version-update;com.azure:azure-security-keyvault-jca;current} -->
<version>2.8.0-beta.1</version> <!-- {x-version-update;com.azure:azure-security-keyvault-jca;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand Down
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ com.azure:azure-security-attestation;1.1.2;1.2.0-beta.1
com.azure:azure-security-confidentialledger;1.0.0-beta.2;1.0.0-beta.3
com.azure:azure-security-keyvault-administration;4.1.2;4.2.0-beta.1
com.azure:azure-security-keyvault-certificates;4.3.2;4.4.0-beta.1
com.azure:azure-security-keyvault-jca;2.6.0;2.7.0-beta.1
com.azure:azure-security-keyvault-jca;2.7.0;2.8.0-beta.1
com.azure:azure-security-test-keyvault-jca;1.0.0;1.0.0
com.azure:azure-security-keyvault-keys;4.4.2;4.5.0-beta.1
com.azure:azure-security-keyvault-secrets;4.4.2;4.5.0-beta.1
Expand Down
7 changes: 6 additions & 1 deletion sdk/keyvault/azure-security-keyvault-jca/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release History

## 2.7.0-beta.1 (Unreleased)
## 2.8.0-beta.1 (Unreleased)

### Features Added

Expand All @@ -10,6 +10,11 @@

### Other Changes

## 2.7.0 (2022-05-24)

### Dependency Upgrades
Regular updates for dependency versions.

## 2.6.0 (2022-02-25)

### Dependency Upgrades
Expand Down
54 changes: 29 additions & 25 deletions sdk/keyvault/azure-security-keyvault-jca/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ add the direct dependency to your project as follows.
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-security-keyvault-jca</artifactId>
<version>2.6.0</version>
<version>2.7.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -158,22 +158,22 @@ Or add permission by cli command:
Please replace `${KEY_VAULT}` with your key vault name and replace `${MANAGED_IDENTITY}` with your principal's object-id.

### Supported key type
Content Type | Key Type | Key Size or Elliptic curve name | Sign algorithm | Support |
-------------|----------|---------------------------------|---------------- |-------- |
PKCS #12 | RSA | 2048 | RSASSA-PSS | ✔ |
PKCS #12 | RSA | 3072 | RSASSA-PSS | ✔ |
PKCS #12 | RSA | 4096 | RSASSA-PSS | ✔ |
PKCS #12 | EC | P-256 | SHA256withECDSA | ✔ |
PKCS #12 | EC | P-384 | SHA384withECDSA | ✔ |
PKCS #12 | EC | P-521 | SHA512withECDSA | ✔ |
PKCS #12 | EC | P-256K | | ✘ |
PEM | RSA | 2048 | RSASSA-PSS | ✔ |
PEM | RSA | 3072 | RSASSA-PSS | ✔ |
PEM | RSA | 4096 | RSASSA-PSS | ✔ |
PEM | EC | P-256 | SHA256withECDSA | ✔ |
PEM | EC | P-384 | SHA384withECDSA | ✔ |
PEM | EC | P-521 | SHA512withECDSA | ✔ |
PEM | EC | P-256K | | ✘ |
| Content Type | Key Type | Key Size or Elliptic curve name | Sign algorithm | Support |
|--------------|----------|---------------------------------|-----------------|---------|
| PKCS #12 | RSA | 2048 | RSASSA-PSS | ✔ |
| PKCS #12 | RSA | 3072 | RSASSA-PSS | ✔ |
| PKCS #12 | RSA | 4096 | RSASSA-PSS | ✔ |
| PKCS #12 | EC | P-256 | SHA256withECDSA | ✔ |
| PKCS #12 | EC | P-384 | SHA384withECDSA | ✔ |
| PKCS #12 | EC | P-521 | SHA512withECDSA | ✔ |
| PKCS #12 | EC | P-256K | | ✘ |
| PEM | RSA | 2048 | RSASSA-PSS | ✔ |
| PEM | RSA | 3072 | RSASSA-PSS | ✔ |
| PEM | RSA | 4096 | RSASSA-PSS | ✔ |
| PEM | EC | P-256 | SHA256withECDSA | ✔ |
| PEM | EC | P-384 | SHA384withECDSA | ✔ |
| PEM | EC | P-521 | SHA512withECDSA | ✔ |
| PEM | EC | P-256K | | ✘ |

## Troubleshooting

Expand Down Expand Up @@ -207,14 +207,18 @@ com.azure.security.keyvault.jca.level = ALL
Azure Key Vault JCA clients raise exceptions. For example, if you try to check a client's identity with a certificate chain that does not include a trusted certificate, a `CertificateException` will be thrown. In the following snippet, the error is handled gracefully by catching the exception and displaying additional information about the error.

```java
try {
KeyVaultJcaProvider provider = new KeyVaultJcaProvider();
Security.addProvider(provider);
...
// Start SSL server socket
...
} catch (CertificateException e) {
System.out.println(e.getMessage());
class Demo {
void demo () {
try {
KeyVaultJcaProvider provider = new KeyVaultJcaProvider();
Security.addProvider(provider);
// ...
// Start SSL server socket
// ...
} catch (CertificateException e) {
System.out.println(e.getMessage());
}
}
}
```

Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/azure-security-keyvault-jca/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>com.azure</groupId>
<artifactId>azure-security-keyvault-jca</artifactId>
<version>2.7.0-beta.1</version> <!-- {x-version-update;com.azure:azure-security-keyvault-jca;current} -->
<version>2.8.0-beta.1</version> <!-- {x-version-update;com.azure:azure-security-keyvault-jca;current} -->
<name>JCA Provider for Azure Key Vault</name>
<description>The Java Crypto Architecture (JCA) Provider for Azure Key Vault</description>

Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/azure-security-test-keyvault-jca/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-security-keyvault-jca</artifactId>
<version>2.7.0-beta.1</version> <!-- {x-version-update;com.azure:azure-security-keyvault-jca;current} -->
<version>2.8.0-beta.1</version> <!-- {x-version-update;com.azure:azure-security-keyvault-jca;current} -->
</dependency>

<!-- Apache HttpClient -->
Expand Down

0 comments on commit dc1a9fa

Please sign in to comment.