TrustStoreSession
public protocol TrustStoreSession
TrustStoreSession acts as an interactor/mediator for the TrustStoreClient and TrustStoreStorage
[REQ:gemSpec_Krypt:A_21218,A_21222]
-
Request and validate the VAU certificate
[REQ:gemSpec_eRp_FdV:A_19739]
Declaration
Swift
func loadVauCertificate() -> AnyPublisher<X509, TrustStoreError>
Return Value
A publisher that emits a validated VAU certificate or an error
-
Try to validate a given certificate against the underlying truststore. An OCSP response will also be requested and checked against
[REQ:gemSpec_eRp_FdV:A_19739]
Declaration
Swift
func validate(certificate: X509) -> AnyPublisher<Bool, TrustStoreError>
Parameters
certificate
the certificate to be validated
Return Value
A publisher that emits a Boolean stating whether or not the certificate could be validated.
-
Delete all stored data and reload all data from remote
Declaration
Swift
func reset()