Skip to content

Commit

Permalink
Fix error in api review (Azure#23200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rujun Chen authored Jul 28, 2021
1 parent f7d6928 commit 95fc2af
Show file tree
Hide file tree
Showing 63 changed files with 289 additions and 571 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<suppress checks="com.azure.tools.checkstyle.checks.EnforceFinalFieldsCheck" files="com.azure.ai.formrecognizer.models.FieldValue"/>

<!-- Fields tenantId, clientId and clientSecret are not set in all constructors. -->
<suppress checks="com.azure.tools.checkstyle.checks.EnforceFinalFieldsCheck" files="com.azure.security.keyvault.jca.KeyVaultClient"/>
<suppress checks="com.azure.tools.checkstyle.checks.EnforceFinalFieldsCheck" files="com.azure.security.keyvault.jca.implementation.KeyVaultClient"/>

<!-- Fields defaultTrustManager and keyStore might be set more than once. -->
<suppress checks="com.azure.tools.checkstyle.checks.EnforceFinalFieldsCheck" files="com.azure.security.keyvault.jca.KeyVaultTrustManager"/>
Expand Down Expand Up @@ -177,7 +177,7 @@ the main ServiceBusClientBuilder. -->

<!-- suppress the runtime exception in the KeyVaultClient class-->
<suppress checks="com.azure.tools.checkstyle.checks.ThrowFromClientLogger"
files="com.azure.security.keyvault.jca.KeyVaultClient.java"/>
files="com.azure.security.keyvault.jca.implementation.KeyVaultClient.java"/>

<!-- This class overrides a method that throws, so it cannot be avoided. -->
<suppress checks="com.azure.tools.checkstyle.checks.ThrowFromClientLoggerCheck" files="com.azure.security.keyvault.jca.KeyVaultTrustManager"/>
Expand Down Expand Up @@ -297,7 +297,7 @@ the main ServiceBusClientBuilder. -->


<!-- Fields tenantId, clientId and clientSecret are not set in all constructors. -->
<suppress checks="com.azure.tools.checkstyle.checks.EnforceFinalFieldsCheck" files="com.azure.security.keyvault.jca.KeyVaultClient"/>
<suppress checks="com.azure.tools.checkstyle.checks.EnforceFinalFieldsCheck" files="com.azure.security.keyvault.jca.implementation.KeyVaultClient"/>

<!-- Fields defaultTrustManager and keyStore might be set more than once. -->
<suppress checks="com.azure.tools.checkstyle.checks.EnforceFinalFieldsCheck" files="com.azure.security.keyvault.jca.KeyVaultTrustManager"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
<!-- Suppress Redundant nullcheck error for JreCertificates$JREKeyStore.loadKeyStore(KeyStore). -->
<Match>
<Or>
<Class name="com.azure.security.keyvault.jca.JreCertificates$JREKeyStore"/> <!-- false positive -->
<Class name="com.azure.security.keyvault.jca.implementation.certificates.JreCertificates$JREKeyStore"/> <!-- false positive -->
</Or>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
</Match>
Expand Down Expand Up @@ -2440,7 +2440,7 @@
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
</Match>
<Match>
<Class name="com.azure.security.keyvault.jca.LegacyRestClient"/>
<Class name="com.azure.security.keyvault.jca.implementation.utils.HttpUtil"/>
<Method name="~(get|post)"/>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
</Match>
Expand Down
2 changes: 1 addition & 1 deletion eng/jacoco-test-coverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-security-keyvault-jca</artifactId>
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-security-keyvault-jca;current} -->
<version>2.0.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 @@ -110,7 +110,7 @@ com.azure:azure-security-attestation;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-security-confidentialledger;1.0.0-beta.2;1.0.0-beta.3
com.azure:azure-security-keyvault-administration;4.0.1;4.1.0-beta.1
com.azure:azure-security-keyvault-certificates;4.2.1;4.3.0-beta.1
com.azure:azure-security-keyvault-jca;1.0.1;1.1.0-beta.1
com.azure:azure-security-keyvault-jca;1.0.1;2.0.0-beta.1
com.azure:azure-security-test-keyvault-jca;1.0.0;1.0.0
com.azure:azure-security-keyvault-keys;4.3.1;4.4.0-beta.2
com.azure:azure-security-keyvault-secrets;4.3.1;4.4.0-beta.1
Expand Down
2 changes: 1 addition & 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

