@Role
public interface BlockSignatureVerifier
Block
.Modifier and Type | Method and Description |
---|---|
boolean |
isSupported(org.xwiki.rendering.block.Block block)
Check if the given block can be supported by this signer.
|
org.xwiki.crypto.signer.param.CMSSignedDataVerified |
verify(byte[] signature,
org.xwiki.rendering.block.Block block,
org.xwiki.crypto.pkix.CertificateProvider certificateProvider)
Verify a signature.
|
org.xwiki.crypto.signer.param.CMSSignedDataVerified verify(byte[] signature, org.xwiki.rendering.block.Block block, org.xwiki.crypto.pkix.CertificateProvider certificateProvider) throws GeneralSecurityException, IOException
signature
- a signature produced by this signer.block
- a rendering block to sign.certificateProvider
- provider of certificates.GeneralSecurityException
- on signature verification operation error.IOException
- on encoding/decoding operation error.boolean isSupported(org.xwiki.rendering.block.Block block)
block
- the block to check.Copyright © 2004–2021 XWiki. All rights reserved.