Class ElasticsearchAuditEventHandlerConfiguration.ConnectionConfiguration
- java.lang.Object
-
- org.forgerock.audit.handlers.elasticsearch.ElasticsearchAuditEventHandlerConfiguration.ConnectionConfiguration
-
- Enclosing class:
- ElasticsearchAuditEventHandlerConfiguration
public static class ElasticsearchAuditEventHandlerConfiguration.ConnectionConfiguration extends Object
Configuration of connection to Elasticsearch.
-
-
Constructor Summary
Constructors Constructor Description ConnectionConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHost()Gets thehostfor the connection (defaultlocalhost).StringgetPassword()Gets Elasticsearch password for HTTP basic authentication.intgetPort()Gets theportfor the connection (default9200).StringgetUsername()Gets Elasticsearch username for HTTP basic authentication.booleanisUseSSL()Indicates if the connection uses SSL.voidsetHost(String host)Sets thehostfor the connection.voidsetPassword(String password)Sets Elasticsearch password for HTTP basic authentication.voidsetPort(int port)Sets theportfor the connection.voidsetUsername(String username)Sets Elasticsearch username for HTTP basic authentication.voidsetUseSSL(boolean useSSL)Sets the use of a SSL connection.
-
-
-
Method Detail
-
isUseSSL
public boolean isUseSSL()
Indicates if the connection uses SSL.- Returns:
truewhen the connection uses SSL.
-
setUseSSL
public void setUseSSL(boolean useSSL)
Sets the use of a SSL connection.- Parameters:
useSSL-truewhen the connection uses SSL.
-
getHost
public String getHost()
Gets thehostfor the connection (defaultlocalhost).- Returns:
- The
hostfor the connection.
-
setHost
public void setHost(String host)
Sets thehostfor the connection.- Parameters:
host- Thehostfor the connection.
-
getPort
public int getPort()
Gets theportfor the connection (default9200).- Returns:
- The
portfor the connection.
-
setPort
public void setPort(int port)
Sets theportfor the connection.- Parameters:
port- Theportfor the connection.
-
getPassword
public String getPassword()
Gets Elasticsearch password for HTTP basic authentication.- Returns:
- The password.
-
setPassword
public void setPassword(String password)
Sets Elasticsearch password for HTTP basic authentication.- Parameters:
password- The password.
-
getUsername
public String getUsername()
Gets Elasticsearch username for HTTP basic authentication.- Returns:
- The username.
-
setUsername
public void setUsername(String username)
Sets Elasticsearch username for HTTP basic authentication.- Parameters:
username- The username.
-
-