com.amazonaws.services.elasticmapreduce.spi.security.TLSArtifacts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-emr Show documentation
Show all versions of aws-java-sdk-emr Show documentation
The AWS Java SDK for Amazon EMR module holds the client classes that are used for communicating with Amazon Elastic MapReduce Service
/*
* Copyright (c) 2016. Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.elasticmapreduce.spi.security;
import java.security.PrivateKey;
import java.security.cert.Certificate;
import java.util.List;
/**
* TLS artifacts that can be used to do in-transit encryption.
* Private key and certificate chain are mandatory while certificates
* for trusted CA are optional.
*/
public class TLSArtifacts {
private final PrivateKey privateKey;
private final List trustedCertificates;
private final List certificateChain;
public TLSArtifacts(PrivateKey privateKey, List certificateChain) {
this(privateKey, certificateChain, null);
}
public TLSArtifacts(PrivateKey privateKey,
List certificateChain,
List trustedCertificates) {
this.privateKey = privateKey;
this.certificateChain = certificateChain;
this.trustedCertificates = trustedCertificates;
}
/**
* Gets the private key in the TLSArtifacts object.
* @return the private key.
*/
public PrivateKey getPrivateKey() {
return privateKey;
}
/**
* Gets the trusted CA certificates in the TLSArtifacts object.
* @return trusted CA certificates.
*/
public List getTrustedCertificates() {
return trustedCertificates;
}
/**
* Gets the certificate chain for private key in the TLSArtifacts object.
* @return certificate chain.
*/
public List getCertificateChain() {
return certificateChain;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy