View Source GRPC.Credential (grpc v0.5.0)

Stores credentials for authentication. It can be used to establish secure connections by passed to GRPC.Stub.connect/2 as an argument.

examples

Examples

iex> cred = GRPC.Credential.new(ssl: [cacertfile: ca_path])
iex> GRPC.Stub.connect("localhost:10000", cred: cred)

Link to this section Summary

Functions

Creates credential.

Link to this section Types

@type t() :: %GRPC.Credential{ssl: [:ssl.tls_option()]}

Link to this section Functions

Creates credential.