Search in sources :

Example 6 with OfflineResolver

use of org.apache.xml.security.test.dom.utils.resolver.OfflineResolver in project santuario-java by apache.

the class BaltimoreTest method test_twenty_three_enveloping_dsa.

/**
 * Method test_twenty_three_enveloping_dsa
 *
 * @throws Exception
 */
@org.junit.Test
public void test_twenty_three_enveloping_dsa() throws Exception {
    String filename = merlinsDir23 + "signature-enveloping-dsa.xml";
    ResourceResolverSpi resolver = new OfflineResolver();
    boolean followManifests = false;
    boolean verify = false;
    try {
        verify = this.verify(filename, resolver, followManifests);
    } catch (RuntimeException ex) {
        LOG.error("Verification crashed for " + filename);
        throw ex;
    }
    if (!verify) {
        LOG.error("Verification failed for " + filename);
    }
    assertTrue(filename, verify);
}
Also used : ResourceResolverSpi(org.apache.xml.security.utils.resolver.ResourceResolverSpi) OfflineResolver(org.apache.xml.security.test.dom.utils.resolver.OfflineResolver)

Example 7 with OfflineResolver

use of org.apache.xml.security.test.dom.utils.resolver.OfflineResolver in project santuario-java by apache.

the class BaltimoreTest method test_twenty_three_enveloping_rsa.

/**
 * Method test_twenty_three_enveloping_rsa
 *
 * @throws Exception
 */
@org.junit.Test
public void test_twenty_three_enveloping_rsa() throws Exception {
    String filename = merlinsDir23 + "signature-enveloping-rsa.xml";
    ResourceResolverSpi resolver = new OfflineResolver();
    boolean followManifests = false;
    boolean verify = false;
    try {
        verify = this.verify(filename, resolver, followManifests);
    } catch (RuntimeException ex) {
        LOG.error("Verification crashed for " + filename);
        throw ex;
    }
    if (!verify) {
        LOG.error("Verification failed for " + filename);
    }
    assertTrue(filename, verify);
}
Also used : ResourceResolverSpi(org.apache.xml.security.utils.resolver.ResourceResolverSpi) OfflineResolver(org.apache.xml.security.test.dom.utils.resolver.OfflineResolver)

Example 8 with OfflineResolver

use of org.apache.xml.security.test.dom.utils.resolver.OfflineResolver in project santuario-java by apache.

the class BaltimoreTest method test_fifteen_enveloping_dsa.

/**
 * Method test_fifteen_enveloping_dsa
 *
 * @throws Exception
 */
@org.junit.Test
public void test_fifteen_enveloping_dsa() throws Exception {
    String filename = merlinsDir15 + "signature-enveloping-dsa.xml";
    ResourceResolverSpi resolver = new OfflineResolver();
    boolean followManifests = false;
    boolean verify = false;
    try {
        verify = this.verify(filename, resolver, followManifests);
    } catch (RuntimeException ex) {
        LOG.error("Verification crashed for " + filename);
        throw ex;
    }
    if (!verify) {
        LOG.error("Verification failed for " + filename);
    }
    assertTrue(filename, verify);
}
Also used : ResourceResolverSpi(org.apache.xml.security.utils.resolver.ResourceResolverSpi) OfflineResolver(org.apache.xml.security.test.dom.utils.resolver.OfflineResolver)

Example 9 with OfflineResolver

use of org.apache.xml.security.test.dom.utils.resolver.OfflineResolver in project santuario-java by apache.

the class BaltimoreTest method test_twenty_three_external_dsa.

/**
 * Method test_twenty_three_external_dsa
 *
 * @throws Exception
 */
@org.junit.Test
public void test_twenty_three_external_dsa() throws Exception {
    String filename = merlinsDir23 + "signature-external-dsa.xml";
    ResourceResolverSpi resolver = new OfflineResolver();
    boolean followManifests = false;
    boolean verify = false;
    try {
        verify = this.verify(filename, resolver, followManifests);
    } catch (RuntimeException ex) {
        LOG.error("Verification crashed for " + filename);
        throw ex;
    }
    if (!verify) {
        LOG.error("Verification failed for " + filename);
    }
    assertTrue(filename, verify);
}
Also used : ResourceResolverSpi(org.apache.xml.security.utils.resolver.ResourceResolverSpi) OfflineResolver(org.apache.xml.security.test.dom.utils.resolver.OfflineResolver)

Example 10 with OfflineResolver

use of org.apache.xml.security.test.dom.utils.resolver.OfflineResolver in project santuario-java by apache.

the class BaltimoreTest method test_fifteen_external_dsa.

/**
 * Method test_fifteen_external_dsa
 *
 * @throws Exception
 */
@org.junit.Test
public void test_fifteen_external_dsa() throws Exception {
    String filename = merlinsDir15 + "signature-external-dsa.xml";
    ResourceResolverSpi resolver = new OfflineResolver();
    boolean followManifests = false;
    boolean verify = false;
    try {
        verify = this.verify(filename, resolver, followManifests);
    } catch (RuntimeException ex) {
        LOG.error("Verification crashed for " + filename);
        throw ex;
    }
    if (!verify) {
        LOG.error("Verification failed for " + filename);
    }
    assertTrue(filename, verify);
}
Also used : ResourceResolverSpi(org.apache.xml.security.utils.resolver.ResourceResolverSpi) OfflineResolver(org.apache.xml.security.test.dom.utils.resolver.OfflineResolver)

Aggregations

OfflineResolver (org.apache.xml.security.test.dom.utils.resolver.OfflineResolver)23 ResourceResolverSpi (org.apache.xml.security.utils.resolver.ResourceResolverSpi)21 XMLSignatureException (org.apache.xml.security.signature.XMLSignatureException)3