This module defines the xmlrat_dsig_verifier
behaviour.
Required callback functions: retrieve_key/3
, validate_key/4
, validate_cert/3
.
Behaviour for callback modules which verify the keys used to sign XML-DSIG payloads.
The key retrieval and validation operations are replaceable so that consumers of this library may implement their own forms of key storage or validation (e.g. retrieving keys from a database based on the key name or fingerprint, or doing custom certificate validation).
The default implementation of this behaviour can be seen inxmlrat_dsig_verifier_stdlib
.
algo() = {pubkey_algo(), hash_algo()}
cert() = #'OTPCertificate'{}
hash_algo() = sha1 | sha256 | sha384 | sha512
key_details() = #{name => binary()}
options() = map()
pubkey() = #'RSAPublicKey'{} | {integer(), #'Dss-Parms'{}} | {#'ECPoint'{}, {namedCurve, tuple() | atom()}}
pubkey_algo() = rsa | dsa | ecdsa | hmac
Generated by EDoc