Package com.itextpdf.test.signutils
Class Pkcs12FileHelper
java.lang.Object
com.itextpdf.test.signutils.Pkcs12FileHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyStore
static Certificate[]
readFirstChain
(String p12FileName, char[] ksPass) static PrivateKey
readFirstKey
(String p12FileName, char[] ksPass, char[] keyPass)
-
Method Details
-
readFirstChain
public static Certificate[] readFirstChain(String p12FileName, char[] ksPass) throws KeyStoreException, IOException, CertificateException, NoSuchAlgorithmException -
readFirstKey
public static PrivateKey readFirstKey(String p12FileName, char[] ksPass, char[] keyPass) throws KeyStoreException, IOException, CertificateException, NoSuchAlgorithmException, UnrecoverableKeyException -
initStore
public static KeyStore initStore(String p12FileName, char[] ksPass) throws KeyStoreException, IOException, CertificateException, NoSuchAlgorithmException, NoSuchProviderException
-