TrustStoreClient
public protocol TrustStoreClient
Trusted execution environment protocol that must be implemented according to ‘gemSpec_Krypt’.
-
Load the CertList for creating a trust store
Declaration
Swift
func loadCertListFromServer() -> AnyPublisher<CertList, TrustStoreError>
Return Value
A stream that emits either a CertList or a TrustStoreError.
-
Load the OCSP Response from remote
Declaration
Swift
func loadOCSPListFromServer() -> AnyPublisher<OCSPList, TrustStoreError>
Return Value
A stream that emits either a OCSPList or a TrustStoreError.
-
loadPKICertificatesFromServer(rootSubjectCn:
Asynchronous) Load the PKI certificates from remote https://github.com/gematik/api-erp/blob/master/docs/certificate_check.adoc
Note
Thrown errors are of typeTrustStoreError
Declaration
Swift
func loadPKICertificatesFromServer(rootSubjectCn: String) async throws -> PKICertificates
Parameters
rootSubjectCn
Common name (CN) of the currently installed root certificate
Return Value
PKI certificates in form of
PKICertificates
-
loadVauCertificateFromServer()
AsynchronousLoad the VAU encryption certificate from remote https://github.com/gematik/api-erp/blob/master/docs/authentisieren.adoc
Note
Thrown errors are of typeTrustStoreError
Declaration
Swift
func loadVauCertificateFromServer() async throws -> Data
Return Value
Data of the VAU certificate
-
loadOcspResponseFromServer(issuerCn:
AsynchronousserialNr: ) Load a OCSP Response from remote https://github.com/gematik/api-erp/blob/master/docs/certificate_check.adoc
Note
Thrown errors are of typeTrustStoreError
Declaration
Swift
func loadOcspResponseFromServer(issuerCn: String, serialNr: String) async throws -> Data
Parameters
issuerCn
Common name (CN) of the issuer of the certificate the OCSP response is requested for
serialNr
Serial number of the certificate the OCSP response is requested for in hexadecimal format
Return Value
Data of the OCSP Response