Search in sources :

Example 26 with ResourceResolverSpi

use of org.apache.xml.security.utils.resolver.ResourceResolverSpi in project santuario-java by apache.

the class IBMTest method test_enveloped_dsa.

/**
 * Method test_enveloped_dsa
 *
 * @throws Exception
 */
@org.junit.Test
public void test_enveloped_dsa() throws Exception {
    if (!runTests) {
        return;
    }
    String filename = kentsDir + "enveloped-dsa.sig";
    ResourceResolverSpi resolver = null;
    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)

Example 27 with ResourceResolverSpi

use of org.apache.xml.security.utils.resolver.ResourceResolverSpi in project santuario-java by apache.

the class IBMTest method test_enveloping_dsa.

/**
 * Method test_enveloping_dsa
 *
 * @throws Exception
 */
@org.junit.Test
public void test_enveloping_dsa() throws Exception {
    if (!runTests) {
        return;
    }
    String filename = kentsDir + "enveloping-dsa.sig";
    ResourceResolverSpi resolver = null;
    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)

Example 28 with ResourceResolverSpi

use of org.apache.xml.security.utils.resolver.ResourceResolverSpi in project santuario-java by apache.

the class IBMTest method test_enveloped_rsa.

/**
 * Method test_enveloped_rsa
 *
 * @throws Exception
 */
@org.junit.Test
public void test_enveloped_rsa() throws Exception {
    if (!runTests) {
        return;
    }
    String filename = kentsDir + "enveloped-rsa.sig";
    ResourceResolverSpi resolver = null;
    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)

Example 29 with ResourceResolverSpi

use of org.apache.xml.security.utils.resolver.ResourceResolverSpi in project santuario-java by apache.

the class IBMTest method test_detached_rsa.

/**
 * Method test_detached_rsa
 *
 * @throws Exception
 */
@org.junit.Test
public void test_detached_rsa() throws Exception {
    if (!runTests) {
        return;
    }
    String filename = kentsDir + "detached-rsa.sig";
    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 30 with ResourceResolverSpi

use of org.apache.xml.security.utils.resolver.ResourceResolverSpi in project santuario-java by apache.

the class RSASecurityTest method test_enveloping.

@org.junit.Test
public void test_enveloping() throws Exception {
    String filename = blakesDir + "certj201_enveloping.xml";
    boolean followManifests = false;
    ResourceResolverSpi resolver = null;
    boolean verify = this.verify(filename, resolver, followManifests);
    if (!verify) {
        LOG.error("Verification failed for " + filename);
    }
    assertTrue(filename, verify);
}
Also used : ResourceResolverSpi(org.apache.xml.security.utils.resolver.ResourceResolverSpi)

Aggregations

ResourceResolverSpi (org.apache.xml.security.utils.resolver.ResourceResolverSpi)39 OfflineResolver (org.apache.xml.security.test.dom.utils.resolver.OfflineResolver)21 XMLSignatureException (org.apache.xml.security.signature.XMLSignatureException)3 File (java.io.File)1 ResolverAnonymous (org.apache.xml.security.utils.resolver.implementations.ResolverAnonymous)1