當前位置: 首頁>>代碼示例>>Java>>正文


Java Secret.getEncryptedValue方法代碼示例

本文整理匯總了Java中hudson.util.Secret.getEncryptedValue方法的典型用法代碼示例。如果您正苦於以下問題:Java Secret.getEncryptedValue方法的具體用法?Java Secret.getEncryptedValue怎麽用?Java Secret.getEncryptedValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在hudson.util.Secret的用法示例。


在下文中一共展示了Secret.getEncryptedValue方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: LambdaUploadBuildStepVariables

import hudson.util.Secret; //導入方法依賴的package包/類
@Deprecated
public LambdaUploadBuildStepVariables(boolean useInstanceCredentials, String awsAccessKeyId, Secret awsSecretKey, String awsRegion, String artifactLocation, String description, String functionName, String handler, String memorySize, String role, String runtime, String timeout, String updateMode, boolean publish, String alias, boolean createAlias, String subnets, String securityGroups) {
    this.useInstanceCredentials = useInstanceCredentials;
    this.awsAccessKeyId = awsAccessKeyId;
    this.awsSecretKey = awsSecretKey != null ? awsSecretKey.getEncryptedValue() : null;
    this.awsRegion = awsRegion;
    this.artifactLocation = artifactLocation;
    this.description = description;
    this.functionName = functionName;
    this.handler = handler;
    this.memorySize = memorySize;
    this.role = role;
    this.runtime = runtime;
    this.timeout = timeout;
    this.updateMode = updateMode;
    this.publish = publish;
    this.alias = alias;
    this.createAlias = createAlias;
    this.subnets = subnets;
    this.securityGroups = securityGroups;
}
 
開發者ID:XT-i,項目名稱:aws-lambda-jenkins-plugin,代碼行數:22,代碼來源:LambdaUploadBuildStepVariables.java

示例2: LambdaUploadVariables

import hudson.util.Secret; //導入方法依賴的package包/類
@Deprecated
public LambdaUploadVariables(boolean useInstanceCredentials, String awsAccessKeyId, Secret awsSecretKey, String awsRegion, String artifactLocation, String description, String functionName, String handler, String memorySize, String role, String runtime, String timeout, boolean successOnly, boolean publish, String updateMode, String alias, boolean createAlias, String subnets, String securityGroups) {
    this.useInstanceCredentials = useInstanceCredentials;
    this.awsAccessKeyId = awsAccessKeyId;
    this.awsSecretKey = awsSecretKey != null ? awsSecretKey.getEncryptedValue() : null;
    this.awsRegion = awsRegion;
    this.artifactLocation = artifactLocation;
    this.description = description;
    this.functionName = functionName;
    this.handler = handler;
    this.memorySize = memorySize;
    this.role = role;
    this.runtime = runtime;
    this.timeout = timeout;
    this.successOnly = successOnly;
    this.publish = publish;
    this.updateMode = updateMode;
    this.alias = alias;
    this.createAlias = createAlias;
    this.subnets = subnets;
    this.securityGroups = securityGroups;
}
 
開發者ID:XT-i,項目名稱:aws-lambda-jenkins-plugin,代碼行數:23,代碼來源:LambdaUploadVariables.java

示例3: LambdaPublishVariables

import hudson.util.Secret; //導入方法依賴的package包/類
@Deprecated
public LambdaPublishVariables(boolean useInstanceCredentials, String awsAccessKeyId, Secret awsSecretKey, String awsRegion, String functionARN, String functionAlias, String versionDescription
) {
    this.useInstanceCredentials = useInstanceCredentials;
    this.awsAccessKeyId = awsAccessKeyId;
    this.awsSecretKey = awsSecretKey != null ? awsSecretKey.getEncryptedValue() : null;
    this.awsRegion = awsRegion;
    this.functionARN = functionARN;
    this.functionAlias = functionAlias;
    this.versionDescription = versionDescription;
}
 
開發者ID:XT-i,項目名稱:aws-lambda-jenkins-plugin,代碼行數:12,代碼來源:LambdaPublishVariables.java

示例4: LambdaPublishBuildStepVariables

