Packages

c

com.digitalasset.canton.crypto.store.memory

InMemoryCryptoPrivateStore

class InMemoryCryptoPrivateStore extends CryptoPrivateStoreExtended with NamedLogging

The in-memory store does not provide any persistence and keys during runtime are stored in the generic caching layer.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InMemoryCryptoPrivateStore
  2. NamedLogging
  3. CryptoPrivateStoreExtended
  4. CryptoPrivateStore
  5. AutoCloseable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new InMemoryCryptoPrivateStore(releaseProtocolVersion: ReleaseProtocolVersion, loggerFactory: NamedLoggerFactory)(implicit ec: ExecutionContext)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. def close(): Unit
    Definition Classes
    InMemoryCryptoPrivateStore → AutoCloseable
  7. implicit val ec: ExecutionContext
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  11. def existsDecryptionKey(decryptionKeyId: Fingerprint)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, CryptoPrivateStoreError, Boolean]
  12. def existsPrivateKey(keyId: Fingerprint, keyPurpose: KeyPurpose)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, CryptoPrivateStoreError, Boolean]
  13. def existsSigningKey(signingKeyId: Fingerprint)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, CryptoPrivateStoreError, Boolean]
  14. def exportPrivateKey(keyId: Fingerprint)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, CryptoPrivateStoreError, Option[PrivateKey]]
    Definition Classes
    CryptoPrivateStoreExtended
  15. def filterSigningKeys(signingKeyIds: NonEmpty[Seq[Fingerprint]], filterUsage: NonEmpty[Set[SigningKeyUsage]])(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, CryptoPrivateStoreError, Seq[Fingerprint]]

    Filter signing keys by checking if their usage intersects with the provided 'filterUsage' set.

    Filter signing keys by checking if their usage intersects with the provided 'filterUsage' set. This ensures that only keys with one or more matching usages are retained.

    signingKeyIds

    the fingerprint of the keys to filter

    filterUsage

    the key usages to filter for

    Definition Classes
    CryptoPrivateStoreExtendedCryptoPrivateStore
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  20. val loggerFactory: NamedLoggerFactory
    Attributes
    protected
    Definition Classes
    InMemoryCryptoPrivateStoreNamedLogging
  21. def migratePrivateKeys(isActive: Boolean, timeouts: ProcessingTimeout)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, CryptoPrivateStoreError, Unit]
    Definition Classes
    CryptoPrivateStoreExtended
  22. implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  27. def queryKmsKeyId(keyId: Fingerprint)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, CryptoPrivateStoreError, Option[String300]]

    Returns the KMS key id that corresponds to a given private key fingerprint or None if the private key is not stored in a KMS.

    Returns the KMS key id that corresponds to a given private key fingerprint or None if the private key is not stored in a KMS.

    keyId

    the private key fingerprint

    returns

    the KMS key id that matches the fingerprint, or None if key is not stored in a KMS

    Definition Classes
    CryptoPrivateStoreExtendedCryptoPrivateStore
  28. val releaseProtocolVersion: ReleaseProtocolVersion
    Attributes
    protected
    Definition Classes
    InMemoryCryptoPrivateStoreCryptoPrivateStoreExtended
  29. def removePrivateKey(keyId: Fingerprint)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, CryptoPrivateStoreError, Unit]
  30. val signingKeyMap: TrieMap[Fingerprint, SigningPrivateKeyWithName]
    Attributes
    protected
    Definition Classes
    CryptoPrivateStoreExtended
  31. def storePrivateKey(key: PrivateKey, name: Option[KeyName])(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, CryptoPrivateStoreError, Unit]
    Definition Classes
    CryptoPrivateStoreExtended
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toExtended: Option[CryptoPrivateStoreExtended]
    Definition Classes
    CryptoPrivateStore
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from NamedLogging

Inherited from CryptoPrivateStore

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped