Foxit PDF SDK  9.1
FSPDFViewCtrl(rms) Category Reference

Instance Methods

(BOOL) - isRMSProtected
 Check whether the current document is protected by RMS(Right Management Services). More...
 
(void) - setRMSAppClientId:redirectURI:
 Set the app client id and server URL for encryption or decryption of RMS protected PDF file. More...
 

Class Methods

(BOOL) + handleMSALResponse:sourceApplication:
 

Method Documentation

◆ handleMSALResponse:sourceApplication:

+ (BOOL) handleMSALResponse: (nonnull NSURL *)  response
sourceApplication: (nullable NSString *)  sourceApplication 

Ask MSAL to handle URL response. You MUST implement this API in following cases:

  1. Your application handler for MSAL web or brokered authentication sessions, AND
  2. You're using iOS 13 multiple window feature and your code implements UISceneDelegate instead of UIApplicationDelegate

You should call this API from your UISceneDelegate implementation, for example:

  • (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts { UIOpenURLContext *context = URLContexts.anyObject; NSURL *url = context.URL; NSString *sourceApplication = context.options.sourceApplication;

    [FSPDFViewCtrl handleMSALResponse:url sourceApplication:sourceApplication]; }

Calling this API ensures that MSAL can receive tokens from the Microsoft Authenticator application.

Returns
YES if it is MSAL response and it was handled NO if it is not MSAL response or there was a failure in handling.

Extends class FSPDFViewCtrl.

◆ isRMSProtected

- (BOOL) isRMSProtected

Check whether the current document is protected by RMS(Right Management Services).

Extends class FSPDFViewCtrl.

◆ setRMSAppClientId:redirectURI:

- (void) setRMSAppClientId: (nonnull NSString *)  appClientId
redirectURI: (nonnull NSString *)  redirectURI 

Set the app client id and server URL for encryption or decryption of RMS protected PDF file.

Extends class FSPDFViewCtrl.