public class PKSigningInformationUtil extends Object
| Constructor and Description |
|---|
PKSigningInformationUtil() |
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
loadDERCertificate(InputStream certificateInputStream)
Deprecated.
|
X509Certificate |
loadDERCertificate(String filePath)
Deprecated.
|
KeyStore |
loadPKCS12File(InputStream inputStreamOfP12,
String password)
Deprecated.
|
KeyStore |
loadPKCS12File(String pathToP12,
String password)
Deprecated.
|
PKSigningInformation |
loadSigningInformation(String keyStoreFilePath,
String keyStorePassword,
String appleWWDRCAFilePath)
Load all signing information necessary for pass generation from the filesystem or classpath.
|
PKSigningInformation |
loadSigningInformationFromPKCS12AndIntermediateCertificate(InputStream keyStoreInputStream,
String keyStorePassword,
InputStream appleWWDRCAFileInputStream)
Load all signing information necessary for pass generation using two input streams for the key store and the Apple WWDRCA certificate.
|
PKSigningInformation |
loadSigningInformationFromPKCS12AndIntermediateCertificate(String keyPath,
String keyPassword,
String appleWWDRCAFilePath)
Load all signing information necessary for pass generation from the filesystem or classpath.
|
public PKSigningInformation loadSigningInformation(String keyStoreFilePath, String keyStorePassword, String appleWWDRCAFilePath) throws PKSigningException
keyStoreFilePath - path to keystore (classpath or filesystem)keyStorePassword - Password used to access the key storeappleWWDRCAFilePath - path to apple's WWDRCA certificate file (classpath or filesystem)PKSigningInformation object filled with all certificates from the provided filesPKSigningExceptionpublic PKSigningInformation loadSigningInformationFromPKCS12AndIntermediateCertificate(String keyPath, String keyPassword, String appleWWDRCAFilePath) throws IOException, CertificateException
keyPath - path to keystore (classpath or filesystem)keyPassword - Password used to access the key storeappleWWDRCAFilePath - path to apple's WWDRCA certificate file (classpath or filesystem)PKSigningInformation object filled with all certificates from the provided filesIOExceptionIllegalStateExceptionCertificateExceptionpublic PKSigningInformation loadSigningInformationFromPKCS12AndIntermediateCertificate(InputStream keyStoreInputStream, String keyStorePassword, InputStream appleWWDRCAFileInputStream) throws IOException, CertificateException
keyStoreInputStream - InputStream of the key storekeyStorePassword - Password used to access the key storeappleWWDRCAFileInputStream - InputStream of the Apple WWDRCA certificate.IOExceptionIllegalStateExceptionCertificateException@Deprecated public KeyStore loadPKCS12File(String pathToP12, String password) throws CertificateException, IOException
pathToP12 - path to PKCS 12 file (on the filesystem or classpath)password - password to access the key storeIOExceptionCertificateExceptionIllegalArgumentException@Deprecated public KeyStore loadPKCS12File(InputStream inputStreamOfP12, String password) throws CertificateException, IOException
inputStreamOfP12 - InputStream containing the signing key store.password - Password to access the key storeinputStreamOfP12IOExceptionCertificateExceptionIllegalArgumentException - If the parameter inputStreamOfP12 is null.@Deprecated public X509Certificate loadDERCertificate(String filePath) throws IOException, CertificateException
filePath - Path to the file, containing the certificate.IOExceptionCertificateException@Deprecated public X509Certificate loadDERCertificate(InputStream certificateInputStream) throws IOException, CertificateException
InputStream.
The caller is responsible for closing the stream after this method returns successfully or fails.certificateInputStream - InputStream containing the certificate.IOExceptionCertificateExceptionCopyright © 2012–2022. All rights reserved.