object KmsConfig
- Alphabetic
- By Inheritance
- KmsConfig
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class Aws(region: String, multiRegionKey: Boolean = false, auditLogging: Boolean = false, retries: RetryConfig = RetryConfig(), disableSslVerification: Boolean = false, endpointOverride: Option[String] = None) extends KmsConfig with Product with Serializable
Stores the configuration for AWS KMS.
Stores the configuration for AWS KMS. This configuration is mandatory if we want to protect Canton's private keys using an AWS KMS.
- region
defines the AWS region to be use (e.g. us-east-1)
- multiRegionKey
flag to enable multiRegion keys (Canton will generate single region keys by default)
- auditLogging
when enabled, all calls to KMS will be logged. Defaults to false.
- retries
retry configuration
- disableSslVerification
When set to true, SSL verification is disabled. Mostly for testing purposes. Can only be used if non-standard-config is enabled.
- endpointOverride
the [optional] endpoint for a proxy to be used by the KMS client.
- final case class CreateKeyRetriesConfig(interval: NonNegativeDuration = waitCreateIntervalDefault, timeout: NonNegativeDuration = waitCreateTimeoutDefault) extends Product with Serializable
Retry configuration when waiting for a newly created key to exist
Retry configuration when waiting for a newly created key to exist
- interval
interval between retries
- timeout
maximum amount of time to wait for the key to be created
- final case class ExponentialBackoffConfig(initialDelay: NonNegativeFiniteDuration = initialDelayDefault, maxDelay: NonNegativeDuration = maxDelayDefault, maxRetries: Int = retry.Forever) extends Product with Serializable
Exponential backoff configuration for retries of network failures
Exponential backoff configuration for retries of network failures
- initialDelay
initial delay before the first retry
- maxDelay
max delay between retries
- maxRetries
max number of retries
- final case class Gcp(locationId: String, projectId: String, keyRingId: String, retries: RetryConfig = RetryConfig()) extends KmsConfig with Product with Serializable
Stores the configuration for GCP KMS.
Stores the configuration for GCP KMS. This configuration is mandatory if we want to protect Canton's private keys using a GCP KMS.
- locationId
defines the GCP region to use (e.g. us-east1)
- projectId
defines a GCP project to use (e.g. gcp-kms-testing)
- keyRingId
defines a key-ring to where keys will be added. This can be created as a multi-region key-ring, which enables multi-region keys
- retries
retry configuration
- final case class RetryConfig(failures: ExponentialBackoffConfig = ExponentialBackoffConfig(), createKey: CreateKeyRetriesConfig = CreateKeyRetriesConfig()) extends Product with Serializable
Retry configuration for KMS operations
Retry configuration for KMS operations
- failures
exponential backoff retry configuration for retryable failures
- createKey
fixed rate retry configuration when waiting for a newly created key to exist in the KMS
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object Aws extends Serializable
- object Gcp extends Serializable