Interface KeyStoreLoader
- All Known Implementing Classes:
BCFKSFileLoader
,FileKeyStoreLoader
,JKSFileLoader
,PEMFileLoader
,PKCS12FileLoader
,StandardTypeFileKeyStoreLoader
interface KeyStoreLoader
An interface for an object that can load key stores or trust stores.
This file has been copied from the Apache ZooKeeper project.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionLoads a KeyStore which contains at least one private key and the associated X509 cert chain.Loads a KeyStore which contains at least one X509 cert chain for a trusted Certificate Authority (CA).
-
Method Details
-
loadKeyStore
Loads a KeyStore which contains at least one private key and the associated X509 cert chain.- Returns:
- a new KeyStore
- Throws:
IOException
- if loading the key store fails due to an IO error, such as "file not found".GeneralSecurityException
- if loading the key store fails due to a security error, such as "unsupported crypto algorithm".
-
loadTrustStore
Loads a KeyStore which contains at least one X509 cert chain for a trusted Certificate Authority (CA).- Returns:
- a new KeyStore
- Throws:
IOException
- if loading the trust store fails due to an IO error, such as "file not found".GeneralSecurityException
- if loading the trust store fails due to a security error, such as "unsupported crypto algorithm".
-