com.marklogic.mapreduce.SslConfigOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marklogic-mapreduce2 Show documentation
Show all versions of marklogic-mapreduce2 Show documentation
MarkLogic Connector for Hadoop MapReduce
/*
* Copyright 2003-2017 MarkLogic Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License 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.marklogic.mapreduce;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import javax.net.ssl.SSLContext;
/**
* Interface used to get options for SSL connection.
*
*
* You must implement this interface to use a secure connection to
* your input or output MarkLogic Server instance, and then supply
* the class as the value of the configuration property
* {@link MarkLogicConstants#INPUT_SSL_OPTIONS_CLASS input.usessloptionsclass}
* or {@link MarkLogicConstants#OUTPUT_SSL_OPTIONS_CLASS output.usessloptionsclass}.
*
*
* For details, see the Hadoop MapReduce Connector Developer's Guide.
* For an example, see {@link com.marklogic.mapreduce.examples.ContentReader}.
*
*
* @see MarkLogicConstants
* @see com.marklogic.mapreduce.examples.ContentReader
*
* @author jchen
*/
public interface SslConfigOptions {
public SSLContext getSslContext()
throws NoSuchAlgorithmException, KeyManagementException;
public String[] getEnabledProtocols();
public String[] getEnabledCipherSuites();
}