EXTENSION
HaapiAccessorBuilder
@objc public extension HaapiAccessorBuilder
Methods
build(shouldClearExistingDCRClient:completionHandler:)
Creates a HaapiManagerAccessor
. It will check if the device supports key-attestation or not and it will return a configured HaapiAccessor
.
-
Parameters:
- shouldClearExistingDCRClient: Instructs the framework to clear the existing Dcr Client.
False
is the default value. - completionHandler: a handler that takes the (success or error) response to process it.
- shouldClearExistingDCRClient: Instructs the framework to clear the existing Dcr Client.
-
Note: This method should be invoked only once for any configuration. If it has to be invoked multiple times for the same configuration and
HaapiAccessorOption.all
was configured, be sure to invokeHaapiAccessor.close
before invokingbuild
again otherwise anHaapiError.haapiTokenManagerAlreadyExists
is returned. -
Important: Method overload for Objective-C usage.