DefaultTrustStoreSession
public class DefaultTrustStoreSession
extension DefaultTrustStoreSession: TrustStoreSession
TrustStoreSession acts as an interactor/mediator for the TrustStoreClient and TrustStoreStorage
-
Initialize a Truststore Session
Declaration
Swift
public convenience init( serverURL: URL, trustAnchor: TrustAnchor, trustStoreStorage: TrustStoreStorage, httpClient: HTTPClient )Parameters
serverURLthe server URL
trustAnchorTrust Anchor (root certificate) for further certificate validation
trustStoreStoragethe backing session storage
httpClientthe HTTP client
-
Declaration
Swift
public func reset() -
Declaration
Swift
public func loadVauCertificate() -> AnyPublisher<X509, TrustStoreError> -
Declaration
Swift
public func validate(certificate: X509) -> AnyPublisher<Bool, TrustStoreError> -
vauCertificate()AsynchronousDeclaration
Swift
public func vauCertificate() async throws -> X509
View on GitHub
DefaultTrustStoreSession Class Reference