Module xmlrat_dsig_signer_stdlib

The default xmlrat_dsig_signer implementation, which uses the built-in public_key module and private keys provided in options.

Behaviours: xmlrat_dsig_signer.

Description

The default xmlrat_dsig_signer implementation, which uses the built-in public_key module and private keys provided in options.

Function Index

algorithms/1Returns a list of algorithms supported by this signing instance.
key_details/1Returns information about the signing key which should be included in the signature metadata.
sign/3Signs a message using one of the algorithms retrieved via algorithms/1.

Function Details

algorithms/1

algorithms(Opts::xmlrat_dsig_signer:options()) -> {ok, [xmlrat_dsig_signer:algo()]} | {error, term()}

Returns a list of algorithms supported by this signing instance.

key_details/1

key_details(Opts::xmlrat_dsig_signer:options()) -> {ok, xmlrat_dsig_signer:key_details()} | {error, term()}

Returns information about the signing key which should be included in the signature metadata.

At least one of the keys in the key_details() map must be set.

sign/3

sign(Opts::xmlrat_dsig_signer:options(), Message::xmlrat_dsig_signer:msg(), Algo::xmlrat_dsig_signer:algo()) -> {ok, xmlrat_dsig_signer:signature()} | {error, next_algo} | {error, term()}

Signs a message using one of the algorithms retrieved via algorithms/1.


Generated by EDoc