|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.qoppa.pdf.SignatureSettings
This class manages the certificates that are used to verify digital signatures.
| Method Summary | |
static void |
addKeyStore(KeyStore keystore)
Adds any X509 certificates found in a key store to the trusted certificate list to be used when verifying digital signatures. |
static void |
addX509Certificate(X509Certificate certificate)
Adds a X509 certificate to the trusted certificate list to be used when verifying digital signatures. |
static Hashtable |
getTrustedCertificates()
This method returns a hashtable of trusted certificates keyed by the unique identifier of the X509Certificate that is returned from SignatureSettings.getUniqueIdentifier(X509Certificate) |
static String |
getUniqueIdentifier(X509Certificate certificate)
Returns a unique identifier for a certificate. |
static void |
reloadTrustedCertificates()
This method clears the trusted certificate list and reloads the trusted certificates if the CaCertsEnabled flag is enabled. |
static void |
setCaCertsEnabled(boolean enabled)
The CaCertsEnabled flag determines whether or not the certificates in cacerts from the current JRE will be added to the trusted certificate cache used to verify digital signatures. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void setCaCertsEnabled(boolean enabled)
enabled - New value of the flagpublic static void addX509Certificate(X509Certificate certificate)
certificate - the certificate to add to the trusted certificate list
public static void addKeyStore(KeyStore keystore)
throws KeyStoreException
keystore - The key store object holding the certificates that will be added to the trusted list.
KeyStoreExceptionpublic static void reloadTrustedCertificates()
public static Hashtable getTrustedCertificates()
public static String getUniqueIdentifier(X509Certificate certificate)
certificate -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||