import hudson.util.Secret; //導入方法依賴的package包/類
@Deprecated
public LambdaPublishBuildStepVariables(boolean useInstanceCredentials, String awsAccessKeyId, Secret awsSecretKey, String awsRegion, String functionARN, String functionAlias, String versionDescription) {
    this.useInstanceCredentials = useInstanceCredentials;
    this.awsAccessKeyId = awsAccessKeyId;
    this.awsSecretKey = awsSecretKey != null ? awsSecretKey.getEncryptedValue() : null;
    this.awsRegion = awsRegion;
    this.functionARN = functionARN;
    this.functionAlias = functionAlias;
    this.versionDescription = versionDescription;
}
 
開發者ID:XT-i,項目名稱:aws-lambda-jenkins-plugin,代碼行數:11,代碼來源:LambdaPublishBuildStepVariables.java

示例5: LambdaInvokeVariables

import hudson.util.Secret; //導入方法依賴的package包/類
@Deprecated
public LambdaInvokeVariables(boolean useInstanceCredentials, String awsAccessKeyId, Secret awsSecretKey, String awsRegion, String functionName, String payload, boolean synchronous, boolean successOnly, List<JsonParameterVariables> jsonParameters) {
    this.useInstanceCredentials = useInstanceCredentials;
    this.awsAccessKeyId = awsAccessKeyId;
    this.awsSecretKey = awsSecretKey != null ? awsSecretKey.getEncryptedValue() : null;
    this.awsRegion = awsRegion;
    this.functionName = functionName;
    this.payload = payload;
    this.synchronous = synchronous;
    this.successOnly = successOnly;
    this.jsonParameters = jsonParameters;
}
 
開發者ID:XT-i,項目名稱:aws-lambda-jenkins-plugin,代碼行數:13,代碼來源:LambdaInvokeVariables.java

示例6: LambdaInvokeBuildStepVariables

import hudson.util.Secret; //導入方法依賴的package包/類
@Deprecated
public LambdaInvokeBuildStepVariables(boolean useInstanceCredentials, String awsAccessKeyId, Secret awsSecretKey, String awsRegion, String functionName, String payload, boolean synchronous, List<JsonParameterVariables> jsonParameters) {
    this.useInstanceCredentials = useInstanceCredentials;
    this.awsAccessKeyId = awsAccessKeyId;
    this.awsSecretKey = awsSecretKey != null ? awsSecretKey.getEncryptedValue() : null;
    this.awsRegion = awsRegion;
    this.functionName = functionName;
    this.payload = payload;
    this.synchronous = synchronous;
    this.jsonParameters = jsonParameters;
}
 
開發者ID:XT-i,項目名稱:aws-lambda-jenkins-plugin,代碼行數:12,代碼來源:LambdaInvokeBuildStepVariables.java

示例7: LambdaEventSourceVariables

import hudson.util.Secret; //導入方法依賴的package包/類
@Deprecated
public LambdaEventSourceVariables(boolean useInstanceCredentials, String awsAccessKeyId, Secret awsSecretKey, String awsRegion, String functionName, String functionAlias, String eventSourceArn, boolean successOnly) {
    this.useInstanceCredentials = useInstanceCredentials;
    this.awsAccessKeyId = awsAccessKeyId;
    this.awsSecretKey = awsSecretKey != null ? awsSecretKey.getEncryptedValue() : null;
    this.awsRegion = awsRegion;
    this.functionName = functionName;
    this.functionAlias = functionAlias;
    this.eventSourceArn = eventSourceArn;
    this.successOnly = successOnly;
}
 
開發者ID:XT-i,項目名稱:aws-lambda-jenkins-plugin,代碼行數:12,代碼來源:LambdaEventSourceVariables.java

示例8: LambdaEventSourceBuildStepVariables

import hudson.util.Secret; //導入方法依賴的package包/類
@Deprecated
public LambdaEventSourceBuildStepVariables(boolean useInstanceCredentials, String awsAccessKeyId, Secret awsSecretKey, String awsRegion, String functionName, String functionAlias, String eventSourceArn) {
    this.useInstanceCredentials = useInstanceCredentials;
    this.awsAccessKeyId = awsAccessKeyId;
    this.awsSecretKey = awsSecretKey != null ? awsSecretKey.getEncryptedValue() : null;
    this.awsRegion = awsRegion;
    this.functionName = functionName;
    this.functionAlias = functionAlias;
    this.eventSourceArn = eventSourceArn;
}
 
開發者ID:XT-i,項目名稱:aws-lambda-jenkins-plugin,代碼行數:11,代碼來源:LambdaEventSourceBuildStepVariables.java

示例9: setup

