SecurityCheckChallengeHandlerSwift
open class SecurityCheckChallengeHandlerSwift : SecurityCheckChallengeHandler
You use this base class to create an IBM MobileFirst Platform challenge handler. You must extend this class to implement your own version of an IBM MobileFirst Platform challenge handler, for example RemoteDisableChallengeHandler.
-
Initializes a challenge handler with an arbitrary name.
Declaration
Swift
override public init(securityCheck: String)
Parameters
securityCheck
The name of the security check that will be handled.
-
Send the answer back to the request.
Declaration
Swift
public func submitChallengeAnswer(answer: [AnyHashable : Any]!)
Parameters
answer
A dictionary that will be converted to JSON and sent back to the security check.
-
This method is called when the IBM MobileFirst Platform Server returns a challenge for the realm.
Declaration
Swift
open func handleChallenge(challengeResponse: [AnyHashable : Any]!)
-
This method is called when the IBM MobileFirst Platform Server reports an authentication success.
Declaration
Swift
open func handleSuccess(successResponse: [AnyHashable : Any]!)
Parameters
successResponse
The recieved success response.
-
This method is called when the IBM MobileFirst Platform Server reports an authentication failure.
Declaration
Swift
open func handleFailure(failureResponse: [AnyHashable : Any]!)
Parameters
failureResponse
The recieved failure response.