VAUSession

public class VAUSession

VAU Session that handles initial communication setup (e.g. requesting VAU certificate) and provides HTTP Interceptor for further use

  • Initialize the VAU Session

    Declaration

    Swift

    public convenience init(
        vauServer: URL,
        vauAccessTokenProvider: VAUAccessTokenProvider,
        vauStorage: VAUStorage,
        trustStoreSession: TrustStoreSession
    )

    Parameters

    vauServer

    the VAU server URL

    vauAccessTokenProvider

    provides and keeps track of a token for VAU access

    vauCryptoProvider

    provides necessary function for HTTP request/response encryption/decryption

    vauStorage

    the VAU storage

    trustStoreSession

    session that obtains the VAU encryption certificate

  • Provides the actual HTTP request interceptor that re-routes the original request to the VAU server.

    Declaration

    Swift

    public func provideInterceptor() -> Interceptor