CPDFSignatureCertificate Class Reference

Inherits from NSObject
Declared in CPDFSignature.h

  version

Certificate version.

@property (nonatomic, readonly) NSString *version

Discussion

Certificate version.

Declared In

CPDFSignature.h

  signatureAlgorithmOID

Get the signature algorithm.

@property (nonatomic, readonly) NSString *signatureAlgorithmOID

Discussion

Get the signature algorithm.

Declared In

CPDFSignature.h

  signatureAlgorithmType

Get the type of signature algorithm.

@property (nonatomic, readonly) CPDFSignatureAlgorithmType signatureAlgorithmType

Discussion

Get the type of signature algorithm.

Declared In

CPDFSignature.h

  subject

Get the subject of the certificate.

@property (nonatomic, readonly) NSString *subject

Discussion

Get the subject of the certificate.

Declared In

CPDFSignature.h

  subjectDict

C (Country), ST (Province), L (Locality);O (Organization), OU (Organizational Unit), CN (Common Name)

@property (nonatomic, readonly) NSDictionary *subjectDict

Discussion

C (Country), ST (Province), L (Locality);O (Organization), OU (Organizational Unit), CN (Common Name)

Declared In

CPDFSignature.h

  issuer

Get the issuer of the certificate.

@property (nonatomic, readonly) NSString *issuer

Discussion

Get the issuer of the certificate.

Declared In

CPDFSignature.h

  issuerDict

C (Country), ST (Province), L (Locality);O (Organization), OU (Organizational Unit), CN (Common Name)

@property (nonatomic, readonly) NSDictionary *issuerDict

Discussion

C (Country), ST (Province), L (Locality);O (Organization), OU (Organizational Unit), CN (Common Name)

Declared In

CPDFSignature.h

  serialNumber

Get the serial number of the certificate.

@property (nonatomic, readonly) NSString *serialNumber

Discussion

Get the serial number of the certificate.

Declared In

CPDFSignature.h

  validityStarts

Get the validity start date.

@property (nonatomic, readonly) NSDate *validityStarts

Discussion

Get the validity start date.

Declared In

CPDFSignature.h

  validityEnds

Get the validity end date.

@property (nonatomic, readonly) NSDate *validityEnds

Discussion

Get the validity end date.

Declared In

CPDFSignature.h

  dats

@property (nonatomic, readonly) NSString *dats

  authorityInfoAccess

Get the access of the issuer information.

@property (nonatomic, readonly) NSArray<NSDictionary*> *authorityInfoAccess

Discussion

Get the access of the issuer information.

Declared In

CPDFSignature.h

  subjectKeyIdentifier

Get the subject’s key identifier.

@property (nonatomic, readonly) NSString *subjectKeyIdentifier

Discussion

Get the subject’s key identifier.

Declared In

CPDFSignature.h

  keyUsage

Get the types of key usage.

@property (nonatomic, readonly) CPDFSignatureKeyUsageType keyUsage

Discussion

Get the types of key usage.

Declared In

CPDFSignature.h

  certificatePolicies

Get the certificate policies.

@property (nonatomic, readonly) NSString *certificatePolicies

Discussion

Get the certificate policies.

Declared In

CPDFSignature.h

  authorityKeyIdentifier

Get the issuer‘s key identifier.

@property (nonatomic, readonly) NSString *authorityKeyIdentifier

Discussion

Get the issuer‘s key identifier.

Declared In

CPDFSignature.h

  CRLDistributionPoints

Get the CRL Distribution Points.

@property (nonatomic, readonly) NSArray<NSString*> *CRLDistributionPoints

Discussion

Get the CRL Distribution Points.

Declared In

CPDFSignature.h

  basicConstraints

Basic Constraints.

@property (nonatomic, readonly) NSString *basicConstraints

Discussion

Basic Constraints.

Declared In

CPDFSignature.h

  publicKey

Public Key.

@property (nonatomic, readonly) NSString *publicKey

Discussion

Public Key.

Declared In

CPDFSignature.h

  X509Data

Get X.509 data.

@property (nonatomic, readonly) NSString *X509Data

Discussion

Get X.509 data.

Declared In

CPDFSignature.h

  SHA1Digest

SHA1 digest.

@property (nonatomic, readonly) NSString *SHA1Digest

Discussion

SHA1 digest.

Declared In

CPDFSignature.h

  MD5Digest

MD5 digest.

@property (nonatomic, readonly) NSString *MD5Digest

Discussion

MD5 digest.

Declared In

CPDFSignature.h

  ocspURL

OCSP url.

@property (nonatomic, readonly) NSString *ocspURL

Discussion

OCSP url.

Declared In

CPDFSignature.h

  ocspStatus

OCSP authentication status.

@property (nonatomic, readonly) CPDFSignatureOCSPStatus ocspStatus

Discussion

OCSP authentication status.

Declared In

CPDFSignature.h

  isTrusted

Be trusted or not.

@property (nonatomic, readonly) BOOL isTrusted

Discussion

Be trusted or not.

Declared In

CPDFSignature.h

– verifyOCSPWithCompletionHandler:

OCSP authentication.

- (void)verifyOCSPWithCompletionHandler:(void ( ^ ) ( BOOL result , CPDFSignatureOCSPStatus ocspStatus ))handler

Discussion

OCSP authentication.

Declared In

CPDFSignature.h

– exportToFilePath:

Export the certificate to a file.

- (BOOL)exportToFilePath:(NSString *)filePath

Parameters

path

Certificate save path.

Return Value

Return true: Export successfully. Return false: Export failed.

Discussion

Export the certificate to a file.

Declared In

CPDFSignature.h

– setSignCertTrustedFolder:

Set up a certificate trust folder, default sandbox path.

- (void)setSignCertTrustedFolder:(NSString *)signCertTrustedFolder

Discussion

Set up a certificate trust folder, default sandbox path.

Declared In

CPDFSignature.h

– addToTrustedCertificates

Add certificate to the trusted list.

- (BOOL)addToTrustedCertificates

Discussion

Add certificate to the trusted list.

Declared In

CPDFSignature.h

+ certificateWithPKCS12Path:password:

 * Check whether the password of the certificate file is correct.
 * @param path The certificate file path.
 * @param password The password of the certificate file.
+ (CPDFSignatureCertificate *)certificateWithPKCS12Path:(NSString *)path password:(NSString *)password

Discussion

 * Check whether the password of the certificate file is correct.
 * @param path The certificate file path.
 * @param password The password of the certificate file.

 * @return If the return value is not null, the password is correct.

Declared In

CPDFSignature.h

– checkCertificateIsTrusted

The certificate is trusted or not.

- (void)checkCertificateIsTrusted

Discussion

The certificate is trusted or not.

Declared In

CPDFSignature.h