public class CPDFX509
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CPDFX509.CertFormatType |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
exportCertificateDir |
Modifier and Type | Method and Description |
---|---|
boolean |
addToTrustedCertificates(android.content.Context context)
Add certificate to truested list.
|
boolean |
checkCertificateIsTrusted(android.content.Context context)
Whether the certificate is in trusted list.
|
boolean |
exportToFilePath(java.lang.String path,
CPDFX509.CertFormatType type)
Export the certificate to file.
|
java.lang.String |
getBasicConstraints()
Get basic constraints info.
|
CPDFCertInfo |
getCertInfo()
Get certificate infomation.
|
java.lang.String |
getCertPathInPath(java.lang.String certDir)
Get the path to the certificate in the certificate storage directory.
|
CPDFX509[] |
getChain()
Get the trusted certificate chain.
|
long |
getPsox509Ptr()
Get the certificate pointer.
|
boolean |
isExpired()
Whether the certificate is expired.
|
boolean |
isValid()
Whether the certificate pointer is valid.
|
boolean |
verifyGetChain(android.content.Context context,
CPDFSignature signature)
Verify certificate chain.
|
boolean |
verifyOCSP()
OCSP authentication
|
public static final java.lang.String exportCertificateDir
public CPDFCertInfo getCertInfo()
public boolean isValid()
public long getPsox509Ptr()
public boolean verifyGetChain(android.content.Context context, CPDFSignature signature)
context
- Contextsignature
- The signature to verify.public boolean isExpired()
public CPDFX509[] getChain()
public boolean exportToFilePath(java.lang.String path, CPDFX509.CertFormatType type)
path
- Certificate save path.type
- Certificate type.public java.lang.String getBasicConstraints()
public boolean verifyOCSP()
public boolean checkCertificateIsTrusted(android.content.Context context)
context
- Context.public boolean addToTrustedCertificates(android.content.Context context)
context
- Context.public java.lang.String getCertPathInPath(java.lang.String certDir)
certDir
- Certificate storage directory.