DefaultSudoUserClient

public class DefaultSudoUserClient : SudoUserClient

Default implementation for SudoUserClient.

Lifecycle

  • Intializes a new DefaultSudoUserClient instance. It uses configuration parameters defined in sudoplatformconfig.json file located in the app bundle.

    Declaration

    Swift

    convenience public init(keyNamespace: String, logger: SudoLogging.Logger? = nil) throws

    Parameters

    keyNamespace

    Namespace to use for the keys and passwords. This has to be unique per client per app to avoid different apps (with keychain sharing) or different clients creating conflicting keys.

    logger

    A logger to use for logging messages. If none provided then a default internal logger will be used.

  • Intializes a new DefaultSudoUserClient instance.

    Declaration

    Swift

    public init(
        config: [String: Any],
        keyNamespace: String,
        logger: SudoLogging.Logger? = nil
    ) throws

    Parameters

    config

    Configuration parameters for the client.

    keyNamespace

    Namespace to use for the keys and passwords.

    logger

    A logger to use for logging messages. If none provided then a default internal logger will be used.

Conformance: SudoUserClient