PSPDFPrivateKey
Objective-C
@interface PSPDFPrivateKey : NSObject
Swift
class PrivateKey : NSObject
Represents a cryptographic private key.
Supported encodings are PKCS1 (https://tools.ietf.org/html/rfc8017) and PCKS8 (https://tools.ietf.org/html/rfc5208).
-
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
-
Creates a private key from raw encoded data.
Declaration
Objective-C
+ (nullable PSPDFPrivateKey *)createFromRawPrivateKey:(nonnull NSData *)data encoding:(PSPDFPrivateKeyEncoding) encoding;
Swift
class func create(fromRawPrivateKey data: Data, encoding: PrivateKey.Encoding) -> PrivateKey?
Parameters
data
The raw data that represents the private key.
encoding
The encoding that was used to encode
data
. Supported encodings are PCKS1 (https://tools.ietf.org/html/rfc8017) and PCKS8 (https://tools.ietf.org/html/rfc5208). -
The encryption algorithm used in this private key.
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFSignatureEncryptionAlgorithm signatureEncryptionAlgorithm;
Swift
var signatureEncryptionAlgorithm: PDFSignatureEncryptionAlgorithm { get }