FileRevocationStore

class FileRevocationStore(directory: Path, fileSystem: FileSystem) : RevocationStore

Keeps revocation data as files under directory.

fileSystem is explicit because FileSystem.SYSTEM is not part of okio's common API; pass it from a platform source set, or a fake in tests.

Constructors

Link copied to clipboard
constructor(directory: Path, fileSystem: FileSystem)
constructor(directory: String, fileSystem: FileSystem)

Functions

Link copied to clipboard
open suspend override fun read(name: String): ByteArray?
Link copied to clipboard
open suspend override fun write(name: String, data: ByteArray)