Yoast\WP\SEO\MyYoast_Client\Infrastructure\Crypto

Key_Pair_Manager::rotate_key_pairpublicYoast 1.0

Generates a new key pair, replacing any existing one for the given purpose.

Метод класса: Key_Pair_Manager{}

Хуков нет.

Возвращает

Key_Pair. The key pair value object.

Использование

$Key_Pair_Manager = new Key_Pair_Manager();
$Key_Pair_Manager->rotate_key_pair( $purpose ): Key_Pair;
$purpose(строка) (обязательный)
One of the PURPOSE_* constants.

Код Key_Pair_Manager::rotate_key_pair() Yoast 28.3

public function rotate_key_pair( string $purpose ): Key_Pair {
	return $this->generate_and_store_key_pair( $purpose );
}