本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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�x;</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>";
}
示例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>";
}