Sailfish::Secrets::CreateCollectionRequest createCollection; createCollection.setManager(m_secretManager); createCollection.setCollectionLockType(Sailfish::Secrets::CreateCollectionRequest::DeviceLock); createCollection.setDeviceLockUnlockSemantic(Sailfish::Secrets::SecretManager::DeviceLockKeepUnlocked); createCollection.setAccessControlMode(Sailfish::Secrets::SecretManager::OwnerOnlyMode); createCollection.setUserInteractionMode(Sailfish::Secrets::SecretManager::SystemInteraction); createCollection.setCollectionName(id.collectionName()); createCollection.setStoragePluginName(Secrets::SecretManager::DefaultEncryptedStoragePluginName); createCollection.setEncryptionPluginName(Secrets::SecretManager::DefaultEncryptedStoragePluginName); createCollection.startRequest(); createCollection.waitForFinished();