security: In BasicIdentityStorage, implement getKeyType.