Skip to content

Add key store & trust store type in the connection config#267

Open
kalaiyarasiganeshalingam wants to merge 2 commits intowso2-extensions:4.0.xfrom
kalaiyarasiganeshalingam:4.0.x
Open

Add key store & trust store type in the connection config#267
kalaiyarasiganeshalingam wants to merge 2 commits intowso2-extensions:4.0.xfrom
kalaiyarasiganeshalingam:4.0.x

Conversation

@kalaiyarasiganeshalingam
Copy link
Contributor

Purpose

$Subject

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for configuring keystore and truststore types in FTPS connections, allowing users to specify the type of keystore (e.g., JKS, PKCS12) alongside the existing path and password configurations.

  • Added keyStoreType and trustStoreType parameters across all configuration layers
  • Updated commons-vfs dependency to version 2.2.0-wso2v23-SNAPSHOT to support the new type configuration methods
  • Maintained consistency with existing keystore/truststore configuration patterns

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/main/resources/uischema/ftps.json Added UI schema definitions for keyStoreType and trustStoreType fields with appropriate validation and help text
src/main/resources/config/init.xml Added parameter definitions for keyStoreType and trustStoreType in the connector template
src/main/java/org/wso2/carbon/connector/utils/Const.java Added constants KEYSTORE_TYPE and TRUSTSTORE_TYPE for parameter name references
src/main/java/org/wso2/carbon/connector/pojo/FTPSConnectionConfig.java Added private fields and getter/setter methods for keyStoreType and trustStoreType with empty check validation
src/main/java/org/wso2/carbon/connector/operations/FileConfig.java Added parameter retrieval and configuration setting for keyStoreType and trustStoreType from message context
src/main/java/org/wso2/carbon/connector/connection/FTPSFileSystemSetup.java Added calls to FtpsFileSystemConfigBuilder to set keystore and truststore types when values are provided
pom.xml Updated commons-vfs version to 2.2.0-wso2v23-SNAPSHOT to support the new keystore/truststore type configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants