Refactor KeyStoreBasedSecretKeyFactory to support keypairs.