Skip to content

Commit

Permalink
Merge branch 'master' into pr/122
Browse files Browse the repository at this point in the history
  • Loading branch information
fincatto committed Apr 28, 2016
2 parents 6f4a778 + 686fa27 commit f5098f5
Show file tree
Hide file tree
Showing 379 changed files with 2,464 additions and 48,252 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,28 @@ public class ConfiguracaoSefaz implements NFeConfig {

@Override
public File getCertificado() throws IOException {
return new File("certificado.pfx");
try (InputStream is = CertificadoUtils.class.getResource("certificado.pfx").openStream()) {
return IOUtils.toByteArray(is);
}
}

@Override
public File getCadeiaCertificados() throws IOException {
return new File("cadeia_certificado.jks");
try (InputStream is = CertificadoUtils.class.getResource("cadeia_certificado.jks").openStream()) {
return IOUtils.toByteArray(is);
}
}

@Override
public String getCertificadoSenha() {
return "senhaDoCertificado";
}

@Override
public String getCadeiaCertificadosSenha() {
return "senhaDaCadeiaDeCertificados";
}

@Override
public NFUnidadeFederativa getCUF() {
return NFUnidadeFederativa.SC;
Expand All @@ -74,6 +83,11 @@ public class ConfiguracaoSefaz implements NFeConfig {
public NFTipoEmissao getTipoEmissao() {
return NFTipoEmissao.EMISSAO_NORMAL;
}

@Override
public String getSSLProtocolo() {
return "TLSv1";
}
}
```

Expand Down
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@
<aggregate>true</aggregate>
<instrumentation>
<excludes>
<exclude>com/fincatto/nfe200/**/*.class</exclude>
<exclude>com/fincatto/nfe310/webservices/gerado/*.class</exclude>
<exclude>com/fincatto/nfe310/webservices/nota/consulta/*.class</exclude>
<exclude>com/fincatto/nfe310/webservices/statusservico/consulta/*.class</exclude>
Expand Down
27 changes: 0 additions & 27 deletions src/main/java/com/fincatto/nfe200/NFEConfig.java

This file was deleted.

126 changes: 0 additions & 126 deletions src/main/java/com/fincatto/nfe200/assinatura/AssinaturaDigital.java

This file was deleted.

45 changes: 0 additions & 45 deletions src/main/java/com/fincatto/nfe200/assinatura/X509KeySelector.java

This file was deleted.

26 changes: 0 additions & 26 deletions src/main/java/com/fincatto/nfe200/classes/NFAmbiente.java

This file was deleted.

Loading

0 comments on commit f5098f5

Please sign in to comment.