Made sure the builder and factory extends the KeyStores interfaces.