class ChannelCredentials
More...
◆ createComposite()
static Grpc\ChannelCredentials::createComposite |
( |
|
$cred1_obj, |
|
|
|
$cred2_obj |
|
) |
| |
|
static |
Create composite credentials from two existing credentials.
- Parameters
-
- Returns
- ChannelCredentials The new composite credentials object
◆ createDefault()
static Grpc\ChannelCredentials::createDefault |
( |
| ) |
|
|
static |
Create a default channel credentials object.
- Returns
- ChannelCredentials The new default channel credentials object
◆ createInsecure()
static Grpc\ChannelCredentials::createInsecure |
( |
| ) |
|
|
static |
Create insecure channel credentials.
- Returns
- null
◆ createSsl()
static Grpc\ChannelCredentials::createSsl |
( |
|
$pem_root_certs = null , |
|
|
|
$private_key = null , |
|
|
|
$cert_chain = null |
|
) |
| |
|
static |
Create SSL credentials.
- Parameters
-
string | null | $pem_root_certs | = null PEM encoding of the server root certificates (optional) |
string | null | $private_key | = null PEM encoding of the client's private key (optional) |
string | null | $cert_chain | = null PEM encoding of the client's certificate chain (optional) |
- Returns
- ChannelCredentials The new SSL credentials object
◆ createXds()
static Grpc\ChannelCredentials::createXds |
( |
|
$fallback_creds | ) |
|
|
static |
Create XDS channel credentials.
- Parameters
-
ChannelCredentials | $fallback_creds | The fallback credentials used if the channel target does not have the 'xds:///' scheme or if the xDS control plane does not provide information on how to fetch credentials dynamically. |
- Returns
- ChannelCredentials The xDS channel credentials object
◆ invalidateDefaultRootsPem()
static Grpc\ChannelCredentials::invalidateDefaultRootsPem |
( |
| ) |
|
|
static |
free default roots pem, if it is set
◆ isDefaultRootsPemSet()
static Grpc\ChannelCredentials::isDefaultRootsPemSet |
( |
| ) |
|
|
static |
if default roots pem is set
- Returns
- TRUE/FALSE
◆ setDefaultRootsPem()
static Grpc\ChannelCredentials::setDefaultRootsPem |
( |
|
$pem_roots | ) |
|
|
static |
Set default roots pem.
- Parameters
-
string | $pem_roots | PEM encoding of the server root certificates |
- Returns
- void
The documentation for this class was generated from the following file: