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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations