Commit ab777942cee9ac1b1da98de8dcdbc859d487f363
1 parent
c47016c3
Remove depencias dos pacotes internos da ANS
Substitui a depencia que cria um hash SHA256 no projeto
Showing
3 changed files
with
4 additions
and
10 deletions
Show diff stats
.classpath
| ... | ... | @@ -21,6 +21,7 @@ |
| 21 | 21 | <attributes> |
| 22 | 22 | <attribute name="maven.pomderived" value="true"/> |
| 23 | 23 | <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> |
| 24 | + <attribute name="owner.project.facets" value="jboss.m2"/> | |
| 24 | 25 | </attributes> |
| 25 | 26 | </classpathentry> |
| 26 | 27 | <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"> | ... | ... |
pom.xml
| ... | ... | @@ -207,14 +207,7 @@ |
| 207 | 207 | <groupId>com.google.code.gson</groupId> |
| 208 | 208 | <artifactId>gson</artifactId> |
| 209 | 209 | <version>2.6.2</version> |
| 210 | - </dependency> | |
| 211 | - | |
| 212 | - <!-- HASH --> | |
| 213 | - <dependency> | |
| 214 | - <groupId>br.gov.ans.commons</groupId> | |
| 215 | - <artifactId>ans-commons-security</artifactId> | |
| 216 | - <version>2.0</version> | |
| 217 | - </dependency> | |
| 210 | + </dependency> | |
| 218 | 211 | |
| 219 | 212 | <!-- PDF --> |
| 220 | 213 | <dependency> | ... | ... |
src/main/java/br/gov/ans/integracao/sei/rest/DocumentoResource.java
| ... | ... | @@ -38,7 +38,7 @@ import org.apache.commons.io.IOUtils; |
| 38 | 38 | import org.apache.commons.lang3.StringUtils; |
| 39 | 39 | import org.jboss.logging.Logger; |
| 40 | 40 | |
| 41 | -import br.gov.ans.commons.security.crypt.HashUtils; | |
| 41 | +import br.gov.ans.integracao.sei.utils.HashUtils; | |
| 42 | 42 | import br.gov.ans.dao.DAO; |
| 43 | 43 | import br.gov.ans.integracao.sei.client.Documento; |
| 44 | 44 | import br.gov.ans.integracao.sei.client.RetornoConsultaDocumento; |
| ... | ... | @@ -276,7 +276,7 @@ public class DocumentoResource { |
| 276 | 276 | public String calcularHashDocumento(String input){ |
| 277 | 277 | try { |
| 278 | 278 | logger.debug(messages.getMessage("hash.em.geracao")); |
| 279 | - return HashUtils.toSHA256(input, null); | |
| 279 | + return HashUtils.SHA256.encrypt(input, null); | |
| 280 | 280 | } catch (Exception ex) { |
| 281 | 281 | logger.error(messages.getMessage("erro.calculo.hash")); |
| 282 | 282 | logger.debug(ex, ex); | ... | ... |