암호화 및 복호화를 위해 인터셉트되는 앱 API에 대한 정보입니다.
암호화된 API
별도로 명시하지 않는 한 이러한 API는
랩퍼에서 암호화 및 복호화됩니다.
C API는 인터셉션을 위해
고려될 수 없습니다. 파일이 C API에 의해 처리된 경우 대체 Objective-C API로
전환하십시오.
NSData (NSData)
| 클래스 |
방법 |
| NSData |
- initWithContentsOfFile: |
| |
- initWithContentsOfFile:options:error: |
| |
- writeToFile:atomically: |
| |
- writeToFile:options:error: |
| |
+ dataWithContentsOfFile: |
| |
+ dataWithContentsOfURL: |
| |
- writeToURL:atomically: |
NSString
| 클래스 |
방법 |
| NSString |
- initWithContentsOfFile:encoding:error: |
| |
- initWithContentsOfFile:usedEncoding:error: |
| |
- writeToFile:atomically:encoding:error: |
| |
- writeToURL:atomically:encoding:error: |
NSFileHandle
| 클래스 |
방법 |
| NSFileHandle |
+ fileHandleForReadingAtPath: |
| |
+ fileHandleForReadingFromURL:error: |
| |
+ fileHandleForWritingAtPath: |
| |
+ fileHandleForWritingToURL:error: |
| |
+ fileHandleForUpdatingAtPath: |
| |
+ fileHandleForUpdatingURL:error: |
| |
- initWithFileDescriptor: |
| |
- initWithFileDescriptor:closeOnDealloc: |
| |
- readDataOfLength: |
| |
- writeData: |
| |
- closeFile |
| |
- readDataToEndOfFile |
NSOutputStream(암호화 전용)
| 클래스 |
방법 |
| NSOutputStream |
- initWithURL:append: |
| |
- write:maxLength: |
| |
- close |
NSFileManager
| 클래스 |
방법 |
| NSFileManager |
- createFileAtPath:contents:attributes: |
| |
- removeItemAtPath:error: |
| |
- copyItemAtPath:toPath:error: |
| |
- moveItemAtPath:toPath:error: |
NSUserDefaults
| 클래스 |
방법 |
| NSUserDefaults |
- objectForKey: |
| |
- setObject:forKey: |
| |
- boolForKey: |
| |
- integerForKey: |
| |
- stringForKey: |
| |
- persistentDomainForName: |
AVPlayer(복호화 전용)
| 클래스 |
방법 |
| AVPlayer |
- initWithPlayerItem: |
MPMoviePlayerController(복호화
전용이며, iOS 9.0에서는 더 이상 사용되지 않음)
| 클래스 |
방법 |
| MPMoviePlayerController |
- initWithContentURL: |
NSPersistentStoreCoordinator
| 클래스 |
방법 |
| NSPersistentStoreCoordinator |
- addPersistentStoreWithType:configuration:URL:options:error: |
NSDictionary(복호화
전용)
| 클래스 |
방법 |
| NSDictionary |
+ dictionaryWithContentsOfFile: |
NSKeyedArchiver(암호화
전용)
| 클래스 |
방법 |
| NSKeyedArchiver |
+ archiveRootObject:toFile: |
NSKeyedUnarchiver
| 클래스 |
방법 |
| NSKeyedUnarchiver |
+ archiveRootObject:toFile: |
(복호화 전용)
UIImage(복호화 전용)
| 클래스 |
방법 |
| UIImage |
+ imageWithContentsOfFile: |
| |
+ imageNamed: |
AVURLAsset
| 클래스 |
방법 |
| AVURLAsset |
- initWithURL:options: |
| |
|
(복호화 전용)
sqlite3.c
| 클래스 |
방법 |
| sqlite3.c |
sqlite3_open |
특수 케이스 - 코어 그래픽 PDF에 대한 지원
PDF 파일을 동적으로 복호화하려면
인터셉트를 위해 Objective-C 인터페이스를 사용해야 합니다. MaaS360® 은 PDF 참조를 작성하는 데 사용되는 C 함수에 대한 Objective-C 랩퍼를 제공합니다.
thePDFDocRef = [MaaS360AppWrapUtility CGPDFDocumentCreateWithURL:theURL];MaaS360 개발자 지원에서 두 개의 파일을 다운로드하고 해당 파일을 소스 코드에 포함해야 합니다.
- MaaS360AppWrapUtility.m
- MaaS360AppWrapUtility.h
소스 코드의 새 Objective-C 클래스 파일을
대상에 포함하십시오. 이 파일의 헤더는 변경사항이 필요한 파일에 포함되어야 합니다.
비 iOS API가 인터셉트됨
써드파티 API
| 클래스 |
방법 |
사용 |
| MaaS360AppWrapUtility |
+ CGPDFDocumentCreateWithURL: |
복호화 |
| MFDocumentManager |
- initWithFileUrl: |
복호화 |
| ReaderDocument |
+ isPDF: |
복호화 |
| SSZipArchive |
+ unzipFileAtPath:toDestination: |
복호화/암호화 |
| ZipArchive |
- addFileToZip:newName: |
복호화/암호화 |