SAPcpmsUserLockAndWipeConfigurationStep
public class SAPcpmsUserLockAndWipeConfigurationStep : OnboardingStep
This step uses SAPcpmsLockandWipeObserver, which is registered with the SAPURLSession. The observer monitors the HTTP responses from the server. It also integrates with the LockAndWipeManager to register observers and handle events related to user authentication and session management. Specifically, it looks for certain headers related to lock and wipe policies, such as x-message-code - TRAFFIC_REG_LOCKED and x-message-code - TRAFFIC_REG_WIPED.
The onboardOrRestore function is central to this setup. It creates and registers the observer, ensuring that any lock or wipe policy enforcement based on the server’s response headers is handled immediately.
-
Undocumented
Declaration
Swift
public init()
-
Onboarding function with
OnboardingContextsupportDeclaration
Swift
public func onboard(context: OnboardingContext, completionHandler: @escaping (OnboardingResult) -> Void)Parameters
contextOnboardingContextobject which contains every information for the OnboardingStepcompletionHandlermust be called by the implementers when the step finishes
-
Restore function with
OnboardingContextsupportDeclaration
Swift
public func restore(context: OnboardingContext, completionHandler: @escaping (OnboardingResult) -> Void)Parameters
contextOnboardingContextobject which contains every information for the OnboardingStepcompletionHandlermust be called by the implementers when the step finishes
-
Reset function with
OnboardingContextsupportDeclaration
Swift
public func reset(context: OnboardingContext, completionHandler: @escaping () -> Void)Parameters
contextOnboardingContextobject which contains every information for the OnboardingStepcompletionHandlermust be called by the implementers when the step finishes