@Role
public interface BlockSignatureGenerator
Block
.Modifier and Type | Method and Description |
---|---|
byte[] |
generate(org.xwiki.rendering.block.Block block,
org.xwiki.crypto.signer.param.CMSSignedDataGeneratorParameters params)
Generate a signature.
|
boolean |
isSupported(org.xwiki.rendering.block.Block block)
Check if the given block can be supported by this signer.
|
byte[] generate(org.xwiki.rendering.block.Block block, org.xwiki.crypto.signer.param.CMSSignedDataGeneratorParameters params) throws GeneralSecurityException, IOException
block
- a rendering block to sign.params
- generator parameters.GeneralSecurityException
- on signature operation error.IOException
- on encoding error.boolean isSupported(org.xwiki.rendering.block.Block block)
block
- the block to check.Copyright © 2004–2021 XWiki. All rights reserved.