EAEExxtractorAuthenticationRequesting

Objective-C

@protocol EAEExxtractorAuthenticationRequesting <NSObject>

@property(nonatomic, strong) NSString *authenticationToken;

/*!
 Method that performs the request which logs in an authenticated user
 
 @param success The block which will be executed upon a successful request
 @param failure The block which will be executed upon a failed request
 */
- (void)requestLoginWithUsername: (NSString *) username
                        password: (NSString *) password
                         success: (BAWebServiceSuccessResponse)success
                         failure: (BAWebServiceFailureResponse)failure;

/*!
 Method that performs the request which logs out an authenticated user
 
 @param success The block which will be executed upon a successful request
 @param failure The block which will be executed upon a failed request
 */
- (void)requestLogoutWithSuccess:(BAWebServiceSuccessResponse)success
                         failure:(BAWebServiceFailureResponse)failure;

/*!
 Method that validates admin credentials
 
 @param password entered password for admin
 @param success The block which will be executed upon a successful request
 @param failure The block which will be executed upon a failed request
 */
- (void)adminLogin:(NSString*) password
                         success:(BAWebServiceSuccessResponse)success
                         failure:(BAWebServiceFailureResponse)failure
                isHTTPSAvailable:(BOOL) isHTTPSAvailable;


/*!
 Method that validates operator credentials
 
 @param password entered password for operator
 @param success The block which will be executed upon a successful request
 @param failure The block which will be executed upon a failed request
 */
- (void)operatorLogin:(NSString*) authorizationHeader
            serverUrl: (NSString *) serverUrl
              success:(BAWebServiceSuccessResponse)success
              failure:(BAWebServiceFailureResponse)failure
     isHTTPSAvailable:(BOOL) isHTTPSAvailable;
/*!
 Method logout
 
 @param token generated after login
 @param success The block which will be executed upon a successful request
 @param failure The block which will be executed upon a failed request
 */
- (void)adminLogout:(NSString*) token
            success:(BAWebServiceSuccessResponse)success
            failure:(BAWebServiceFailureResponse)failure
   isHTTPSAvailable:(BOOL) isHTTPSAvailable;

@end

Swift

protocol EAEExxtractorAuthenticationRequesting : NSObjectProtocol

Undocumented