# `GRPC.Credential`
[🔗](https://github.com/elixir-grpc/grpc_core/blob/v1.0.5/lib/grpc/credential.ex#L1)

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)

# `new`

Creates credential.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