import hudson.util.Secret; //導入方法依賴的package包/類
@Before
public void setup() {
    Secret secret = Secret.fromString("this-is-a-secret");
    SecretBytes secret2 = SecretBytes.fromBytes("this-is-another-type-of-secret".getBytes());
    assertEquals("this-is-a-secret", secret.getPlainText());
    assertEquals("this-is-another-type-of-secret", new String(secret2.getPlainData()));
    String encrypted_secret = secret.getEncryptedValue();
    String encrypted_secret2 = secret2.toString();
    xml = "<com.cloudbees.plugins.credentials.SystemCredentialsProvider plugin=\"[email protected]\">\n" +
            "    <domainCredentialsMap class=\"hudson.util.CopyOnWriteMap$Hash\">\n" +
            "        <entry>\n" +
            "            <com.cloudbees.plugins.credentials.domains.Domain>\n" +
            "                <specifications/>\n" +
            "            </com.cloudbees.plugins.credentials.domains.Domain>\n" +
            "            <java.util.concurrent.CopyOnWriteArrayList>\n" +
            "                <com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl>\n" +
            "                    <scope>GLOBAL</scope>\n" +
            "                    <id>f9ebaa5c-a7fc-46e4-93ab-453699781181</id>\n" +
            "                    <description>Alice</description>\n" +
            "                    <username/>\n" +
            "                    <password>" + encrypted_secret + "</password>\n" +
            "                </com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl>\n" +
            "                <com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl>\n" +
            "                    <scope>GLOBAL</scope>\n" +
            "                    <id>f9ebaa5c-a7fc-46e4-93ab-453699781182</id>\n" +
            "                    <description>Bobby&#0x;</description>\n" +
            "                    <username/>\n" +
            "                    <password>" + encrypted_secret2 + "</password>\n" +
            "                </com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl>\n" +
            "            </java.util.concurrent.CopyOnWriteArrayList>\n" +
            "        </entry>\n" +
            "    </domainCredentialsMap>\n" +
            "</com.cloudbees.plugins.credentials.SystemCredentialsProvider>";
}
 
開發者ID:jenkinsci,項目名稱:support-core-plugin,代碼行數:35,代碼來源:SecretHandlerTest.java

示例10: setup

import hudson.util.Secret; //導入方法依賴的package包/類
@Before
public void setup() {
    Secret secret = Secret.fromString("this-is-a-secret");
    SecretBytes secret2 = SecretBytes.fromBytes("this-is-another-type-of-secret".getBytes());
    assertEquals("this-is-a-secret", secret.getPlainText());
    assertEquals("this-is-another-type-of-secret", new String(secret2.getPlainData()));
    String encrypted_secret = secret.getEncryptedValue();
    String encrypted_secret2 = secret2.toString();
    xml = "<com.cloudbees.plugins.credentials.SystemCredentialsProvider plugin=\"[email protected]\">\n" +
            "    <domainCredentialsMap class=\"hudson.util.CopyOnWriteMap$Hash\">\n" +
            "        <entry>\n" +
            "            <com.cloudbees.plugins.credentials.domains.Domain>\n" +
            "                <specifications/>\n" +
            "            </com.cloudbees.plugins.credentials.domains.Domain>\n" +
            "            <java.util.concurrent.CopyOnWriteArrayList>\n" +
            "                <com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl>\n" +
            "                    <scope>GLOBAL</scope>\n" +
            "                    <id>f9ebaa5c-a7fc-46e4-93ab-453699781181</id>\n" +
            "                    <description>Alice</description>\n" +
            "                    <username/>\n" +
            "                    <password>" + encrypted_secret + "</password>\n" +
            "                </com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl>\n" +
            "                <com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl>\n" +
            "                    <scope>GLOBAL</scope>\n" +
            "                    <id>f9ebaa5c-a7fc-46e4-93ab-453699781182</id>\n" +
            "                    <description>Bobby</description>\n" +
            "                    <username/>\n" +
            "                    <password>" + encrypted_secret2 + "</password>\n" +
            "                </com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl>\n" +
            "            </java.util.concurrent.CopyOnWriteArrayList>\n" +
            "        </entry>\n" +
            "    </domainCredentialsMap>\n" +
            "</com.cloudbees.plugins.credentials.SystemCredentialsProvider>";
}
 
開發者ID:jenkinsci,項目名稱:support-core-plugin,代碼行數:35,代碼來源:OtherConfigFilesComponentTest.java


注:本文中的hudson.util.Secret.getEncryptedValue方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。