You are here

public function Verifier::getPublicKey in Automatic Updates 8

Same name and namespace in other branches
  1. 7 vendor/drupal/php-signify/src/Verifier.php \Drupal\Signify\Verifier::getPublicKey()

Get the public key data.

Return value

\Drupal\Signify\VerifierB64Data An object with the validated and decoded public key data.

Throws

\Drupal\Signify\VerifierException

1 call to Verifier::getPublicKey()
Verifier::verifyMessage in vendor/drupal/php-signify/src/Verifier.php
Verify a string message signed with plain Signify format.

File

vendor/drupal/php-signify/src/Verifier.php, line 54

Class

Verifier

Namespace

Drupal\Signify

Code

public function getPublicKey() {
  if (!$this->publicKey) {
    $this->publicKey = $this
      ->parseB64String($this->publicKeyRaw, SODIUM_CRYPTO_SIGN_PUBLICKEYBYTES);
  }
  return $this->publicKey;
}