本文整理汇总了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));
}
示例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));
}
示例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);
}
示例4: usernamePasswordCredential
import com.cloudbees.plugins.credentials.impl.BaseStandardCredentials; //导入依赖的package包/类
protected BaseStandardCredentials usernamePasswordCredential() {
return new UsernamePasswordCredentialsImpl(CredentialsScope.GLOBAL, CREDENTIAL_ID, "sample", USERNAME, PASSWORD);
}
示例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);
}
示例6: DescriptorImpl
import com.cloudbees.plugins.credentials.impl.BaseStandardCredentials; //导入依赖的package包/类
public DescriptorImpl(Class<? extends BaseStandardCredentials> clazz) {
super(clazz);
}