Samlo.Metadata.Certificate (samlo v0.1.0)

Structure that contains the X509Certificate data

Link to this section Summary

Link to this section Types

Specs

alg() :: :sha256

Specs

cert_type() :: :x509

Specs

t() :: %Samlo.Metadata.Certificate{
  data: nil | binary() | charlist(),
  type: cert_type()
}

Link to this section Functions

Link to this function

gen_fingerprint(data, alg \\ :sha256)

Specs

gen_fingerprint(cert :: t() | binary(), hash_alg :: alg()) ::
  {alg :: alg(), hash :: term()}

Specs

trim(data :: binary()) :: binary()