pt.tecnico.dsi.vault.secretEngines.databases.models.Elasticsearch
Connection
Companion object Connection
case class Connection(url: String, username: String, password: String, caCert: String, caPath: String, clientCert: String, clientKey: String, tlsServerName: String, insecure: Boolean = false, verifyConnection: Boolean = true, allowedRoles: Array[String] = Array.empty) extends BaseConnection with Product with Serializable
- url
The URL for Elasticsearch's API (eg: "http://localhost:9200").
- username
The username to be used in the connection URL.
- password
The password to be used in the connection URL.
- caCert
The path to a PEM-encoded CA cert file to use to verify the Elasticsearch server's identity.
- caPath
The path to a directory of PEM-encoded CA cert files to use to verify the Elasticsearch server's identity.
- clientCert
The path to the certificate for the Elasticsearch client to present for communication.
- clientKey
The path to the key for the Elasticsearch client to use for communication.
- tlsServerName
This, if set, is used to set the SNI host when connecting via TLS.
- insecure
If set to true SSL verification will be disabled.
- verifyConnection
Specifies if the connection is verified during initial configuration. Defaults to true.
- allowedRoles
List of the roles allowed to use this connection. Defaults to empty (no roles), if contains a "*" any role can use this connection.
- Source
- Connection.scala
- Alphabetic
- By Inheritance
- Connection
- Serializable
- Product
- Equals
- BaseConnection
- AnyRef
- Any
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Connection(url: String, username: String, password: String, caCert: String, caPath: String, clientCert: String, clientKey: String, tlsServerName: String, insecure: Boolean = false, verifyConnection: Boolean = true, allowedRoles: Array[String] = Array.empty)
- url
The URL for Elasticsearch's API (eg: "http://localhost:9200").
- username
The username to be used in the connection URL.
- password
The password to be used in the connection URL.
- caCert
The path to a PEM-encoded CA cert file to use to verify the Elasticsearch server's identity.
- caPath
The path to a directory of PEM-encoded CA cert files to use to verify the Elasticsearch server's identity.
- clientCert
The path to the certificate for the Elasticsearch client to present for communication.
- clientKey
The path to the key for the Elasticsearch client to use for communication.
- tlsServerName
This, if set, is used to set the SNI host when connecting via TLS.
- insecure
If set to true SSL verification will be disabled.
- verifyConnection
Specifies if the connection is verified during initial configuration. Defaults to true.
- allowedRoles
List of the roles allowed to use this connection. Defaults to empty (no roles), if contains a "*" any role can use this connection.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ->[B](y: B): (Connection, B)
- Implicit
- This member is added by an implicit conversion from Connection toArrowAssoc[Connection] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val allowedRoles: Array[String]
List of the roles allowed to use this connection.
List of the roles allowed to use this connection. Defaults to empty (no roles), if contains a "*" any role can use this connection.
- Definition Classes
- Connection → BaseConnection
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val caCert: String
- val caPath: String
- val clientCert: String
- val clientKey: String
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def ensuring(cond: (Connection) => Boolean, msg: => Any): Connection
- Implicit
- This member is added by an implicit conversion from Connection toEnsuring[Connection] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (Connection) => Boolean): Connection
- Implicit
- This member is added by an implicit conversion from Connection toEnsuring[Connection] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): Connection
- Implicit
- This member is added by an implicit conversion from Connection toEnsuring[Connection] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): Connection
- Implicit
- This member is added by an implicit conversion from Connection toEnsuring[Connection] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Connection toStringFormat[Connection] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val insecure: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val password: String
- def pluginName: String
The name of the plugin to use for this connection.
The name of the plugin to use for this connection.
- Definition Classes
- Connection → BaseConnection
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final val rootRotationStatements: Array[String]
The elasticsearch plugin does not support root rotation statements
The elasticsearch plugin does not support root rotation statements
- Definition Classes
- Connection → BaseConnection
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val tlsServerName: String
- val url: String
- val username: String
- val verifyConnection: Boolean
If the connection is verified during initial configuration.
If the connection is verified during initial configuration.
- Definition Classes
- Connection → BaseConnection
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def →[B](y: B): (Connection, B)
- Implicit
- This member is added by an implicit conversion from Connection toArrowAssoc[Connection] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.