@Test public void testMacroBlockSignatureVerification() throws Exception { assertThat(verifier.verify(BLOCK_SIGNATURE, MACRO_BLOCK, CERT_PROVIDER), equalTo(VERIFIED)); }
@Override public CMSSignedDataVerified verify(byte[] signature, Block block, CertificateProvider certificateProvider) throws GeneralSecurityException, IOException { if (!isSupported(block)) { throw new IllegalArgumentException("Unsupported block [" + block.getClass().getName() + "]."); } return verifier.verify(signature, dumper.dump(block), certificateProvider); }
MacroBlockSignatureVerifier implements BlockSignatureVerifier { @Override public CMSSignedDataVerified verify(byte[] signature, Block block, CertificateProvider certificateProvider) throws GeneralSecurityException, IOException { if (!isSupported(block)) { throw new IllegalArgumentException("Unsupported block [" + block.getClass().getName() + "]."); } return verifier.verify(signature, dumper.dump(block), certificateProvider); } }
MacroBlockSignatureVerifier implements BlockSignatureVerifier { @Override public CMSSignedDataVerified verify(byte[] signature, Block block, CertificateProvider certificateProvider) throws GeneralSecurityException, IOException { if (!isSupported(block)) { throw new IllegalArgumentException("Unsupported block [" + block.getClass().getName() + "]."); } return verifier.verify(signature, dumper.dump(block), certificateProvider); }  }
MacroBlockSignatureVerifier implements BlockSignatureVerifier { @Override public CMSSignedDataVerified verify(byte[] signature, Block block, CertificateProvider certificateProvider) throws GeneralSecurityException, IOException { if (!isSupported(block)) { throw new IllegalArgumentException("Unsupported block [" + block.getClass().getName() + "]."); } return verifier.verify(signature, dumper.dump(block), certificateProvider); }  @Override CMSSignedDataVerified verify(byte[] signature, Block block, CertificateProvider certificateProvider); @Override boolean isSupported(Block block); }
MacroBlockSignatureVerifier implements BlockSignatureVerifier { @Override public CMSSignedDataVerified verify(byte[] signature, Block block, CertificateProvider certificateProvider) throws GeneralSecurityException, IOException { if (!isSupported(block)) { throw new IllegalArgumentException("Unsupported block [" + block.getClass().getName() + "]."); } return verifier.verify(signature, dumper.dump(block), certificateProvider); }  @Override CMSSignedDataVerified verify(byte[] signature, Block block, CertificateProvider certificateProvider); @Override boolean isSupported(Block block);  }