Informazioni sulle API dell'applicazione intercettate per la crittografia e la decrittografia.
API intercettate
Se non diversamente indicato, queste API sono codificate e decodificate nel wrapper.
Le API C non possono essere considerate per l'intercettazione. Se i file gestiti dalle API C devono essere codificati, passare alle API Objective - C.
NSDati
| Classe |
Metodo |
| NSData |
- initWithContentsOfFile: |
| |
- initWithContentsOfFile:options:error: |
| |
- writeToFile:atomically: |
| |
- writeToFile:options:error: |
| |
+ dataWithContentsOfFile: |
| |
+ dataWithContentsOfURL: |
| |
- writeToURL:atomically: |
NSStringa
| Classe |
Metodo |
| NSString |
- initWithContentsOfFile:encoding:error: |
| |
- initWithContentsOfFile:usedEncoding:error: |
| |
- writeToFile:atomically:encoding:error: |
| |
- writeToURL:atomically:encoding:error: |
NSFileHandle
| Classe |
Metodo |
| NSFileHandle |
+ fileHandleForReadingAtPath: |
| |
+ fileHandleForReadingFromURL:error: |
| |
+ fileHandleForWritingAtPath: |
| |
+ fileHandleForWritingToURL:error: |
| |
+ fileHandleForUpdatingAtPath: |
| |
+ fileHandleForUpdatingURL:error: |
| |
- initWithFileDescriptor: |
| |
- initWithFileDescriptor:closeOnDealloc: |
| |
- readDataOfLength: |
| |
- writeData: |
| |
- closeFile |
| |
- readDataToEndOfFile |
NSOutputStream (solo codifica)
| Classe |
Metodo |
| NSOutputStream |
- initWithURL:append: |
| |
- write:maxLength: |
| |
- close |
NSFileManager
| Classe |
Metodo |
| NSFileManager |
- createFileAtPath:contents:attributes: |
| |
- removeItemAtPath:error: |
| |
- copyItemAtPath:toPath:error: |
| |
- moveItemAtPath:toPath:error: |
NSUserDefaults
| Classe |
Metodo |
| NSUserDefaults |
- objectForKey: |
| |
- setObject:forKey: |
| |
- boolForKey: |
| |
- integerForKey: |
| |
- stringForKey: |
| |
- persistentDomainForName: |
AVPlayer (solo decodifica)
| Classe |
Metodo |
| AVPlayer |
- initWithPlayerItem: |
MPMoviePlayerController (solo decodifica. Obsoleto in iOS 9.0)
| Classe |
Metodo |
| MPMoviePlayerController |
- initWithContentURL: |
NSPersistentStoreCoordinator
| Classe |
Metodo |
| NSPersistentStoreCoordinator |
- addPersistentStoreWithType:configuration:URL:options:error: |
NSDictionary (solo decodifica)
| Classe |
Metodo |
| NSDictionary |
+ dictionaryWithContentsOfFile: |
NSKeyedArchiver (solo codifica)
| Classe |
Metodo |
| NSKeyedArchiver |
+ archiveRootObject:toFile: |
NSKeyedUnarchiver
| Classe |
Metodo |
| NSKeyedUnarchiver |
+ archiveRootObject:toFile: |
(Solo decodifica)
UIImage (solo decodifica)
| Classe |
Metodo |
| UIImage |
+ imageWithContentsOfFile: |
| |
+ imageNamed: |
AVURLAsset
| Classe |
Metodo |
| AVURLAsset |
- initWithURL:options: |
| |
|
(Solo decodifica)
sqlite3.c
| Classe |
Metodo |
| sqlite3.c |
sqlite3_open |
Caso speciale - Supporto per Core Graphics PDF
Per decodificare i file PDF in modo dinamico, è necessario utilizzare un'interfaccia Objective - C per intercettare. MaaS360® fornisce un wrapper Objective - C per la funzione C utilizzata per creare riferimenti PDF.
thePDFDocRef = [MaaS360AppWrapUtility CGPDFDocumentCreateWithURL:theURL];È necessario scaricare due file da MaaS360 Developer Support e includere tali file nel codice sorgente:
- MaaS360AppWrapUtility.m
- MaaS360AppWrapUtility.h
Includi il nuovo file di classe Objective - C nel tuo codice sorgente nella destinazione. L'intestazione di questo file deve essere inclusa nei file in cui sono necessarie le modifiche.
API Non-iOS intercettate
API di terzi
| Classe |
Metodo |
Utilizzo |
| MaaS360AppWrapUtility |
+ CGPDFDocumentCreateWithURL: |
Decodifica |
| MFDocumentManager |
- initWithFileUrl: |
Decodifica |
| ReaderDocument |
+ isPDF: |
Decodifica |
| SSZipArchive |
+ unzipFileAtPath:toDestination: |
Decodifica / Crittografia |
| ZipArchive |
- addFileToZip:newName: |
Decodifica / Crittografia |