Package com.floragunn.searchguard.ssl
Class ExternalSearchGuardKeyStore
- java.lang.Object
-
- com.floragunn.searchguard.ssl.ExternalSearchGuardKeyStore
-
- All Implemented Interfaces:
SearchGuardKeyStore
public class ExternalSearchGuardKeyStore extends Object implements SearchGuardKeyStore
-
-
Constructor Summary
Constructors Constructor Description ExternalSearchGuardKeyStore(org.elasticsearch.common.settings.Settings settings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SSLEnginecreateClientTransportSSLEngine(String peerHost, int peerPort)SSLEnginecreateHTTPSSLEngine()SSLEnginecreateServerTransportSSLEngine()X509Certificate[]getHttpCerts()StringgetHTTPProviderName()X509Certificate[]getTransportCerts()StringgetTransportClientProviderName()StringgetTransportServerProviderName()static booleanhasExternalSslContext(String id)static booleanhasExternalSslContext(org.elasticsearch.common.settings.Settings settings)voidinitHttpSSLConfig()voidinitTransportSSLConfig()static voidregisterExternalSslContext(String id, SSLContext externalSsslContext)static voidremoveAllExternalSslContexts()static voidremoveExternalSslContext(String id)
-
-
-
Method Detail
-
createHTTPSSLEngine
public SSLEngine createHTTPSSLEngine() throws SSLException
- Specified by:
createHTTPSSLEnginein interfaceSearchGuardKeyStore- Throws:
SSLException
-
createServerTransportSSLEngine
public SSLEngine createServerTransportSSLEngine() throws SSLException
- Specified by:
createServerTransportSSLEnginein interfaceSearchGuardKeyStore- Throws:
SSLException
-
createClientTransportSSLEngine
public SSLEngine createClientTransportSSLEngine(String peerHost, int peerPort) throws SSLException
- Specified by:
createClientTransportSSLEnginein interfaceSearchGuardKeyStore- Throws:
SSLException
-
getHTTPProviderName
public String getHTTPProviderName()
- Specified by:
getHTTPProviderNamein interfaceSearchGuardKeyStore
-
getTransportServerProviderName
public String getTransportServerProviderName()
- Specified by:
getTransportServerProviderNamein interfaceSearchGuardKeyStore
-
getTransportClientProviderName
public String getTransportClientProviderName()
- Specified by:
getTransportClientProviderNamein interfaceSearchGuardKeyStore
-
initHttpSSLConfig
public void initHttpSSLConfig()
- Specified by:
initHttpSSLConfigin interfaceSearchGuardKeyStore
-
initTransportSSLConfig
public void initTransportSSLConfig()
- Specified by:
initTransportSSLConfigin interfaceSearchGuardKeyStore
-
getHttpCerts
public X509Certificate[] getHttpCerts()
- Specified by:
getHttpCertsin interfaceSearchGuardKeyStore
-
getTransportCerts
public X509Certificate[] getTransportCerts()
- Specified by:
getTransportCertsin interfaceSearchGuardKeyStore
-
registerExternalSslContext
public static void registerExternalSslContext(String id, SSLContext externalSsslContext)
-
hasExternalSslContext
public static boolean hasExternalSslContext(org.elasticsearch.common.settings.Settings settings)
-
hasExternalSslContext
public static boolean hasExternalSslContext(String id)
-
removeExternalSslContext
public static void removeExternalSslContext(String id)
-
removeAllExternalSslContexts
public static void removeAllExternalSslContexts()
-
-