Class KeyStoreCertProvider

  • All Implemented Interfaces:
    IMailEncryptorCertProvider

    public class KeyStoreCertProvider
    extends Object
    implements IMailEncryptorCertProvider
    An email-encryptor key-provider to determine the certificates by a keystore. If no keystore is given, a default one will be created.
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • KeyStoreCertProvider

        public KeyStoreCertProvider()
                             throws Exception
        Creates a provider with a default keystore
        Throws:
        Exception - on errors while opening or creating the keystore
      • KeyStoreCertProvider

        public KeyStoreCertProvider​(File keyStoreFile,
                                    String keyStorePassword)
                             throws Exception
        Creates a provider with the given keystore-config or default if the config is not valid
        Parameters:
        keyStoreFile - the File of the keystore. May be null
        keyStorePassword - the password of the keystore. May be null
        Throws:
        Exception - on errors while opening or creating the keystore