Performs signature or verifies signature
Message ANNOTATION is performed as follows:
if (complete policy resolution should happen)
make DynamicPolicyCallback
else
// assumes feature binding component is statically specified -
// including targets and canonicalization algorithm
if (X509CertificateBinding)
resolve certificate - make SignatureKeyCallback
if (X509CertificateBinding has associated SymmetricKeyBinding)
resolve symmetric key - make SymmetricKeyCallback
else
if (X509CertificateBinding has no associated bindings ||
X509CertificateBinding has associated PrivateKeyBinding)
create PrivateKeyBinding if req'd with private key associated with the certificate
else
throw Exception
else
throw Exception
call SignatureProcessor
Message (signature verification) VALIDATION is performed as follows:
if (ADHOC processing mode)
if (complete policy resolution should happen)
make DynamicPolicyCallback
call VerificationProcessor
else
if (POSTHOC or DEFAULT mode)
call VerificationProcessor