+

Search Tips | Advanced Search


SecurityCheckChallengeHandler Class Reference

Inherits from BaseChallengeHandler : NSObject
Declared in SecurityCheckChallengeHandler.h

We 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.


Tasks

      – initWithSecurityCheck:
      	
      	
      	
      
      	
      		

        – submitChallengeAnswer:
        	
        	
        	
        
        	
        		

          – handleSuccess:
          	
          	
          	
          
          	
          		

            – handleFailure:
            	
            	
            	
            
            	
            		


            Instance Methods


            handleChallenge:

            This method is called when the IBM MobileFirst Platform Server returns a challenge for the realm.

              - (void)handleChallenge:(NSDictionary *)challenge
              
                  
              	
              	
              	
              	
              	
              	
              	
              	
              	
              	
              	
              	
              	
              	
              


              Declared In

              SecurityCheckChallengeHandler.h


              handleFailure:

              This method is called when the IBM MobileFirst Platform Server reports an authentication failure.

                - (void)handleFailure:(NSDictionary *)failure
                
                    
                	
                	
                	
                	
                	
                	
                	
                	
                	
                	
                	
                	
                	
                	
                


                Declared In

                SecurityCheckChallengeHandler.h


                handleSuccess:

                This method is called when the IBM MobileFirst Platform Server reports an authentication success.

                  - (void)handleSuccess:(NSDictionary *)success
                  
                      
                  	
                  	
                  	
                  	
                  	
                  	
                  	
                  	
                  	
                  	
                  	
                  	
                  	
                  	
                  


                  Declared In

                  SecurityCheckChallengeHandler.h


                  initWithSecurityCheck:

                  Initialize a challenge handler for the specific security check name.

                    - (id)initWithSecurityCheck:(NSString *)securityCheck
                    
                        
                    	
                    	
                    


                    Parameters

                      securityCheck

                      The name of the security check that will be handled.


                    Declared In

                    SecurityCheckChallengeHandler.h


                    submitChallengeAnswer:

                    Send the answer back to the request.

                      - (void)submitChallengeAnswer:(NSDictionary *)answer
                      
                          
                      	
                      	
                      


                      Parameters

                        answer

                        A dictionary that will be converted to JSON and sent back to the security check.


                      Declared In

                      SecurityCheckChallengeHandler.h


                      © Copyright IBM Corp. 2017