## 1.1.0-beta.1 (Unreleased)
## 2.0.0-beta.1 (Unreleased)


## 1.0.1 (2021-07-01)
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/azure-security-keyvault-jca/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Maven dependency for the Azure Key Vault JCA client library. Add it to your proj
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-security-keyvault-jca</artifactId>
<version>1.1.0</version>
<version>2.0.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
24 changes: 13 additions & 11 deletions 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>1.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-security-keyvault-jca;current} -->
<version>2.0.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>
<build>
Expand All @@ -37,6 +37,16 @@
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.2</version> <!-- {x-version-update;org.apache.maven.plugins:maven-jar-plugin;external_dependency} -->
<configuration>
<excludes>
<exclude>module-info.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand All @@ -49,14 +59,6 @@
<configuration>
<createSourcesJar>true</createSourcesJar>
<shadeSourcesContent>true</shadeSourcesContent>
<filters>
<filter>
<artifact>com.azure:azure-security-keyvault-jca</artifact>
<excludes>
<exclude>module-info.java</exclude>
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>com.fasterxml.jackson</pattern>
Expand Down Expand Up @@ -99,7 +101,7 @@
<version>1.0.0.RC1</version> <!-- {x-version-update;org.moditect:moditect-maven-plugin;external_dependency} -->
<executions>
<execution>
<id>add-module-infos</id>
<id>add-module-info</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
Expand All @@ -108,7 +110,7 @@
<overwriteExistingFiles>true</overwriteExistingFiles>
<module>
<moduleInfoFile>
src/main/module-info.java
src/main/resources/module-info.java
</moduleInfoFile>
</module>
</configuration>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* The Azure Key Vault security provider.
*/
public class KeyVaultJcaProvider extends Provider {
public final class KeyVaultJcaProvider extends Provider {

/**
* Stores the name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* The Azure Key Vault variant of the X509ExtendedKeyManager.
*/
public class KeyVaultKeyManager extends X509ExtendedKeyManager {
public final class KeyVaultKeyManager extends X509ExtendedKeyManager {

/**
* Stores the logger.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* The Azure Key Vault variant of the KeyManagerFactory.
*/
public class KeyVaultKeyManagerFactory extends KeyManagerFactorySpi {
public final class KeyVaultKeyManagerFactory extends KeyManagerFactorySpi {

/**
* Stores the logger.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
// Licensed under the MIT License.
package com.azure.security.keyvault.jca;

import com.azure.security.keyvault.jca.implementation.certificates.AzureCertificates;
import com.azure.security.keyvault.jca.implementation.certificates.ClasspathCertificates;
import com.azure.security.keyvault.jca.implementation.certificates.JreCertificates;
import com.azure.security.keyvault.jca.implementation.certificates.KeyVaultCertificates;
import com.azure.security.keyvault.jca.implementation.certificates.SpecificPathCertificates;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.Key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* The Azure Key Vault LoadStoreParameter of the KeyStoreSpi.
*/
public class KeyVaultLoadStoreParameter implements KeyStore.LoadStoreParameter {
public final class KeyVaultLoadStoreParameter implements KeyStore.LoadStoreParameter {

/**
* Stores the URI.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* The Azure Key Vault variant of the X509TrustManager.
*/
public class KeyVaultTrustManager extends X509ExtendedTrustManager {
public final class KeyVaultTrustManager extends X509ExtendedTrustManager {

/**
* Stores the logger.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* The Azure Key Vault variant of the TrustManagerFactory.
*/
public class KeyVaultTrustManagerFactory extends TrustManagerFactorySpi {
public final class KeyVaultTrustManagerFactory extends TrustManagerFactorySpi {

/**
* Stores the logger.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* The Azure Key Vault TrustManagerFactory provider.
*/
public class KeyVaultTrustManagerFactoryProvider extends Provider {
public final class KeyVaultTrustManagerFactoryProvider extends Provider {

/**
* Stores the serial version UID.
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 95fc2af

Please sign in to comment.