PSPDFPKCS12

@interface PSPDFPKCS12 : NSObject<NSCoding>

PSPDF_EMPTY_INIT_UNAVAILABLE

/// Inits the object with data from a PKCS12 blob.
- (instancetype)initWithData:(NSData *)data NS_DESIGNATED_INITIALIZER;

/// Unlocks the PKCS12 archive and retrieves the certificate and public key.
- (void)unlockWithPassword:(NSString *)password done:(nullable void (^)(PSPDFX509 *_Nullable x509, PSPDFPrivateKey *_Nullable pk, NSError *_Nullable error))done;

@end

Undocumented

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Inits the object with data from a PKCS12 blob.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithData:(nonnull NSData *)data;

    Swift

    init(data: Data)
  • Unlocks the PKCS12 archive and retrieves the certificate and public key.

    Declaration

    Objective-C

    - (void)unlockWithPassword:(nonnull NSString *)password
                          done:(nullable void (^)(PSPDFX509 *_Nullable,
                                                  PSPDFPrivateKey *_Nullable,
                                                  NSError *_Nullable))done;

    Swift

    func unlock(withPassword password: String, done: ((PSPDFX509?, PSPDFPrivateKey?, Error?) -> Void)? = nil)