public interface SignableMacro
Modifier and Type | Method and Description |
---|---|
void |
sign(org.xwiki.rendering.block.Block block,
org.xwiki.crypto.signer.param.CMSSignedDataGeneratorParameters parameters)
Sign the given macro block.
|
org.xwiki.crypto.signer.param.CMSSignedDataVerified |
verify(org.xwiki.rendering.block.Block block,
org.xwiki.crypto.pkix.CertificateProvider certificateProvider)
Verify signature of the given macro block.
|
void sign(org.xwiki.rendering.block.Block block, org.xwiki.crypto.signer.param.CMSSignedDataGeneratorParameters parameters) throws MacroSignatureException
block
- the block to sign. This block should have a known content source and could be either
a MacroBlock
or
a MacroMarkerBlock
.parameters
- the signature generation parameters.MacroSignatureException
- on error.org.xwiki.crypto.signer.param.CMSSignedDataVerified verify(org.xwiki.rendering.block.Block block, org.xwiki.crypto.pkix.CertificateProvider certificateProvider) throws MacroSignatureException
block
- the block to verify. This block should have a known content source and could be either
a MacroBlock
or
a MacroMarkerBlock
.certificateProvider
- a certificate provider providing available certificates.MacroSignatureException
- on error.Copyright © 2004–2021 XWiki. All rights reserved.