use of com.github.zhenwei.pkix.util.asn1.cms.ContentInfo in project vnfsdk-validation by onap.
the class SignatureFactoryTest method shouldCreateContentInfoWithProperContentForDecodedPKCS7.
@Test
public void shouldCreateContentInfoWithProperContentForDecodedPKCS7() throws IOException, CmsSignatureLoadingException {
// given
InputStream signatureAsStream = loadFileFromResources();
// when
ContentInfo contentInfo = signatureFactory.createSignature(signatureAsStream.readAllBytes());
// then
final String contentInfoSignature = getContentInfoSignatureAsPem(contentInfo);
assertThat(testPkcs7Signature).contains(contentInfoSignature);
}
Aggregations