Class SecretInformationFactory
java.lang.Object
org.apache.synapse.securevault.secret.SecretInformationFactory
Factory to create a DataSourceInformation based on given properties
-
Method Summary
Modifier and TypeMethodDescriptionstatic SecretInformationcreateSecretInformation(String secretProvider, String aliasPassword, String passwordPrompt) Factory method to create a SecretInformation instance based on the given informationstatic SecretInformationcreateSecretInformation(Properties properties, String configurationPrefix, String passwordPrompt) Factory method to create a SecretInformation instance based on the given properties
-
Method Details
-
createSecretInformation
public static SecretInformation createSecretInformation(Properties properties, String configurationPrefix, String passwordPrompt) Factory method to create a SecretInformation instance based on the given properties- Parameters:
properties- Properties to create a SecretInformationconfigurationPrefix- The configuration prefix to usepasswordPrompt- A specific password prompt to use (only for interactive authentication providers)- Returns:
- SecretInformation instance
-
createSecretInformation
public static SecretInformation createSecretInformation(String secretProvider, String aliasPassword, String passwordPrompt) Factory method to create a SecretInformation instance based on the given information- Parameters:
secretProvider- A SecretCallbackHandler implementation to use to get secretsaliasPassword- The alias passwordpasswordPrompt- A specific password prompt to use (only for interactive authentication providers)- Returns:
- SecretInformation instance
-