-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Make KeyVaultJcaProvider can work when keyvault-uri is not set. (#…
…22488) 2. Delete unused property: azure.keyvault.aad-authentication-url 3. Reuse the code in test. 4. Rename KeyVaultProperties to AzureKeyVaultProperties. 5. Add AzureCertPathProperties.
- Loading branch information
Rujun Chen
authored
Jun 29, 2021
1 parent
bff806b
commit 3921af0
Showing
4 changed files
with
65 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...java/com/azure/spring/security/keyvault/certificates/starter/AzureCertPathProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
package com.azure.spring.security.keyvault.certificates.starter; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.boot.context.properties.EnableConfigurationProperties; | ||
|
||
/** | ||
* This is used to generate spring-configuration-metadata.json | ||
* | ||
* @see <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-configuration-metadata.html">Metadata</a> | ||
*/ | ||
@EnableConfigurationProperties({ AzureCertPathProperties.class }) | ||
@ConfigurationProperties("azure.cert-path") | ||
public class AzureCertPathProperties { | ||
|
||
/** | ||
* The path to put custom certificates | ||
*/ | ||
private String custom; | ||
|
||
/** | ||
* The path to put well-known certificates | ||
*/ | ||
private String wellKnown; | ||
|
||
public String getCustom() { | ||
return custom; | ||
} | ||
|
||
public String getWellKnown() { | ||
return wellKnown; | ||
} | ||
|
||
public void setCustom(String custom) { | ||
this.custom = custom; | ||
} | ||
|
||
public void setWellKnown(String wellKnown) { | ||
this.wellKnown = wellKnown; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters