本文整理汇总了Java中org.wso2.securevault.SecretResolver.init方法的典型用法代码示例。如果您正苦于以下问题:Java SecretResolver.init方法的具体用法?Java SecretResolver.init怎么用?Java SecretResolver.init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.wso2.securevault.SecretResolver
的用法示例。
在下文中一共展示了SecretResolver.init方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.wso2.securevault.SecretResolver; //导入方法依赖的package包/类
/**
* This method is called when the execution class is initialized.
* All the execution classes are initialized only once.
*
* @param parameterMap the parameters that have been given in the
* lifecycle configuration as the parameters of the executor.
*/
@Override
public void init(Map parameterMap) {
SecretResolver secretResolver = SecretResolverFactory.create((OMElement) null, false);
// Retrieves the secured password as follows
secretResolver.init(GovernanceRegistryExtensionsComponent.getSecretCallbackHandlerService()
.getSecretCallbackHandler());
if (secretResolver.isInitialized()) {
apimUsername = secretResolver.resolve(ExecutorConstants.APIM_USERNAME);
apimPassword = secretResolver.resolve(ExecutorConstants.APIM_PASSWORD);
}
if (parameterMap.get(ExecutorConstants.APIM_ENDPOINT) != null) {
apimEndpoint = parameterMap.get(ExecutorConstants.APIM_ENDPOINT).toString();
}
if (parameterMap.get(ExecutorConstants.APIM_USERNAME) != null) {
apimUsername = parameterMap.get(ExecutorConstants.APIM_USERNAME).toString();
}
if (parameterMap.get(ExecutorConstants.APIM_PASSWORD) != null) {
apimPassword = parameterMap.get(ExecutorConstants.APIM_PASSWORD).toString();
}
}
示例2: init
import org.wso2.securevault.SecretResolver; //导入方法依赖的package包/类
/**
* This method is called when the execution class is initialized. All the execution classes are initialized only
* once.
*
* @param parameterMap Static parameter map given by the user. These are the parameters that have been given in the
* lifecycle configuration as the parameters of the executor.
* <p>
* Eg:- <execution forEvent="Promote" class="org.wso2.carbon.governance.registry.extensions
* .executors.ServiceVersionExecutor"> <parameter name="currentEnvironment"
* value="/_system/governance/trunk/"/> <parameter name="targetEnvironment"
* value="/_system/governance/branches/testing/"/> <parameter name="service.mediatype"
* value="application/vnd.wso2-service+xml"/> </execution>
* <p>
* The parameters defined here are passed to the executor using this method.
*/
@Override
public void init(Map parameterMap) {
SecretResolver secretResolver = SecretResolverFactory.create((OMElement) null, false);
// Retrieves the secured password as follows
secretResolver.init(GovernanceRegistryExtensionsComponent.getSecretCallbackHandlerService()
.getSecretCallbackHandler());
if (secretResolver.isInitialized()) {
apimUsername = secretResolver.resolve(APIM_USERNAME);
apimPassword = secretResolver.resolve(APIM_PASSWORD);
}
if (parameterMap.get(APIM_ENDPOINT) != null) {
apimEndpoint = parameterMap.get(APIM_ENDPOINT).toString();
}
if (parameterMap.get(APIM_USERNAME) != null) {
apimUsername = parameterMap.get(APIM_USERNAME).toString();
}
if (parameterMap.get(APIM_PASSWORD) != null) {
apimPassword = parameterMap.get(APIM_PASSWORD).toString();
}
}
示例3: init
import org.wso2.securevault.SecretResolver; //导入方法依赖的package包/类
/**
* This method is called when the execution class is initialized.
* All the execution classes are initialized only once.
*
* @param parameterMap the parameters that have been given in the
* lifecycle configuration as the parameters of the executor.
*/
@Override
public void init(Map parameterMap) {
SecretResolver secretResolver = SecretResolverFactory.create((OMElement) null, false);
// Retrieves the secured password as follows
secretResolver.init(GovernanceRegistryExtensionsComponent.getSecretCallbackHandlerService()
.getSecretCallbackHandler());
if (secretResolver.isInitialized()) {
apimUsername = secretResolver.resolve(ExecutorConstants.APIM_USERNAME);
apimPassword = secretResolver.resolve(ExecutorConstants.APIM_PASSWORD);
}
if (parameterMap.get(ExecutorConstants.APIM_ENDPOINT) != null) {
apimEndpoint = parameterMap.get(ExecutorConstants.APIM_ENDPOINT).toString();
}
if (parameterMap.get(ExecutorConstants.APIM_USERNAME) != null) {
apimUsername = parameterMap.get(ExecutorConstants.APIM_USERNAME).toString();
}
if (parameterMap.get(ExecutorConstants.APIM_PASSWORD) != null) {
apimPassword = parameterMap.get(ExecutorConstants.APIM_PASSWORD).toString();
}
if (parameterMap.get(ExecutorConstants.DEFAULT_TIER) != null) {
defaultTier = parameterMap.get(ExecutorConstants.DEFAULT_TIER).toString();
}
if (parameterMap.get(ExecutorConstants.THROTTLING_TIER) != null) {
apiThrottlingTier = parameterMap.get(ExecutorConstants.THROTTLING_TIER).toString();
}
}
示例4: init
import org.wso2.securevault.SecretResolver; //导入方法依赖的package包/类
/**
* This method is called when the execution class is initialized.
* All the execution classes are initialized only once.
*
* @param parameterMap Static parameter map given by the user.
* These are the parameters that have been given in the
* lifecycle configuration as the parameters of the executor.
*/
public void init(Map parameterMap) {
SecretResolver secretResolver = SecretResolverFactory.create((OMElement) null, false);
// Retrieves the secured password as follows
secretResolver.init(GovernanceRegistryExtensionsComponent.getSecretCallbackHandlerService()
.getSecretCallbackHandler());
if (secretResolver != null && secretResolver.isInitialized()) {
apimUsername = secretResolver.resolve("apim.username");
}
if (secretResolver != null && secretResolver.isInitialized()) {
apimPassword = secretResolver.resolve("apim.password");
}
this.parameterMap = parameterMap;
if (parameterMap.get(APIM_ENDPOINT) != null) {
apimEndpoint = parameterMap.get(APIM_ENDPOINT).toString();
}
if (parameterMap.get(APIM_USERNAME) != null) {
apimUsername = parameterMap.get(APIM_USERNAME).toString();
}
if (parameterMap.get(APIM_PASSWORD) != null) {
apimPassword = parameterMap.get(APIM_PASSWORD).toString();
}
if (parameterMap.get(DEFAULT_TIER) != null) {
defaultTier = parameterMap.get(DEFAULT_TIER).toString();
}
if (parameterMap.get(THROTTLING_TIER) != null) {
apiThrottlingTier = parameterMap.get(THROTTLING_TIER).toString();
}
if (parameterMap.get(Constants.APIM_ENV) != null) {
apimEnv = parameterMap.get(Constants.APIM_ENV).toString();
}
}
示例5: init
import org.wso2.securevault.SecretResolver; //导入方法依赖的package包/类
/**
* This method is called when the execution class is initialized.
* All the execution classes are initialized only once.
*
* @param parameterMap Static parameter map given by the user.
* These are the parameters that have been given in the
* lifecycle configuration as the parameters of the executor.
*/
@Override
public void init(Map parameterMap) {
SecretResolver secretResolver = SecretResolverFactory.create((OMElement) null, false);
// Retrieves the secured password as follows
secretResolver.init(GovernanceRegistryExtensionsComponent.getSecretCallbackHandlerService()
.getSecretCallbackHandler());
if (secretResolver.isInitialized()) {
apimUsername = secretResolver.resolve(APIM_USERNAME);
apimPassword = secretResolver.resolve(APIM_PASSWORD);
}
if (parameterMap.get(APIM_ENDPOINT) != null) {
apimEndpoint = parameterMap.get(APIM_ENDPOINT).toString();
}
if (parameterMap.get(APIM_USERNAME) != null) {
apimUsername = parameterMap.get(APIM_USERNAME).toString();
}
if (parameterMap.get(APIM_PASSWORD) != null) {
apimPassword = parameterMap.get(APIM_PASSWORD).toString();
}
if (parameterMap.get(Constants.APIM_ENV) != null) {
apimEnv = parameterMap.get(Constants.APIM_ENV).toString();
}
if (parameterMap.get(DEFAULT_TIER) != null) {
defaultTier = parameterMap.get(DEFAULT_TIER).toString();
}
if (parameterMap.get(THROTTLING_TIER) != null) {
apiThrottlingTier = parameterMap.get(THROTTLING_TIER).toString();
}
}
示例6: init
import org.wso2.securevault.SecretResolver; //导入方法依赖的package包/类
/**
* This method is called when the execution class is initialized.
* All the execution classes are initialized only once.
*
* @param parameterMap Static parameter map given by the user.
* These are the parameters that have been given in the
* lifecycle configuration as the parameters of the executor.
*/
public void init(Map parameterMap) {
SecretResolver secretResolver = SecretResolverFactory.create((OMElement) null, false) ;
// Retrieves the secured password as follows
secretResolver.init(GovernanceRegistryExtensionsComponent.getSecretCallbackHandlerService()
.getSecretCallbackHandler());
if (secretResolver != null && secretResolver.isInitialized()) {
apimUsername = secretResolver.resolve("apim.username");
}
if (secretResolver != null && secretResolver.isInitialized()) {
apimPassword = secretResolver.resolve("apim.password");
}
this.parameterMap = parameterMap;
if (parameterMap.get(APIM_ENDPOINT) != null) {
apimEndpoint = parameterMap.get(APIM_ENDPOINT).toString();
}
if (parameterMap.get(APIM_USERNAME) != null) {
apimUsername = parameterMap.get(APIM_USERNAME).toString();
}
if (parameterMap.get(APIM_PASSWORD) != null) {
apimPassword = parameterMap.get(APIM_PASSWORD).toString();
}
if (parameterMap.get(DEFAULT_TIER) != null) {
defaultTier = parameterMap.get(DEFAULT_TIER).toString();
}
if (parameterMap.get(THROTTLING_TIER) != null) {
apiThrottlingTier = parameterMap.get(THROTTLING_TIER).toString();
}
}
示例7: init
import org.wso2.securevault.SecretResolver; //导入方法依赖的package包/类
/**
* This method is called when the execution class is initialized.
* All the execution classes are initialized only once.
*
* @param parameterMap Static parameter map given by the user.
* These are the parameters that have been given in the
* lifecycle configuration as the parameters of the executor.
*/
@Override
public void init(Map parameterMap) {
SecretResolver secretResolver = SecretResolverFactory.create((OMElement) null, false);
// Retrieves the secured password as follows
secretResolver.init(GovernanceRegistryExtensionsComponent.getSecretCallbackHandlerService()
.getSecretCallbackHandler());
if (secretResolver.isInitialized()) {
apimUsername = secretResolver.resolve(APIM_USERNAME);
apimPassword = secretResolver.resolve(APIM_PASSWORD);
}
if (parameterMap.get(APIM_ENDPOINT) != null) {
apimEndpoint = parameterMap.get(APIM_ENDPOINT).toString();
}
if (parameterMap.get(APIM_USERNAME) != null) {
apimUsername = parameterMap.get(APIM_USERNAME).toString();
}
if (parameterMap.get(APIM_PASSWORD) != null) {
apimPassword = parameterMap.get(APIM_PASSWORD).toString();
}
if (parameterMap.get(Constants.APIM_ENV) != null) {
apimEnv = parameterMap.get(Constants.APIM_ENV).toString();
}
if (parameterMap.get(DEFAULT_TIER) != null) {
defaultTier = parameterMap.get(DEFAULT_TIER).toString();
}
if (parameterMap.get(THROTTLING_TIER) != null) {
apiThrottlingTier = parameterMap.get(THROTTLING_TIER).toString();
}
if (parameterMap.get(APIM_PUBLISHER) != null) {
apimPublisher = parameterMap.get(APIM_PUBLISHER).toString();
}
}