PSPDFPKCS12

Objective-C


@interface PSPDFPKCS12 : NSObject <NSSecureCoding>

Swift

class PKCS12 : NSObject, NSSecureCoding

A PKCS12 container holding a private key and certificate.

  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Initializes a container with data from a PKCS12 blob.

    Declaration

    Objective-C

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

    Swift

    init(data: Data)
  • The data this container was initialized with.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSData *_Nonnull data;

    Swift

    var data: Data { get }
  • 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: ((X509?, PrivateKey?, Error?) -> Void)? = nil)