trait CryptoPrivateStore extends AutoCloseable
A store for cryptographic private material such as signing/encryption private keys and hmac secrets.
The cache provides a write-through cache such that get
operations can be served without reading from the async store.
Async population of the cache is done at creation time.
- Self Type
- CryptoPrivateStore with NamedLogging
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- CryptoPrivateStore
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def close(): Unit
- Definition Classes
- AutoCloseable
- Annotations
- @throws(classOf[java.lang.Exception])
- abstract def deletePrivateKey(keyId: Fingerprint)(implicit traceContext: TraceContext): EitherT[Future, CryptoPrivateStoreError, Unit]
- Attributes
- protected
- implicit abstract val ec: ExecutionContext
- abstract def readDecryptionKey(encryptionKeyId: Fingerprint)(implicit traceContext: TraceContext): EitherT[Future, CryptoPrivateStoreError, Option[EncryptionPrivateKeyWithName]]
- Attributes
- protected
- abstract def readSigningKey(signingKeyId: Fingerprint)(implicit traceContext: TraceContext): EitherT[Future, CryptoPrivateStoreError, Option[SigningPrivateKeyWithName]]
- Attributes
- protected
- abstract def writeDecryptionKey(key: EncryptionPrivateKey, name: Option[KeyName])(implicit traceContext: TraceContext): EitherT[Future, CryptoPrivateStoreError, Unit]
- Attributes
- protected
- abstract def writeHmacSecret(hmacSecret: HmacSecret)(implicit traceContext: TraceContext): EitherT[Future, CryptoPrivateStoreError, Unit]
- Attributes
- protected
- abstract def writeSigningKey(key: SigningPrivateKey, name: Option[KeyName])(implicit traceContext: TraceContext): EitherT[Future, CryptoPrivateStoreError, Unit]
- Attributes
- protected
Concrete 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()
- val decryptionKeyMap: TrieMap[Fingerprint, EncryptionPrivateKeyWithName]
- Attributes
- protected
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def existsDecryptionKey(decryptionKeyId: Fingerprint)(implicit traceContext: TraceContext): EitherT[Future, CryptoPrivateStoreError, Boolean]
- def existsPrivateKey(keyId: Fingerprint)(implicit traceContext: TraceContext): EitherT[Future, CryptoPrivateStoreError, Boolean]
- def existsSigningKey(signingKeyId: Fingerprint)(implicit traceContext: TraceContext): EitherT[Future, CryptoPrivateStoreError, Boolean]
- def exportPrivateKey(keyId: Fingerprint)(implicit traceContext: TraceContext): EitherT[Future, CryptoPrivateStoreError, Option[PrivateKey]]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val hmacSecretRef: AtomicReference[Option[HmacSecret]]
- Attributes
- protected
- 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()
- def removePrivateKey(keyId: Fingerprint)(implicit traceContext: TraceContext): EitherT[Future, CryptoPrivateStoreError, Unit]
- val signingKeyMap: TrieMap[Fingerprint, SigningPrivateKeyWithName]
- Attributes
- protected
- def storeDecryptionKey(key: EncryptionPrivateKey, name: Option[KeyName])(implicit traceContext: TraceContext): EitherT[Future, CryptoPrivateStoreError, Unit]
- def storeHmacSecret(hmacSecret: HmacSecret)(implicit traceContext: TraceContext): EitherT[Future, CryptoPrivateStoreError, Unit]
- def storePrivateKey(key: PrivateKey, name: Option[KeyName])(implicit traceContext: TraceContext): EitherT[Future, CryptoPrivateStoreError, Unit]
- def storeSigningKey(key: SigningPrivateKey, name: Option[KeyName])(implicit traceContext: TraceContext): EitherT[Future, CryptoPrivateStoreError, Unit]
- 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])