use of org.apache.xml.security.keys.content.x509.XMLX509Digest in project santuario-java by apache.
the class XMLX509DigestTest method testDigestOnConstructionWithCert.
@org.junit.Test
public void testDigestOnConstructionWithCert() throws Exception {
XMLX509Digest x509Digest = new XMLX509Digest(documentBuilder.newDocument(), certControl, algorithmURIControl);
assertEquals(algorithmURIControl, x509Digest.getAlgorithm());
assertArrayEquals(digestControl, x509Digest.getDigestBytes());
}
Aggregations