当前位置: 首页>>代码示例>>Java>>正文


Java RSACipher.decryptWebRequestData方法代码示例

本文整理汇总了Java中jetbrains.buildServer.serverSide.crypt.RSACipher.decryptWebRequestData方法的典型用法代码示例。如果您正苦于以下问题:Java RSACipher.decryptWebRequestData方法的具体用法?Java RSACipher.decryptWebRequestData怎么用?Java RSACipher.decryptWebRequestData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在jetbrains.buildServer.serverSide.crypt.RSACipher的用法示例。


在下文中一共展示了RSACipher.decryptWebRequestData方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: handleConfigurationChange

import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
private HashMap<String, Object> handleConfigurationChange(HttpServletRequest request) throws IOException, MsTeamsConfigValidationException {
    setRequestParams(request);
    if(!isNullOrEmpty(proxyPassword)){
        proxyPassword = RSACipher.decryptWebRequestData(proxyPassword);
    }

    Validate(token, botName, iconUrl, maxCommitsToDisplay, showBuildAgent, proxyHost, proxyPort, proxyUser, proxyPassword);

    this.config.setToken(token);
    this.config.getContent().setBotName(botName);
    this.config.getContent().setIconUrl(iconUrl);
    this.config.getContent().setMaxCommitsToDisplay(Integer.parseInt(maxCommitsToDisplay));
    this.config.getContent().setShowBuildAgent(Boolean.parseBoolean(showBuildAgent));
    this.config.getContent().setShowCommits(Boolean.parseBoolean(showCommits));
    this.config.getContent().setShowCommitters(Boolean.parseBoolean(showCommitters));
    this.config.getContent().setShowElapsedBuildTime((Boolean.parseBoolean(showElapsedBuildTime)));
    this.config.getContent().setShowFailureReason((Boolean.parseBoolean(showFailureReason)));


    this.config.setProxyHost(proxyHost);
    this.config.setProxyPort(isNullOrEmpty(proxyPort) ? null : Integer.parseInt(proxyPort));
    this.config.setProxyUsername(proxyUser);
    this.config.setProxyPassword(proxyPassword);


    this.config.save();

    HashMap<String, Object> params = new HashMap<String, Object>();
    params.put("message", "Saved");
    return params;
}
 
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:32,代码来源:MsTeamsNotifierSettingsController.java

示例2: setEncryptedProperty

import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
private static void setEncryptedProperty(final String paramName, final String value,
                                         final BasePropertiesBean bean, final boolean includeEmptyValues) {
    String propName = paramName.substring(ENCRYPTED_PROPERTY_PREFIX.length());
    String propertyValue = RSACipher.decryptWebRequestData(value);
    if (propertyValue != null && (includeEmptyValues || propertyValue.length() > 0)) {
        bean.setProperty(propName, toUnixLineFeeds(propertyValue));
    }
}
 
开发者ID:JetBrains,项目名称:teamcity-google-agent,代码行数:9,代码来源:PluginPropertiesUtil.java

示例3: setEncryptedProperty

import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
private static void setEncryptedProperty(final String paramName, final HttpServletRequest request,
                                         final BasePropertiesBean bean, final boolean includeEmptyValues) {
    String propName = paramName.substring(ENCRYPTED_PROPERTY_PREFIX.length());
    String propertyValue = RSACipher.decryptWebRequestData(request.getParameter(paramName));
    if (propertyValue != null && (includeEmptyValues || propertyValue.length() > 0)) {
        bean.setProperty(propName, toUnixLineFeeds(propertyValue));
    }
}
 
开发者ID:JetBrains,项目名称:teamcity-kubernetes-plugin,代码行数:9,代码来源:PluginPropertiesUtil.java

示例4: getDecryptedWebPassword

import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
private String getDecryptedWebPassword(final String webEncryptedPass) throws IllegalArgumentException, EncryptionException {
    if (StringUtils.isNotBlank(webEncryptedPass)) {
        final String webDecryptedPass = RSACipher.decryptWebRequestData(webEncryptedPass);

        if (StringUtils.isNotBlank(webDecryptedPass)) {
            return webDecryptedPass;
        }
    }
    return "";
}
 
开发者ID:blackducksoftware,项目名称:hub-teamcity,代码行数:11,代码来源:HubGlobalServerConfigController.java

示例5: setEncryptedProperty

import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
private static void setEncryptedProperty(final String paramName, final HttpServletRequest request,
                                         final BasePropertiesBean bean, final boolean includeEmptyValues) {
  String propName = paramName.substring(ENCRYPTED_PROPERTY_PREFIX.length());
  String propertyValue = RSACipher.decryptWebRequestData(request.getParameter(paramName));
  if (propertyValue != null && (includeEmptyValues || propertyValue.length() > 0)) {
    bean.setProperty(propName, toUnixLineFeeds(propertyValue));
  }
}
 
