You are here

public static function CreateDeleteAppKey::generateStateKey in Apigee Edge 8

Generates a unique states key for an app credential.

Parameters

string $app_type: Either "developer" or "company".

string $owner_id: Developer id or company name.

string $app_name: App name.

string $credential_key: Credential key.

Return value

string States key.

2 calls to CreateDeleteAppKey::generateStateKey()
CreateDeleteAppKey::onAppKeyCreateDelete in tests/modules/apigee_edge_test_app_keys/src/EventSubscriber/CreateDeleteAppKey.php
Creates a states entry when a dev. app credential is created or deleted.
DeveloperAppCredentialEventTest::testAppCredentialEvents in tests/src/Functional/DeveloperAppCredentialEventTest.php
Developer app keys, credential event test.

File

tests/modules/apigee_edge_test_app_keys/src/EventSubscriber/CreateDeleteAppKey.php, line 96

Class

CreateDeleteAppKey
Developer app credential create/delete event subscriber.

Namespace

Drupal\apigee_edge_test_app_keys\EventSubscriber

Code

public static function generateStateKey(string $app_type, string $owner_id, string $app_name, string $credential_key) : string {
  return "{$app_type}-{$owner_id}-{$app_name}-{$credential_key}";
}