Mobile API Reference  MicroStrategy 2019
SecurityHandler.h
Go to the documentation of this file.
1 //
2 // SecurityManager.h
3 // MicroStrategyMobile
4 //
5 // Created by Amirali Charania on 11/24/11.
6 // Copyright 2011 MicroStrategy Inc. All rights reserved.
7 //
8 
9 #import <UIKit/UIKit.h>
11 #import "Enums.h"
12 #import <CoreData/CoreData.h>
13 #import "FileManager.h"
15 #import <MessageUI/MFMailComposeViewController.h>
16 
17 @class SecurityPolicy;
18 
19 @protocol SecurityHandler
20 
26 - (void)initialize:(NSArray* _Nullable)parameters;
27 
32 - (UIWindow* _Nullable )window;
33 
37 - (void)authorize;
38 
43 - (void)setDelegate:(id<SecurityHandlerDelegate> _Nullable)delegate;
44 
48 - (id<FileManager> _Nullable)fileManager;
49 
55 
61 
66 - (BOOL) authorizedWithURL:(NSString * _Nullable) urlString;
67 
74 - (NSPersistentStoreCoordinator* _Nullable)newPersistentStoreCoordinatorWithManagedObjectModel:(NSManagedObjectModel* _Nullable)objectModel;
75 
87 - (NSPersistentStore* _Nullable)addPersistentStoreToCoordinator:(NSPersistentStoreCoordinator* _Nullable)persistentCoordinator
88  WithType:(NSString* _Nullable)storeType configuration:(NSString* _Nullable) configuration
89  URL:(NSURL* _Nullable)storeURL options:(NSDictionary* _Nullable)options
90  error:(NSError* _Nullable * _Nullable)error;
91 
98 - (BOOL)featureAvailable:(MSTRFeature)feature;
99 
104 
109 + (id<SecurityHandler> _Nullable) securityHandler;
110 
116 
117 - (BOOL)canHandleURL:(NSURL* _Nullable)url;
119 
120 - (void)updateSecurityPolicy:(SecurityPolicy* _Nullable)securityPolicy;
121 
122 - (id<SecurityPolicyManager> _Nullable)securityPolicyManager;
123 
124 - (void) openWithExternalApp:(NSString* _Nullable)url;
125 
131 - (void)setAuthorizationInProgress:(BOOL)authorizationInProgress;
135 
136 - (BOOL)isSecurityFrameworkURL:(NSURL* _Nullable)url;
137 - (BOOL)handleSecurityFrameworkURL:(NSURL* _Nullable)url fromApplication:sourceApplication;
138 
139 
140 /*
141  send the file
142  fileData shouldn't be empty
143  fileName can be empty
144  */
145 - (void) sendFileWithData:(NSData* _Nonnull)fileData name:(NSString* _Nullable)fileName;
146 
150 - (void) mailto:(NSURL* _Nullable)url;
151 
165 - (void)mailWithAttachmentByParameters:(NSDictionary* _Nonnull)parameters controller:(UIViewController* _Nonnull)controller delegate:(id<MFMailComposeViewControllerDelegate> _Nullable) delegate shouldAutorotate:(BOOL) shouldAutorotate;
166 
172 - (NSString * _Nullable)titleForEmail:(NSString * _Nullable) originalString;
173 
174 -(void) cancelMailCompose;
175 
177 - (void)setLoadBakedInConfig:(BOOL)loadBakedInConfig;
178 
179 - (void)setSupportLandscapeOnly:(BOOL)value;
180 - (BOOL)canHandleNetworkAuthenticationChallenge:(NSURLAuthenticationChallenge * _Nullable)challenge;
181 - (BOOL)handleNetworkAuthenticationChallenge:(NSURLAuthenticationChallenge * _Nullable)challenge completionHandler:(void (^ _Nullable)(NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nonnull))completionHandler;
182 
183 @end
signed char BOOL
Definition: PDCwtypes.h:101
enum _SecurityFramework SecurityFramework
id< FileManager > _Nullable fileManager()
void applicationLaunchWithURLFailed()
Definition: FileManager.h:11
BOOL canPersistCertificate()
Definition: SecurityHandler.h:19
BOOL getApplicationLaunchedWithURL()
void unAuthorizeOnBackground()
id< SecurityPolicyManager > _Nullable securityPolicyManager()
UIWindow *_Nullable window()
BOOL shouldThrowExceptionIfAccessedBeforeAuhtorization()
BOOL requiresAuthorizationOnApplicationOfNewURL()
void applicationLaunchedWithURL()
BOOL shouldHideCoverScreen()
BOOL shouldHideScreenContentsOnBackground()
id< SecurityHandler > _Nullable securityHandler()
BOOL shouldLoadBakedInConfig()
BOOL isAuthorizationInProgress()
SecurityFramework securityFramework()
BOOL webViewShouldLoadDataUsingURL()
enum _MSTRFeature MSTRFeature