Package org.sharpsw.crlserver.data

Examples of org.sharpsw.crlserver.data.CRLDownloadAddress


    issuer.setId("1111111111111111111111111111111111111111");
    issuer.setName("CN=AC Secretaria da Receita Federal do Brasil, O=ICP-Brasil, C=BR");
    issuer.setDescription("Secretaria da Receita Federal do Brasil");
   
    CRLDownloadAddressCompositePrimaryKey key = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url1.com/test.crl");
    CRLDownloadAddress address = new CRLDownloadAddress(key);
    address.setDescription("URL de teste 1");
   
    this.service.delete(address);
   
    StringBuffer dataSetFile = new StringBuffer();
    dataSetFile.append("config").append(File.separator).append("CRLDownloadAddressDAO").append(File.separator).append("testDeleteCrlDownloadAddressOK.xml");
View Full Code Here


    Assertion.assertEquals(expectedSortedTable, actualSortedTable);
  }
 
  @Test(expected = IllegalArgumentException.class)
  public void testDeleteNullCrlDownloadAddressFail() throws DeleteException {
    CRLDownloadAddress addr = null;
    this.service.delete(addr);
  }
View Full Code Here

    issuer.setId("1111111111111111111111111111111111111111");
    issuer.setName("CN=AC Secretaria da Receita Federal do Brasil, O=ICP-Brasil, C=BR");
    issuer.setDescription("Secretaria da Receita Federal do Brasil");
   
    CRLDownloadAddressCompositePrimaryKey key = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url1.com/test.crl");
    CRLDownloadAddress address = new CRLDownloadAddress(key);
    address.setDescription("URL de teste 1");
   
    CRLDownloadAddressCompositePrimaryKey key2 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url3.com/test.crl");
    CRLDownloadAddress address2 = new CRLDownloadAddress(key2);
    address2.setDescription("URL de teste 3");
   
    addrs.add(address);
    addrs.add(address2);
   
    this.service.delete(addrs);
View Full Code Here

    issuer.setId("1111111111111111111111111111111111111111");
    issuer.setName("CN=AC Secretaria da Receita Federal do Brasil, O=ICP-Brasil, C=BR");
    issuer.setDescription("Secretaria da Receita Federal do Brasil");
   
    CRLDownloadAddressCompositePrimaryKey key = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.teste1.com.br/teste.crl");
    CRLDownloadAddress address = new CRLDownloadAddress(key);
    address.setDescription("URL de teste");     

    this.service.save(address);
   
    StringBuffer dataSetFile = new StringBuffer();
    dataSetFile.append("config").append(File.separator).append("CRLDownloadAddressDAO").append(File.separator).append("testAddCrlDownloadAddressOK.xml");
View Full Code Here

    Assertion.assertEquals(expectedTable, filteredActualTable);
  }
 
  @Test(expected = IllegalArgumentException.class)
  public void testAddNullCrlDownloadAddressFail() throws Exception {
    CRLDownloadAddress entity = null;
    this.service.save(entity);
  }
View Full Code Here

    issuer.setId("1111111111111111111111111111111111111111");
    issuer.setName("CN=AC Secretaria da Receita Federal do Brasil, O=ICP-Brasil, C=BR");
    issuer.setDescription("Secretaria da Receita Federal do Brasil");
   
    CRLDownloadAddressCompositePrimaryKey key1 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url1.com/test.crl");
    CRLDownloadAddress addr1 = new CRLDownloadAddress(key1);
    addr1.setDescription("URL de teste 1");
   
    addresses.add(addr1);
   
    CRLDownloadAddressCompositePrimaryKey key2 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url2.com/test.crl");
    CRLDownloadAddress addr2 = new CRLDownloadAddress(key2);
    addr2.setDescription("URL de teste 2");
   
    addresses.add(addr2);
   
    this.service.save(addresses);
   
View Full Code Here

    issuer.setId("1111111111111111111111111111111111111111");
    issuer.setName("CN=AC Secretaria da Receita Federal do Brasil, O=ICP-Brasil, C=BR");
    issuer.setDescription("Secretaria da Receita Federal do Brasil");
   
    CRLDownloadAddressCompositePrimaryKey key1 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url1.com/test.crl");
    CRLDownloadAddress addr1 = new CRLDownloadAddress(key1);
    addr1.setDescription("URL de teste 1");
   
    CRLDownloadAddressCompositePrimaryKey key2 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url2.com/test.crl");
    CRLDownloadAddress addr2 = new CRLDownloadAddress(key2);
    addr2.setDescription("URL de teste 2");   
   
    CRLDownloadAddressCompositePrimaryKey key3 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url3.com/test.crl");
    CRLDownloadAddress addr3 = new CRLDownloadAddress(key3);
    addr3.setDescription("URL de teste 3");   
   
   
    CRLDownloadAddressCompositePrimaryKey key4 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url4.com/test.crl");
    CRLDownloadAddress addr4 = new CRLDownloadAddress(key4);
    addr4.setDescription("URL de teste 4");   
   
    CRLDownloadAddressCompositePrimaryKey key5 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url5.com/test.crl");
    CRLDownloadAddress addr5 = new CRLDownloadAddress(key5);
    addr5.setDescription("URL de teste 5")
   
   
    addresses.add(addr1);
    addresses.add(addr2);
    addresses.add(addr3);
