Module xmlrat_dsig_verifier

Behaviour for callback modules which verify the keys used to sign XML-DSIG payloads.

This module defines the xmlrat_dsig_verifier behaviour.
Required callback functions: retrieve_key/3, validate_key/4, validate_cert/3.

Description

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 in xmlrat_dsig_verifier_stdlib.

Data Types

algo()

algo() = {pubkey_algo(), hash_algo()}

cert()

cert() = xmlrat_dsig:cert()

See xmlrat_dsig:cert()

hash_algo()

hash_algo() = xmlrat_dsig:hash_algo()

key_details()

key_details() = #{name => binary()}

options()

options() = map()

pubkey()

pubkey() = xmlrat_dsig:pubkey()

See xmlrat_dsig:pubkey()

pubkey_algo()

pubkey_algo() = xmlrat_dsig:pubkey_algo()


Generated by EDoc