Copied!
Trait
Methods
public signBlob( $stringToSign, $forceOpenSsl = false, $accessToken = NULL)
 

Sign a string using the default service account private key.

This implementation uses IAM's signBlob API.

  • see https://cloud.google.com/iam/credentials/reference/rest/v1/projects.serviceAccounts/signBlobSignBlob
  • param string $stringToSign The string to sign.
  • param bool $forceOpenSsl [optional] Does not apply to this credentials type.
  • param string $accessToken The access token to use to sign the blob. If provided, saves a call to the metadata server for a new access token. Defaults to null.
  • return string
  • throws \Exception
Properties
private $iam = NULL
 
  • var \Iam|null
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration