View Source GRPC.Credential (grpc v0.9.0)

Stores credentials for authentication.

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

Some client and server adapter implementations may choose to let request options override some of the configuration here, but this is left as a choice for each adapter.

Examples

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

Summary

Functions

Creates credential.

Types

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

Functions

Creates credential.