This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package br.com.risingforce.geradores; | |
| import org.apache.commons.codec.digest.DigestUtils; | |
| /** | |
| * <b>Classe que gera uma String hash, padrão SHA-256, SHA-384, SHA1-HEX.</b> | |
| * | |
| * @author Dilnei Cunha. | |
| */ | |
| public class HexEncoding { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package br.com.risingforce.geradores; | |
| import java.security.MessageDigest; | |
| import java.security.NoSuchAlgorithmException; | |
| import org.apache.commons.codec.binary.Base64; | |
| /** | |
| * <b>Classe responsável por criptografar com SHA Base46.</b> | |
| * | |
| * @author Dilnei Cunha. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package br.com.risingforce.geradores; | |
| /** | |
| * <b>Contém metodos utilitários genéricos para geração de módulo11.</b> | |
| * | |
| * @author Dilnei Cunha. | |
| */ | |
| public final class UtilsModulo11 { | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package br.com.risingforce.geradores; | |
| import java.security.MessageDigest; | |
| import java.security.NoSuchAlgorithmException; | |
| /** | |
| * <b>Classe responsável por gerar um hash MD5.</b> | |
| * | |
| * @author Dilnei Cunha. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package br.com.risingforce.transforms; | |
| import java.io.StringWriter; | |
| import java.io.Writer; | |
| import javax.xml.bind.JAXBContext; | |
| import javax.xml.bind.Marshaller; | |
| import javax.xml.parsers.DocumentBuilder; | |
| import javax.xml.parsers.DocumentBuilderFactory; | |
| import javax.xml.transform.Result; | |
| import javax.xml.transform.stream.StreamResult; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package br.com.risingforce.transforms; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.Reader; | |
| import java.io.StringReader; | |
| import javax.xml.bind.JAXBContext; | |
| import javax.xml.bind.Unmarshaller; | |
| import javax.xml.parsers.DocumentBuilder; | |
| import javax.xml.parsers.DocumentBuilderFactory; | |
| import javax.xml.transform.Result; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package br.com.risingforce.helper; | |
| import java.text.Normalizer; | |
| /** | |
| * <b>Classe que contém métodos para tratamento de encoding.</b> | |
| * | |
| * @author Dilnei Cunha. | |
| */ | |
| public class UTF8 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package br.com.risingforce.converters; | |
| import java.io.ByteArrayInputStream; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| /** | |
| * <b>Transforma uma String para um InputStream.</b> | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package br.com.app.model.entity.listener; | |
| import javax.annotation.Resource; | |
| import javax.annotation.security.PermitAll; | |
| import javax.ejb.LocalBean; | |
| import javax.ejb.SessionContext; | |
| import javax.ejb.Stateless; | |
| /** | |
| * Responsável por pegar o usuário do JAAS. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package br.com.app.model.entity.listener; | |
| import javax.ejb.EJB; | |
| import javax.persistence.PrePersist; | |
| import javax.persistence.PreUpdate; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import net.vidageek.mirror.dsl.Mirror; |