Package dev.galasa.framework.spi
Interface IKeyStore
public interface IKeyStore
A class to represent a Java Keystore and allow for easy appending and generation
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendCertficateById
(String aliasId, String certificateId) Allows a certificate to be retrieved from the the certificate store based on its ID tag and added to this keystore.void
appendDer
(String aliasId, InputStream certFile) Allows a Base64 encoded DER cert to be appended to the Keystorevoid
appendPem
(String aliasId, InputStream certFile) Allows a PEM cert file to be appended to the Keystorevoid
appendPemAsString
(String aliasId, String cert) Allows a Base64 encoded PEM cert to be appended to the KeystoreReturns the Java keystore
-
Method Details
-
getKeyStore
KeyStore getKeyStore()Returns the Java keystore- Returns:
- KeyStore
-
appendPemAsString
Allows a Base64 encoded PEM cert to be appended to the Keystore
- Parameters:
cert
-- Throws:
CertificateStoreException
-
appendPem
Allows a PEM cert file to be appended to the Keystore
- Parameters:
aliasId
-certFile
-- Throws:
CertificateStoreException
-
appendDer
Allows a Base64 encoded DER cert to be appended to the Keystore
- Parameters:
aliasId
-certFile
-- Throws:
CertificateStoreException
-
appendCertficateById
Allows a certificate to be retrieved from the the certificate store based on its ID tag and added to this keystore.
- Parameters:
certificateId
-- Throws:
CertificateStoreException
-