IPAuthenticationViewController
open class IPAuthenticationViewController : UIViewController, IPAcceptanceViewControllerDelegate, IPOSViewControllerDelegate, IPFacialViewControllerDelegate, IPProximityViewControllerDelegate
View controller that controls the authentication process. The IAMPASS framework provides a default UI for all stages of the. Applications can provide their own UI but must use this class to control the authentication process. Customization is achieved by providing Bundle and Nib informtion for each of the screens. The custom views must be instances or specializations of IAMPASS view controller classes
-
The authentication request to process
Declaration
Swift
public var authenticationRequest: IPAuthenticationRequest?
-
The device the authentication request is being processed by
Declaration
Swift
public var mobileDevice: IPUser?
-
The id of a the bundle that contains a custom
IPAcceptanceViewController
. Client applications can set this value to display a custom UI for the acceptance stage.Declaration
Swift
@IBInspectable open var acceptanceBundleIdentifier: String
-
The name of the nib that contains a custom
IPAcceptanceViewController
. Client applications can set this value to display a custom UI for the acceptance stage. The specified nib should contain a ViewController with the Custom Class property set to IPAcceptanceViewController in the Interface Builder Identity Inspector.Declaration
Swift
@IBInspectable open var acceptanceNibName: String
-
The id of a the bundle that contains a custom IPOSViewController.
Declaration
Swift
@IBInspectable open var osBundleIdentifier: String
-
The name of the nib that contains a custom
IPOSViewController
. Client applications can set this value to display a custom UI for the os authentication stage. The specified nib should contain a ViewController with the Custom Class property set to IPOSViewController in Ithe Interface Builder Identity Inspector.Declaration
Swift
@IBInspectable open var osNibName: String
-
The id of a the bundle that contains a custom
IPFacialViewController
.Declaration
Swift
@IBInspectable open var facialBundleIdentifier: String
-
The name of the nib that contains a custom
IPFacialViewController
. Client applications can set this value to display a custom UI for the facial stage. The specified nib should contain a ViewController with the Custom Class property set to IPFacialViewController in the Interface Builder Identity Inspector.Declaration
Swift
@IBInspectable open var facialNibName: String
-
The id of a the bundle that contains a custom
ACProximityViewController
.Declaration
Swift
@IBInspectable open var proximityBundleIdentifier: String
-
The name of the nib that contains a custom
IPProximityViewController
. Client applications can set this value to display a custom UI for the proximity stage. The specified nib should contain a ViewController with the Custom Class property set to IPProximityViewController inthe Interface Builder Identity Inspectorr.Declaration
Swift
@IBInspectable open var proximityNibName: String
-
The id of a the bundle that contains a custom
IPStatusViewController
.Declaration
Swift
@IBInspectable open var statusBundleIdentifier: String
-
The name of the nib that contains a custom
IPStatusViewController
. Client applications can set this value to display a custom UI for the status messages. The specified nib should contain a ViewController with the Custom Class property set to IPStatus in Interface Builder.Declaration
Swift
@IBInspectable open var statusNibName: String
-
The id of a the bundle that contains a custom
IPBusyViewController
. The specified nib should contain a ViewController with the Custom Class property set to IPBusyViewController in the Interface Builder Identity Inspector.Declaration
Swift
@IBInspectable open var authenticatingBundleIdentifier: String
-
The name of the nib that contains a custom
IPBusyViewController
. Client applications can set this value to display a custom UI when the app is communicating with IAMPASS The specified nib should contain a ViewController with the Custom Class property set to IPBusyViewController in the Interface Builder Identity Inspector.Declaration
Swift
@IBInspectable open var authenticatingNibName: String
-
Undocumented
Declaration
Swift
public var success: ((_ sender: IPAuthenticationViewController) -> Void)?
-
Undocumented
Declaration
Swift
public var failure: ((_ sender: IPAuthenticationViewController, _ error: Error?) -> Void)?
-
Undocumented
Declaration
Swift
public static func create( request: IPAuthenticationRequest, device: IPUser, success:@escaping (_ sender: IPAuthenticationViewController)->Void, failure:@escaping(_ sender: IPAuthenticationViewController, _ error: Error?) -> Void) -> IPAuthenticationViewController?
-
In addition to using delegation, specializations of this class can override didAuthenticate to respond to the user being authenticated.
Declaration
Swift
open func didAuthenticate()
-
In addition to using delegation, specializations of this class can override didAuthenticate to respond to the user not being authenticated.
Declaration
Swift
open func didFailToAuthenticate()