MockCertificateStore

class MockCertificateStore(savingException: Throwable? = null, retrievalException: Throwable? = null, deleteException: Throwable? = null) : CertificateStore

Constructors

Link copied to clipboard
constructor(savingException: Throwable? = null, retrievalException: Throwable? = null, deleteException: Throwable? = null)

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
open override fun delete(subjectId: String, issuerId: String)
Link copied to clipboard
open suspend override fun deleteExpired()
Link copied to clipboard
suspend fun retrieveAll(subjectId: String, issuerId: String): List<CertificationPath>
Link copied to clipboard
suspend fun retrieveLatest(subjectId: String, issuerId: String): CertificationPath?
Link copied to clipboard
suspend fun save(certificationPath: CertificationPath, issuerId: String)
Link copied to clipboard
fun setCertificate(subjectId: String, leafCertificateExpiryDate: ZonedDateTime, certificationPathData: ByteArray, issuerId: String)

Set a certificate, bypassing all the usual validation.