本文整理汇总了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;
}
示例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));
}
}
示例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));
}
}
示例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 "";
}
示例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));
}
}
示例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);
}
示例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;
}
示例8: setEncryptedBotToken
import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
public void setEncryptedBotToken(String encrypted) {
this.botToken = RSACipher.decryptWebRequestData(encrypted);
}
示例9: setEncryptedProxyPassword
import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
public void setEncryptedProxyPassword(String encrypted) {
this.proxyPassword = RSACipher.decryptWebRequestData(encrypted);
}
示例10: decryptIfNeeded
import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
private String decryptIfNeeded(@Nullable final String value) {
return value != null ? RSACipher.decryptWebRequestData(value) : null;
}
示例11: setEncryptedPassword
import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
@Used("jsp")
public void setEncryptedPassword(final String encrypted) {
myPassword = RSACipher.decryptWebRequestData(encrypted);
}
示例12: setEncryptedPassword
import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
public void setEncryptedPassword(String encrypted) {
password = RSACipher.decryptWebRequestData(encrypted);
}
示例13: setEncryptedProxyPassword
import jetbrains.buildServer.serverSide.crypt.RSACipher; //导入方法依赖的package包/类
public void setEncryptedProxyPassword(String encrypted) {
proxyPassword = RSACipher.decryptWebRequestData(encrypted);
}