Class KeyStoreCertProvider

  • All Implemented Interfaces:
    IMailEncryptorCertProvider

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

      • KeyStoreCertProvider

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

        public KeyStoreCertProvider​(File keyStoreFile,
                                    String keyStorePassword)
                             throws Exception
        Creats an 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