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


Java BaseStandardCredentials类代码示例

本文整理汇总了Java中com.cloudbees.plugins.credentials.impl.BaseStandardCredentials的典型用法代码示例。如果您正苦于以下问题:Java BaseStandardCredentials类的具体用法?Java BaseStandardCredentials怎么用?Java BaseStandardCredentials使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


BaseStandardCredentials类属于com.cloudbees.plugins.credentials.impl包,在下文中一共展示了BaseStandardCredentials类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: secretCredential

import com.cloudbees.plugins.credentials.impl.BaseStandardCredentials; //导入依赖的package包/类
protected BaseStandardCredentials secretCredential() {
    return new StringCredentialsImpl(CredentialsScope.GLOBAL, CREDENTIAL_ID, "sample", Secret.fromString(PASSWORD));
}
 
开发者ID:maxlaverse,项目名称:kubernetes-cli-plugin,代码行数:4,代码来源:KubectlTestBase.java

示例2: secretCredentialWithSpace

import com.cloudbees.plugins.credentials.impl.BaseStandardCredentials; //导入依赖的package包/类
protected BaseStandardCredentials secretCredentialWithSpace() {
    return new StringCredentialsImpl(CredentialsScope.GLOBAL, CREDENTIAL_ID, "sample", Secret.fromString(PASSWORD_WITH_SPACE));
}
 
开发者ID:maxlaverse,项目名称:kubernetes-cli-plugin,代码行数:4,代码来源:KubectlTestBase.java

示例3: certificateCredential

import com.cloudbees.plugins.credentials.impl.BaseStandardCredentials; //导入依赖的package包/类
protected BaseStandardCredentials certificateCredential() {
    String storeFile = getResourceFile("/org/jenkinsci/plugins/kubernetes/credentials/kubernetes.pkcs12");
    CertificateCredentialsImpl.KeyStoreSource keyStoreSource = new CertificateCredentialsImpl.FileOnMasterKeyStoreSource(storeFile);
    return new CertificateCredentialsImpl(CredentialsScope.GLOBAL, CREDENTIAL_ID, "sample", PASSPHRASE, keyStoreSource);
}
 
开发者ID:maxlaverse,项目名称:kubernetes-cli-plugin,代码行数:6,代码来源:KubectlTestBase.java

示例4: usernamePasswordCredential

import com.cloudbees.plugins.credentials.impl.BaseStandardCredentials; //导入依赖的package包/类
protected BaseStandardCredentials usernamePasswordCredential() {
    return new UsernamePasswordCredentialsImpl(CredentialsScope.GLOBAL, CREDENTIAL_ID, "sample", USERNAME, PASSWORD);
}
 
开发者ID:maxlaverse,项目名称:kubernetes-cli-plugin,代码行数:4,代码来源:KubectlTestBase.java

示例5: usernamePasswordCredentialWithSpace

import com.cloudbees.plugins.credentials.impl.BaseStandardCredentials; //导入依赖的package包/类
protected BaseStandardCredentials usernamePasswordCredentialWithSpace() {
    return new UsernamePasswordCredentialsImpl(CredentialsScope.GLOBAL, CREDENTIAL_ID, "sample", USERNAME_WITH_SPACE, PASSWORD_WITH_SPACE);
}
 
开发者ID:maxlaverse,项目名称:kubernetes-cli-plugin,代码行数:4,代码来源:KubectlTestBase.java

示例6: DescriptorImpl

import com.cloudbees.plugins.credentials.impl.BaseStandardCredentials; //导入依赖的package包/类
public DescriptorImpl(Class<? extends BaseStandardCredentials> clazz) {
    super(clazz);
}
 
开发者ID:jenkinsci,项目名称:browserstack-integration-plugin,代码行数:4,代码来源:BrowserStackCredentials.java


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