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 typeTrustStoreErrorDeclaration
Swift
func loadPKICertificatesFromServer(rootSubjectCn: String) async throws -> PKICertificatesParameters
rootSubjectCnCommon 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 typeTrustStoreErrorDeclaration
Swift
func loadVauCertificateFromServer() async throws -> DataReturn 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 typeTrustStoreErrorDeclaration
Swift
func loadOcspResponseFromServer(issuerCn: String, serialNr: String) async throws -> DataParameters
issuerCnCommon name (CN) of the issuer of the certificate the OCSP response is requested for
serialNrSerial number of the certificate the OCSP response is requested for in hexadecimal format
Return Value
Data of the OCSP Response
View on GitHub
TrustStoreClient Protocol Reference