Package com.pspdfkit.signatures
Object TrustedKeyStore
-
- All Implemented Interfaces:
public class TrustedKeyStore
Singleton object that holds the list of trusted certificates used for digital signature validation and signing. By default we load the trusted certificates from the OS as well as Adobe CA certificates from the assets. Add additional root/trusted certificates to this object if you want to use them for signing or validation.
If you want to speed up signing, you can call clearTrustedCertificates to remove the default certificates and only add the ones you need.
-
-
Field Summary
Fields Modifier and Type Field Description public final static TrustedKeyStore
INSTANCE
-
Method Summary
Modifier and Type Method Description final Unit
addTrustedCertificates(List<X509Certificate> certificates)
Add trusted certificates here. final List<X509Certificate>
getTrustedCertificates()
Returns the list of trusted certificates. final Unit
clearTrustedCertificates()
Clears the list. final Unit
restoreDefaults()
Reloads the default certificates from the OS and assets. -
-
Method Detail
-
addTrustedCertificates
final Unit addTrustedCertificates(List<X509Certificate> certificates)
Add trusted certificates here.
-
getTrustedCertificates
final List<X509Certificate> getTrustedCertificates()
Returns the list of trusted certificates.
-
clearTrustedCertificates
final Unit clearTrustedCertificates()
Clears the list. You can call restoreDefaults to reload the default certificates.
-
restoreDefaults
final Unit restoreDefaults()
Reloads the default certificates from the OS and assets. Can be used if you have called clearTrustedCertificates
-
-
-
-