xmlrat_dsig_signer
implementation, which uses
the built-in public_key
module and private keys provided
in options.
Behaviours: xmlrat_dsig_signer
.
xmlrat_dsig_signer
implementation, which uses
the built-in public_key
module and private keys provided
in options.
algorithms/1 | Returns a list of algorithms supported by this signing instance. |
key_details/1 | Returns information about the signing key which should be included in the signature metadata. |
sign/3 | Signs a message using one of the algorithms retrieved via 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(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 thekey_details()
map must be set.
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