View Full Code Here

    issuer.setId("1111111111111111111111111111111111111111");
    issuer.setName("CN=AC Secretaria da Receita Federal do Brasil, O=ICP-Brasil, C=BR");
    issuer.setDescription("Secretaria da Receita Federal do Brasil");
   
    CRLDownloadAddressCompositePrimaryKey key1 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url1.com/test.crl");
    CRLDownloadAddress addr1 = new CRLDownloadAddress(key1);
    addr1.setDescription("URL de teste 1");
   
    CRLDownloadAddressCompositePrimaryKey key2 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url2.com/test.crl");
    CRLDownloadAddress addr2 = new CRLDownloadAddress(key2);
    addr2.setDescription("URL de teste 2");   
   
    CRLDownloadAddressCompositePrimaryKey key3 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url3.com/test.crl");
    CRLDownloadAddress addr3 = new CRLDownloadAddress(key3);
    addr3.setDescription("URL de teste 3");   
   
   
    CRLDownloadAddressCompositePrimaryKey key4 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url4.com/test.crl");
    CRLDownloadAddress addr4 = new CRLDownloadAddress(key4);
    addr4.setDescription("URL de teste 4");   
   
    CRLDownloadAddressCompositePrimaryKey key5 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url5.com/test.crl");
    CRLDownloadAddress addr5 = new CRLDownloadAddress(key5);
    addr5.setDescription("URL de teste 5")
   
    CRLDownloadAddressCompositePrimaryKey key6 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url6.com/test.crl");
    CRLDownloadAddress addr6 = new CRLDownloadAddress(key6);
    addr6.setDescription("URL de teste 6")
   
    addresses.add(addr1);
    addresses.add(addr2);
    addresses.add(addr3);
    addresses.add(addr4);
View Full Code Here

    issuer.setId("1111111111111111111111111111111111111111");
    issuer.setName("CN=AC Secretaria da Receita Federal do Brasil, O=ICP-Brasil, C=BR");
    issuer.setDescription("Secretaria da Receita Federal do Brasil");

    CRLDownloadAddressCompositePrimaryKey key = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url.com");
    CRLDownloadAddress address = new CRLDownloadAddress(key);
   
    this.service.save(address);
    this.service.save(address);
  }
View Full Code Here

    issuer.setId("1111111111111111111111111111111111111111");
    issuer.setName("CN=AC Secretaria da Receita Federal do Brasil, O=ICP-Brasil, C=BR");
    issuer.setDescription("Secretaria da Receita Federal do Brasil");
   
    CRLDownloadAddressCompositePrimaryKey key1 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url1.com/test.crl");
    CRLDownloadAddress addr1 = new CRLDownloadAddress(key1);
    addr1.setDescription("URL de teste 1");
   
    CRLDownloadAddressCompositePrimaryKey key2 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url2.com/test.crl");
    CRLDownloadAddress addr2 = new CRLDownloadAddress(key2);
    addr2.setDescription("URL de teste 2");   
   
    CRLDownloadAddressCompositePrimaryKey key3 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url3.com/test.crl");
    CRLDownloadAddress addr3 = new CRLDownloadAddress(key3);
    addr3.setDescription("URL de teste 3");   
   
   
    CRLDownloadAddressCompositePrimaryKey key4 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url4.com/test.crl");
    CRLDownloadAddress addr4 = new CRLDownloadAddress(key4);
    addr4.setDescription("URL de teste 4");   
   
    CRLDownloadAddressCompositePrimaryKey key5 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url5.com/test.crl");
    CRLDownloadAddress addr5 = new CRLDownloadAddress(key5);
    addr5.setDescription("URL de teste 5")
   
    CRLDownloadAddressCompositePrimaryKey key6 = new CRLDownloadAddressCompositePrimaryKey(issuer, "http://www.url5.com/test.crl");
    CRLDownloadAddress addr6 = new CRLDownloadAddress(key6);
    addr6.setDescription("URL de teste 6")
   
    addresses.add(addr1);
    addresses.add(addr2);
    addresses.add(addr3);
    addresses.add(addr4);
View Full Code Here

TOP

Related Classes of org.sharpsw.crlserver.data.CRLDownloadAddress

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.