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
certificatethe certificate to be validated
Return Value
A publisher that emits a Boolean stating whether or not the certificate could be validated.
-
vauCertificate()AsynchronousRequest and validate the VAU certificate
[REQ:gemSpec_eRp_FdV:A_19739]
Note
Thrown errors are of typeTrustStoreErrorDeclaration
Swift
func vauCertificate() async throws -> X509Return Value
A validated VAU certificate
-
Delete all stored data
Declaration
Swift
func reset()
View on GitHub
TrustStoreSession Protocol Reference