-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge keystore dao to kernel core #3659
Merge keystore dao to kernel core #3659
Conversation
…velopment iteration
…velopment iteration
…velopment iteration
…velopment iteration
…velopment iteration
…velopment iteration
…velopment iteration
…velopment iteration
…velopment iteration
…velopment iteration
…velopment iteration
…velopment iteration
…velopment iteration
…velopment iteration
…velopment iteration
…_KEY_STORE table.
… into merge-keystore-dao-to-kernel-core
core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/internal/KeyStoreMgtComponent.java
Show resolved
Hide resolved
core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/internal/KeyStoreMgtComponent.java
Outdated
Show resolved
Hide resolved
core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/util/KeyStoreManager.java
Outdated
Show resolved
Hide resolved
@@ -217,6 +215,7 @@ public Key getPrivateKey(String keyStoreName, String alias) { | |||
* @return password of the key store | |||
* @throws Exception Error when reading the registry resource of decrypting the password | |||
*/ | |||
// TODO: deprecate this method in the future since we are no longer using registry for key store management. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's incorporate this change as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved with 2660884.
(The usage will be removed with a different PR.)
|
||
keyStoreDAO.updateKeyStore(this.tenantUUID, updatedKeyStoreModel); | ||
|
||
// TODO: is it correct to use new Date() here? The value stored in DB might be different. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is a problem, either fix it or report a git issue.
@@ -0,0 +1,105 @@ | |||
/* | |||
* Copyright (c) 2010, WSO2 LLC. (https://www.wso2.com). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Copyright (c) 2010, WSO2 LLC. (https://www.wso2.com). | |
* Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though this file looks like newly added, it is an old file with a git history.
...2.carbon.core/src/main/java/org/wso2/carbon/core/keystore/service/PaginatedKeyStoreData.java
Show resolved
Hide resolved
@@ -0,0 +1,95 @@ | |||
/* | |||
* Copyright (c) 2010, WSO2 LLC. (https://www.wso2.com). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Copyright (c) 2010, WSO2 LLC. (https://www.wso2.com). | |
* Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). |
Check the other license headers as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though this file looks like newly added, it is an old file with a git history.
Co-authored-by: Maduranga Siriwardena <[email protected]>
9be10c0
into
wso2:feature-remove-registry-from-keystore
Describe
This effort will move the keystore package from security-mgt:security-mgt to the kernel:core. The decision has been taken to do so was due to a cyclic dependency between the keystore package and the keyStoreAdmin in carbon-core.
The effort includes the DAO layer implementation inrtroduced when removing registry implementation from keystore. Commits made to this PR has been moved to here.
Related issues
Related PRs