security: Added IdentityStorage::getKeyType.
security: Make PublicKey keep the KeyType, not the OID.
security: In MemoryPrivateKeyStorage setKeyPairForKeyName, add parameter keyType. Support KEY_TYPE_EC.