ChallengeProtocol
public protocol ChallengeProtocol
The protocol to which multi-factor authentication challenge mechanisms are derived from.
-
Initializes a new
ChallengeProtocol
.Declaration
Swift
init()
-
Initializes a new
ChallengeProtocol
with a message.Declaration
Swift
init(messagePrompt: String)
-
The description of the mechanism.
Declaration
Swift
var description: String
-
The identifier of the mechanism. For example: urn:ibm:security:authentication:asf:mechanism:face
Declaration
Swift
var identifier: String
-
The message to display in the alert when prompted.
Declaration
Swift
var messagePrompt: String
-
The postback URI of the mechanism.
Remark
This value is set in theparse
method.Declaration
Swift
var postbackUri: String
-
The state represents the unique identifier of the mechanism request.
Remark
This value is set in theparse
method.Declaration
Swift
var state: String
-
Initializes a new challenge mechanism.
Throws
IBMMobileKitError.invalidDataFromServerDeclaration
Swift
func parse(_ data: [String: Any]) throws -> Self
-
This method launches a user interface for challenge data input.
Declaration
Swift
func launchUI(_ completion: @escaping (_ data: [String: Any], _ error: Error?) -> Void)
-
This method launches a user interface for challenge data input.
Declaration
Swift
func launchUI(_ viewController: UIViewController, completion: @escaping (_ data: [String: Any], _ error: Error?) -> Void)