Reference documentation and code samples for the Google Auth Library Client class SignBlobInterface.
Describes a class which supports signing arbitrary strings.
Classes which implement this interface in this package:
Namespace
Google \ AuthMethods
signBlob
Sign a string using the method which is best for a given credentials type.
| Parameters | |
|---|---|
| Name | Description |
stringToSign |
string
The string to sign. |
forceOpenssl |
bool
Require use of OpenSSL for local signing. Does
not apply to signing done using external services. Defaults to
|
| Returns | |
|---|---|
| Type | Description |
string |
The resulting signature. Value should be base64-encoded. |
getClientName
Returns the current Client Name.
| Parameter | |
|---|---|
| Name | Description |
httpHandler |
callable|null
callback which delivers psr7 request, if one is required to obtain a client name. |
| Returns | |
|---|---|
| Type | Description |
string |
|