This module defines the xmlrat_dsig_signer
behaviour.
Required callback functions: algorithms/1
, key_details/1
, sign/3
.
Behaviour for callback modules which sign XML-DSIG payloads.
The signing operation is replaceable so that consumers of this library
may use keys not stored in the memory of the Erlang process (e.g.
stored in a hardware token accessed via PKCS11 or the ssh-agent
protocol).
xmlrat_dsig_signer_stdlib
.
algo() = {pubkey_algo(), hash_algo()}
cert() = #'OTPCertificate'{}
hash_algo() = sha | sha256 | sha384 | sha512
key_details() = #{public_key => pubkey(), certificate => cert(), name => binary()}
msg() = binary()
options() = map()
pubkey() = #'RSAPublicKey'{} | {integer(), #'Dss-Parms'{}} | {#'ECPoint'{}, {namedCurve, tuple() | atom()}}
pubkey_algo() = rsa | dsa | ecdsa | hmac
signature() = binary()
Generated by EDoc