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


Java AWSKMSClientBuilder.defaultClient方法代码示例

本文整理汇总了Java中com.amazonaws.services.kms.AWSKMSClientBuilder.defaultClient方法的典型用法代码示例。如果您正苦于以下问题:Java AWSKMSClientBuilder.defaultClient方法的具体用法?Java AWSKMSClientBuilder.defaultClient怎么用?Java AWSKMSClientBuilder.defaultClient使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.amazonaws.services.kms.AWSKMSClientBuilder的用法示例。


在下文中一共展示了AWSKMSClientBuilder.defaultClient方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: awsKms

import com.amazonaws.services.kms.AWSKMSClientBuilder; //导入方法依赖的package包/类
/**
 * Creates the KMS client {@link Bean}.
 *
 * Uses the default client, but if a region is unspecified, uses {@code us-east-1}.
 *
 * @return The KMS client.
 */
@Bean
public AWSKMS awsKms() {
	AWSKMS client = null;

	try {
		client = AWSKMSClientBuilder.defaultClient();
	} catch (SdkClientException exception) {
		API_LOG.info("Default KMS client failed to build, trying again with region us-east-1", exception);
		client = planB();
	}

	return client;
}
 
开发者ID:CMSgov,项目名称:qpp-conversion-tool,代码行数:21,代码来源:KmsConfig.java

示例2: S3FileLoader

import com.amazonaws.services.kms.AWSKMSClientBuilder; //导入方法依赖的package包/类
public S3FileLoader(@Nonnull String bucketName, @Nonnull String key) {
    // Necessary to use *ClientBuilder for correct defaults (especially region selection).
    s3Client = AmazonS3ClientBuilder.defaultClient();
    kmsClient = AWSKMSClientBuilder.defaultClient();
    this.bucketName = bucketName;
    this.key = key;
}
 
开发者ID:zalando-stups,项目名称:baigan-config,代码行数:8,代码来源:S3FileLoader.java

示例3: AwsPrivateKeyStore

import com.amazonaws.services.kms.AWSKMSClientBuilder; //导入方法依赖的package包/类
public AwsPrivateKeyStore() {
   this(initAmazonS3(), AWSKMSClientBuilder.defaultClient());
   kmsDecrypt = Boolean.parseBoolean(System.getProperty(ATHENZ_PROP_AWS_KMS_DECRYPT, "false"));
}
 
开发者ID:yahoo,项目名称:athenz,代码行数:5,代码来源:AwsPrivateKeyStore.java

示例4: getClient

import com.amazonaws.services.kms.AWSKMSClientBuilder; //导入方法依赖的package包/类
/**
 * Create an AWS KMS client.
 * @return Create new instance of builder with all defaults set with the DefaultAWSCredentialsProviderChain
 */
private AWSKMS getClient() {
    return AWSKMSClientBuilder.defaultClient();
}
 
开发者ID:kunai-consulting,项目名称:KeyStor,代码行数:8,代码来源:KMSEncryptor.java

示例5: getClient

import com.amazonaws.services.kms.AWSKMSClientBuilder; //导入方法依赖的package包/类
/**
 * Create an AWS KMS client.
 * @return
 */
private AWSKMS getClient() {
    return AWSKMSClientBuilder.defaultClient();
}
 
开发者ID:kunai-consulting,项目名称:KeyStor,代码行数:8,代码来源:KMSDecryptor.java


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