开发者ID:JetBrains,项目名称:teamcity-s3-artifact-storage-plugin,代码行数:9,代码来源:PluginPropertiesUtil.java

示例6: getPassword

import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
private String getPassword(final HttpServletRequest request){
    String encryptedPassword = request.getParameter(PARAM_ENCRYPTED_PASSWORD);
    if(encryptedPassword == null){
        return encryptedPassword;
    }
    return RSACipher.decryptWebRequestData(encryptedPassword);
}
 
开发者ID:automate-website,项目名称:teamcity-plugin,代码行数:8,代码来源:GlobalConfigRequest.java

示例7: handleConfigurationChange

import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
private HashMap<String, Object> handleConfigurationChange(HttpServletRequest request) throws IOException, SlackConfigValidationException {
    setRequestParams(request);
    if(!isNullOrEmpty(proxyPassword)){
        proxyPassword = RSACipher.decryptWebRequestData(proxyPassword);
    }

    Validate(teamName, token, botName, iconUrl, defaultChannel, maxCommitsToDisplay, showBuildAgent, proxyHost, proxyPort, proxyUser, proxyPassword);

    this.config.setTeamName(teamName);
    this.config.setToken(token);
    this.config.getContent().setBotName(botName);
    this.config.getContent().setIconUrl(iconUrl);
    this.config.setDefaultChannel(defaultChannel);
    this.config.getContent().setMaxCommitsToDisplay(Integer.parseInt(maxCommitsToDisplay));
    this.config.getContent().setShowBuildAgent(Boolean.parseBoolean(showBuildAgent));
    this.config.getContent().setShowCommits(Boolean.parseBoolean(showCommits));
    this.config.getContent().setShowCommitters(Boolean.parseBoolean(showCommitters));
    this.config.getContent().setShowElapsedBuildTime((Boolean.parseBoolean(showElapsedBuildTime)));
    this.config.getContent().setShowFailureReason((Boolean.parseBoolean(showFailureReason)));


    this.config.setProxyHost(proxyHost);
    this.config.setProxyPort(isNullOrEmpty(proxyPort) ? null : Integer.parseInt(proxyPort));
    this.config.setProxyUsername(proxyUser);
    this.config.setProxyPassword(proxyPassword);


    this.config.save();

    HashMap<String, Object> params = new HashMap<String, Object>();
    params.put("message", "Saved");
    return params;
}
 
开发者ID:PeteGoo,项目名称:tcSlackBuildNotifier,代码行数:34,代码来源:SlackNotifierSettingsController.java

示例8: setEncryptedBotToken

import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
public void setEncryptedBotToken(String encrypted) {
  this.botToken = RSACipher.decryptWebRequestData(encrypted);
}
 
开发者ID:dancing-elf,项目名称:teamcity-telegram-plugin,代码行数:4,代码来源:TelegramSettingsBean.java

示例9: setEncryptedProxyPassword

import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
public void setEncryptedProxyPassword(String encrypted) {
  this.proxyPassword = RSACipher.decryptWebRequestData(encrypted);
}
 
开发者ID:dancing-elf,项目名称:teamcity-telegram-plugin,代码行数:4,代码来源:TelegramSettingsBean.java

示例10: decryptIfNeeded

import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
private String decryptIfNeeded(@Nullable final String value) {
    return value != null ? RSACipher.decryptWebRequestData(value) : null;
}
 
开发者ID:JetBrains,项目名称:TeamCity.SonarQubePlugin,代码行数:4,代码来源:ManageSQSActionController.java

示例11: setEncryptedPassword

import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
@Used("jsp")
public void setEncryptedPassword(final String encrypted) {
  myPassword = RSACipher.decryptWebRequestData(encrypted);
}
 
开发者ID:JetBrains,项目名称:tc-vso-rooms,代码行数:5,代码来源:VSONotificationUserSettingsBean.java

示例12: setEncryptedPassword

import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
public void setEncryptedPassword(String encrypted) {
    password = RSACipher.decryptWebRequestData(encrypted);
}
 
开发者ID:trevleyb,项目名称:TeamCityRallyIntegration,代码行数:4,代码来源:SettingsBean.java

示例13: setEncryptedProxyPassword

import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
public void setEncryptedProxyPassword(String encrypted) {
    proxyPassword = RSACipher.decryptWebRequestData(encrypted);
}
 
开发者ID:trevleyb,项目名称:TeamCityRallyIntegration,代码行数:4,代码来源:SettingsBean.java


注:本文中的jetbrains.buildServer.serverSide.crypt.RSACipher.decryptWebRequestData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。