├── assinador_1.png
├── assinador_2.png
├── assinador_3.png
├── parent
├── .gitignore
└── certificate
│ └── .gitignore
├── impl
├── core
│ ├── .gitignore
│ └── src
│ │ └── main
│ │ ├── resources
│ │ └── META-INF
│ │ │ └── MANIFEST.MF
│ │ ├── assembly
│ │ ├── src.xml
│ │ └── bin.xml
│ │ └── java
│ │ └── br
│ │ └── gov
│ │ └── frameworkdemoiselle
│ │ └── certificate
│ │ ├── validator
│ │ ├── package-info.java
│ │ └── PeriodValidator.java
│ │ ├── util
│ │ ├── package-info.java
│ │ ├── CertificateUtilException.java
│ │ └── ZipBytes.java
│ │ ├── extension
│ │ ├── package-info.java
│ │ ├── DefaultExtensionType.java
│ │ ├── ICPBrasilExtensionType.java
│ │ ├── DefaultExtension.java
│ │ └── ICPBrasilExtension.java
│ │ ├── package-info.java
│ │ ├── IValidator.java
│ │ ├── IOIDExtensionLoader.java
│ │ ├── ca
│ │ ├── provider
│ │ │ ├── ProviderCA.java
│ │ │ └── ProviderSignaturePolicyRootCA.java
│ │ └── manager
│ │ │ └── CAManagerException.java
│ │ ├── keystore
│ │ └── loader
│ │ │ ├── InvalidPinException.java
│ │ │ ├── PKCS11NotFoundException.java
│ │ │ ├── DriverNotAvailableException.java
│ │ │ └── KeyStoreLoader.java
│ │ ├── CertificateException.java
│ │ ├── OIDExtension.java
│ │ └── repository
│ │ ├── CRLRepository.java
│ │ ├── CRLRepositoryFactory.java
│ │ ├── CRLRepositoryException.java
│ │ └── CRLOldCertificateException.java
├── criptography
│ ├── .gitignore
│ └── src
│ │ └── main
│ │ ├── assembly
│ │ ├── src.xml
│ │ └── bin.xml
│ │ └── java
│ │ └── br
│ │ └── gov
│ │ └── frameworkdemoiselle
│ │ └── certificate
│ │ └── criptography
│ │ └── CriptographyException.java
├── applet
│ ├── .gitignore
│ └── src
│ │ └── main
│ │ ├── resources
│ │ └── security-applet-default.properties
│ │ ├── assembly
│ │ ├── src.xml
│ │ └── bin.xml
│ │ └── java
│ │ └── br
│ │ └── gov
│ │ └── frameworkdemoiselle
│ │ └── certificate
│ │ └── applet
│ │ └── factory
│ │ └── FactoryException.java
├── desktop
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── java
│ │ │ │ └── br
│ │ │ │ │ └── gov
│ │ │ │ │ └── frameworkdemoiselle
│ │ │ │ │ └── certificate
│ │ │ │ │ └── ui
│ │ │ │ │ ├── util
│ │ │ │ │ ├── AuthorizationException.java
│ │ │ │ │ └── ConectionException.java
│ │ │ │ │ ├── factory
│ │ │ │ │ ├── FactoryException.java
│ │ │ │ │ └── FrameExecuteFactory.java
│ │ │ │ │ └── action
│ │ │ │ │ ├── FrameExecute.java
│ │ │ │ │ └── AbstractFrameExecute.java
│ │ │ └── resources
│ │ │ │ └── desktop-config-default.properties
│ │ └── test
│ │ │ └── java
│ │ │ └── br
│ │ │ └── gov
│ │ │ └── serpro
│ │ │ └── certificate
│ │ │ └── ui
│ │ │ └── rest
│ │ │ └── TestDownloadRest.java
│ └── pom.xml
├── signer
│ ├── .gitignore
│ └── src
│ │ └── main
│ │ ├── resources
│ │ ├── trustedca
│ │ │ ├── CertificadoACRaiz.crt
│ │ │ ├── ICP-Brasil.crt
│ │ │ ├── serprov1.cer
│ │ │ ├── raiz.brasil.cer
│ │ │ ├── icpbrasilv2.cer
│ │ │ └── ICP-Brasilv2.crt
│ │ └── META-INF
│ │ │ └── services
│ │ │ └── br.gov.frameworkdemoiselle.certificate.signer.pkcs7.SignaturePolicy
│ │ ├── java
│ │ └── br
│ │ │ └── gov
│ │ │ └── frameworkdemoiselle
│ │ │ └── certificate
│ │ │ └── signer
│ │ │ ├── pkcs7
│ │ │ ├── bc
│ │ │ │ ├── CMSAbsentContent.java
│ │ │ │ └── attribute
│ │ │ │ │ ├── BCSignedAttribute.java
│ │ │ │ │ ├── BCUnsignedAttribute.java
│ │ │ │ │ ├── BCMessageDigest.java
│ │ │ │ │ └── BCSigningTime.java
│ │ │ ├── attribute
│ │ │ │ ├── SignedAttribute.java
│ │ │ │ ├── UnsignedAttribute.java
│ │ │ │ ├── SigPolicyQualifierInfo.java
│ │ │ │ ├── SigningCertificate.java
│ │ │ │ ├── MessageDigest.java
│ │ │ │ ├── FileName.java
│ │ │ │ └── Attribute.java
│ │ │ └── SignaturePolicyException.java
│ │ │ ├── pkcs1
│ │ │ └── PKCS1Signer.java
│ │ │ └── SignerException.java
│ │ └── assembly
│ │ ├── src.xml
│ │ └── bin.xml
├── ca-icp-brasil
│ ├── .gitignore
│ └── src
│ │ └── main
│ │ ├── resources
│ │ ├── icpbrasil.jks
│ │ ├── trustedca
│ │ │ ├── CertificadoACRaiz.crt
│ │ │ ├── ICP-Brasil.crt
│ │ │ ├── ICP-Brasilv2.crt
│ │ │ └── ICP-Brasilv5.crt
│ │ └── META-INF
│ │ │ └── services
│ │ │ ├── br.gov.frameworkdemoiselle.certificate.ca.provider.ProviderCA
│ │ │ └── br.gov.frameworkdemoiselle.certificate.ca.provider.ProviderSignaturePolicyRootCA
│ │ ├── assembly
│ │ ├── src.xml
│ │ └── bin.xml
│ │ └── java
│ │ └── br
│ │ └── gov
│ │ └── frameworkdemoiselle
│ │ └── certificate
│ │ └── ca
│ │ └── provider
│ │ └── impl
│ │ └── ICPBrasilProviderCAException.java
└── ca-icp-brasil-homologacao
│ ├── .gitignore
│ └── src
│ └── main
│ ├── resources
│ ├── trustedca
│ │ ├── IntermediariaHOMv2.cer
│ │ ├── serproACFv4Homolog.cer
│ │ ├── serproACFv5Homolog.cer
│ │ ├── ACSERPROHOMOLOGACAO.crt
│ │ ├── RaizdeHomologacaoSERPRO.cer
│ │ ├── ACSERPROACFv3Homologacao.cer
│ │ ├── ACSERPRORFBv3Homologacao.cer
│ │ ├── RaizdeHomologacaoSERPROV5.cer
│ │ ├── AutoridadeCertificadoraSERPROv6HOM.crt
│ │ ├── AutoridadeCertificadoraRaizHomdoSERPRO.crt
│ │ ├── AutoridadeCertificadoraRaizBrasileirav2.crt
│ │ ├── AutoridadeCertificadoraSERPRORFBSSL_Hom.crt
│ │ └── AutoridadeCertificadoradoSERPROFinalv5-Hom.crt
│ └── META-INF
│ │ └── services
│ │ ├── br.gov.frameworkdemoiselle.certificate.ca.provider.ProviderCA
│ │ └── br.gov.frameworkdemoiselle.certificate.ca.provider.ProviderSignaturePolicyRootCA
│ ├── assembly
│ ├── src.xml
│ └── bin.xml
│ └── java
│ └── br
│ └── gov
│ └── frameworkdemoiselle
│ └── certificate
│ └── ca
│ └── provider
│ └── hom
│ ├── ADRBCMS_1_1_RootCAs.java
│ ├── ADRBCMS_2_0_RootCAs.java
│ └── ADRBCMS_2_1_RootCAs.java
├── documentation
├── reference
│ ├── .gitignore
│ └── pt-BR
│ │ ├── images
│ │ ├── tela01.png
│ │ ├── tela02.png
│ │ ├── tela03.png
│ │ ├── tela04.png
│ │ ├── tela05.png
│ │ ├── tela06.png
│ │ ├── tela07.png
│ │ ├── tela08.png
│ │ ├── tela09.png
│ │ ├── tela10.png
│ │ ├── assinador_1.png
│ │ ├── assinador_2.png
│ │ ├── assinador_3.png
│ │ ├── keystore_tela01.png
│ │ ├── keystore_tela02.png
│ │ ├── keystore_tela03.png
│ │ └── keystore_tela04.png
│ │ ├── authorgroup.xml
│ │ ├── bookinfo.xml
│ │ ├── ca-icp-brasil
│ │ ├── master.xml
│ │ └── configuracao.xml
│ │ ├── ca-icp-brasil-homologacao
│ │ ├── master.xml
│ │ └── configuracao.xml
│ │ ├── signer
│ │ ├── master.xml
│ │ └── configuracao.xml
│ │ ├── core
│ │ ├── master.xml
│ │ └── configuracao.xml
│ │ ├── desktop
│ │ └── master.xml
│ │ ├── applet
│ │ ├── master.xml
│ │ └── funcionalidades.xml
│ │ └── criptography
│ │ └── master.xml
└── .gitignore
├── example
├── assinadorweb-example
│ ├── src
│ │ └── main
│ │ │ ├── webapp
│ │ │ ├── drivers.config
│ │ │ ├── bcmail-jdk15-1.45.jar
│ │ │ ├── bcprov-jdk15-1.45.jar
│ │ │ ├── file
│ │ │ │ └── source
│ │ │ │ │ ├── livro.pdf
│ │ │ │ │ ├── minecraft.jpg
│ │ │ │ │ └── supermario.gif
│ │ │ ├── assinadorweb-desktop-1.2.6.jar
│ │ │ ├── demoiselle-certificate-core-1.2.6.jar
│ │ │ ├── demoiselle-certificate-desktop-1.2.6.jar
│ │ │ ├── demoiselle-certificate-signer-1.2.6.jar
│ │ │ ├── manifest-addition-certificate.txt
│ │ │ ├── demoiselle-certificate-ca-icpbrasil-1.2.6.jar
│ │ │ ├── demoiselle-certificate-criptography-1.2.6.jar
│ │ │ ├── demoiselle-certificate-ca-icpbrasil-homologacao-1.2.6.jar
│ │ │ ├── adicionar_manifest_certificate.sh
│ │ │ ├── launch.jnlp
│ │ │ ├── js
│ │ │ │ └── serpro-signer-promise.js
│ │ │ ├── jar_signer_com_token.sh
│ │ │ └── WEB-INF
│ │ │ │ └── web.xml
│ │ │ └── java
│ │ │ └── br
│ │ │ └── gov
│ │ │ └── frameworkdemoiselle
│ │ │ └── certificate
│ │ │ └── example
│ │ │ └── rest
│ │ │ └── TokenREST.java
│ └── .gitignore
└── assinadorweb-desktop
│ ├── src
│ └── main
│ │ ├── jnlp
│ │ └── newcert.p12
│ │ └── resources
│ │ └── desktop-config.properties
│ └── .gitignore
└── .gitignore
/assinador_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/assinador_1.png
--------------------------------------------------------------------------------
/assinador_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/assinador_2.png
--------------------------------------------------------------------------------
/assinador_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/assinador_3.png
--------------------------------------------------------------------------------
/parent/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /.project
3 | /.classpath
4 | /.settings
5 | /.externalToolBuilders
6 |
--------------------------------------------------------------------------------
/impl/core/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /.project
3 | /.classpath
4 | /.settings
5 | /.externalToolBuilders
6 |
--------------------------------------------------------------------------------
/impl/criptography/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /.project
3 | /.classpath
4 | /.settings
5 | /.externalToolBuilders
6 |
--------------------------------------------------------------------------------
/parent/certificate/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /.project
3 | /.classpath
4 | /.settings
5 | /.externalToolBuilders
6 |
--------------------------------------------------------------------------------
/documentation/reference/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /.project
3 | /.classpath
4 | /.settings
5 | /.externalToolBuilders
6 |
--------------------------------------------------------------------------------
/impl/applet/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /.project
3 | /.classpath
4 | /.settings
5 | /.externalToolBuilders
6 | /target/
7 |
--------------------------------------------------------------------------------
/impl/desktop/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /.project
3 | /.classpath
4 | /.settings
5 | /.externalToolBuilders
6 | /target/
7 |
--------------------------------------------------------------------------------
/impl/signer/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /.project
3 | /.classpath
4 | /.settings
5 | /.externalToolBuilders
6 | /target/
7 |
--------------------------------------------------------------------------------
/impl/ca-icp-brasil/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /.project
3 | /.classpath
4 | /.settings
5 | /.externalToolBuilders
6 | /target/
7 |
--------------------------------------------------------------------------------
/impl/core/src/main/resources/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Main-Class: br.gov.frameworkdemoiselle.certificate.repository.RepositoryService
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/tela01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/tela01.png
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/tela02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/tela02.png
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/tela03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/tela03.png
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/tela04.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/tela04.png
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/tela05.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/tela05.png
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/tela06.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/tela06.png
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/tela07.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/tela07.png
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/tela08.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/tela08.png
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/tela09.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/tela09.png
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/tela10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/tela10.png
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /.project
3 | /.classpath
4 | /.settings
5 | /.externalToolBuilders
6 | /target/
7 | /target/
8 |
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/assinador_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/assinador_1.png
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/assinador_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/assinador_2.png
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/assinador_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/assinador_3.png
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/drivers.config:
--------------------------------------------------------------------------------
1 | name = Provedor
2 | description = Branco
3 | library = /usr/lib/watchdata/ICP/lib/libwdpkcs_icp.so
4 |
--------------------------------------------------------------------------------
/impl/ca-icp-brasil/src/main/resources/icpbrasil.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/ca-icp-brasil/src/main/resources/icpbrasil.jks
--------------------------------------------------------------------------------
/example/assinadorweb-desktop/src/main/jnlp/newcert.p12:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/example/assinadorweb-desktop/src/main/jnlp/newcert.p12
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/keystore_tela01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/keystore_tela01.png
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/keystore_tela02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/keystore_tela02.png
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/keystore_tela03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/keystore_tela03.png
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/images/keystore_tela04.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/documentation/reference/pt-BR/images/keystore_tela04.png
--------------------------------------------------------------------------------
/impl/signer/src/main/resources/trustedca/CertificadoACRaiz.crt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/signer/src/main/resources/trustedca/CertificadoACRaiz.crt
--------------------------------------------------------------------------------
/impl/applet/src/main/resources/security-applet-default.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/applet/src/main/resources/security-applet-default.properties
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/bcmail-jdk15-1.45.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/example/assinadorweb-example/src/main/webapp/bcmail-jdk15-1.45.jar
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/bcprov-jdk15-1.45.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/example/assinadorweb-example/src/main/webapp/bcprov-jdk15-1.45.jar
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/file/source/livro.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/example/assinadorweb-example/src/main/webapp/file/source/livro.pdf
--------------------------------------------------------------------------------
/example/assinadorweb-desktop/.gitignore:
--------------------------------------------------------------------------------
1 | /bin
2 | /*.log
3 | /target
4 | /.project
5 | /.classpath
6 | /.settings
7 | /.externalToolBuilders
8 | /.DS_Store
9 | /target
10 | /target/
11 |
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/file/source/minecraft.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/example/assinadorweb-example/src/main/webapp/file/source/minecraft.jpg
--------------------------------------------------------------------------------
/impl/ca-icp-brasil/src/main/resources/trustedca/CertificadoACRaiz.crt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/ca-icp-brasil/src/main/resources/trustedca/CertificadoACRaiz.crt
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/file/source/supermario.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/example/assinadorweb-example/src/main/webapp/file/source/supermario.gif
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/assinadorweb-desktop-1.2.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/example/assinadorweb-example/src/main/webapp/assinadorweb-desktop-1.2.6.jar
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/demoiselle-certificate-core-1.2.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/example/assinadorweb-example/src/main/webapp/demoiselle-certificate-core-1.2.6.jar
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/IntermediariaHOMv2.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/IntermediariaHOMv2.cer
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/serproACFv4Homolog.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/serproACFv4Homolog.cer
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/serproACFv5Homolog.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/serproACFv5Homolog.cer
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/demoiselle-certificate-desktop-1.2.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/example/assinadorweb-example/src/main/webapp/demoiselle-certificate-desktop-1.2.6.jar
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/demoiselle-certificate-signer-1.2.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/example/assinadorweb-example/src/main/webapp/demoiselle-certificate-signer-1.2.6.jar
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/ACSERPROHOMOLOGACAO.crt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/ACSERPROHOMOLOGACAO.crt
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/manifest-addition-certificate.txt:
--------------------------------------------------------------------------------
1 | Permissions: all-permissions
2 | Caller-Allowable-Codebase: *
3 | Codebase: *
4 | Application-Library-Allowable-Codebase: *
5 | Trusted-Library: true
6 |
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/RaizdeHomologacaoSERPRO.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/RaizdeHomologacaoSERPRO.cer
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/demoiselle-certificate-ca-icpbrasil-1.2.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/example/assinadorweb-example/src/main/webapp/demoiselle-certificate-ca-icpbrasil-1.2.6.jar
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/demoiselle-certificate-criptography-1.2.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/example/assinadorweb-example/src/main/webapp/demoiselle-certificate-criptography-1.2.6.jar
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/ACSERPROACFv3Homologacao.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/ACSERPROACFv3Homologacao.cer
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/ACSERPRORFBv3Homologacao.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/ACSERPRORFBv3Homologacao.cer
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/RaizdeHomologacaoSERPROV5.cer:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/RaizdeHomologacaoSERPROV5.cer
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/AutoridadeCertificadoraSERPROv6HOM.crt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/AutoridadeCertificadoraSERPROv6HOM.crt
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/demoiselle-certificate-ca-icpbrasil-homologacao-1.2.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/example/assinadorweb-example/src/main/webapp/demoiselle-certificate-ca-icpbrasil-homologacao-1.2.6.jar
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/AutoridadeCertificadoraRaizHomdoSERPRO.crt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/AutoridadeCertificadoraRaizHomdoSERPRO.crt
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/AutoridadeCertificadoraRaizBrasileirav2.crt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/AutoridadeCertificadoraRaizBrasileirav2.crt
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/AutoridadeCertificadoraSERPRORFBSSL_Hom.crt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/AutoridadeCertificadoraSERPRORFBSSL_Hom.crt
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/AutoridadeCertificadoradoSERPROFinalv5-Hom.crt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/demoiselle/certificate/HEAD/impl/ca-icp-brasil-homologacao/src/main/resources/trustedca/AutoridadeCertificadoradoSERPROFinalv5-Hom.crt
--------------------------------------------------------------------------------
/example/assinadorweb-example/.gitignore:
--------------------------------------------------------------------------------
1 | /bin
2 | /*.log
3 | /target
4 | /.project
5 | /.classpath
6 | /.settings
7 | /.externalToolBuilders
8 | /.DS_Store
9 | /target
10 | glassfish-web.xml
11 | nb-configuration.xml
12 | .tern-project
13 | /target/
14 | /target/
15 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /impl/policy
3 | /impl/swing
4 | /impl/timestamp
5 | /documentation/quickstart
6 | /.project
7 | /.classpath
8 | /.settings
9 | /.metadata/
10 | /.externalToolBuilders
11 | nb-configuration.xml
12 | /example/.project
13 | /impl/ca-icp-brasil/bin/
14 |
15 |
--------------------------------------------------------------------------------
/documentation/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /.project
3 | /.classpath
4 | /.settings
5 | /.externalToolBuilders
6 | /impl/keystore/target/
7 | /impl/ca/target/
8 | /impl/certificate/target/
9 | /impl/applet/target/
10 | /impl/criptography/target/
11 | /impl/ca-icp-brasil/target/
12 | /impl/signer/target/
13 | /impl/ca-icp-brasil-homologacao/target/
--------------------------------------------------------------------------------
/impl/ca-icp-brasil/src/main/resources/META-INF/services/br.gov.frameworkdemoiselle.certificate.ca.provider.ProviderCA:
--------------------------------------------------------------------------------
1 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ICPBrasilProviderCA
2 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ICPBrasilUserHomeProviderCA
3 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ICPBrasilOnLineSerproProviderCA
4 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ICPBrasilOnLineITIProviderCA
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/authorgroup.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | Humberto
7 | Pacheco
8 |
9 |
10 | Ednara
11 | Oliveira
12 |
13 |
14 |
--------------------------------------------------------------------------------
/impl/signer/src/main/resources/META-INF/services/br.gov.frameworkdemoiselle.certificate.signer.pkcs7.SignaturePolicy:
--------------------------------------------------------------------------------
1 | br.gov.frameworkdemoiselle.certificate.signer.pkcs7.bc.policies.ADRBCMS_1_0
2 | br.gov.frameworkdemoiselle.certificate.signer.pkcs7.bc.policies.ADRBCMS_1_1
3 | br.gov.frameworkdemoiselle.certificate.signer.pkcs7.bc.policies.ADRBCMS_2_0
4 | br.gov.frameworkdemoiselle.certificate.signer.pkcs7.bc.policies.ADRBCMS_2_1
5 | br.gov.frameworkdemoiselle.certificate.signer.pkcs7.bc.policies.ADRBCMS_2_2
--------------------------------------------------------------------------------
/impl/ca-icp-brasil/src/main/resources/META-INF/services/br.gov.frameworkdemoiselle.certificate.ca.provider.ProviderSignaturePolicyRootCA:
--------------------------------------------------------------------------------
1 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ADRBCMS_1_0_RootCAs
2 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ADRBCMS_1_1_RootCAs
3 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ADRBCMS_2_0_RootCAs
4 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ADRBCMS_2_1_RootCAs
5 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ADRBCMS_2_2_RootCAs
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/resources/META-INF/services/br.gov.frameworkdemoiselle.certificate.ca.provider.ProviderCA:
--------------------------------------------------------------------------------
1 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ICPBrasilProviderCA
2 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ICPBrasilUserHomeProviderCA
3 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ICPBrasilOnLineSerproProviderCA
4 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ICPBrasilOnLineITIProviderCA
5 | br.gov.frameworkdemoiselle.certificate.ca.provider.hom.HomologacaoProviderCA
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/bookinfo.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | Demoiselle Components Guide
7 | Demoiselle Certificate
8 |
9 | Demoiselle Components: Guide to all Demoiselle Components
10 | Demoiselle Components Guide
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/ca-icp-brasil/master.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 | Demoiselle CA ICP-Brasil
8 |
9 |
10 |
11 |
12 | O Demoiselle CA ICP-Brasil fornece uma implementação para validação de um conjunto de Autoridades Certificadoras de certificados digitais de Produção.
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/ca-icp-brasil-homologacao/master.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 | Demoiselle CA ICP-Brasil Homologação
8 |
9 |
10 |
11 |
12 | O Demoiselle CA ICP-Brasil Homologação fornece uma implementação para validação de um conjunto de Autoridades Certificadoras de certificados digitais de Homologação.
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/impl/desktop/src/main/java/br/gov/frameworkdemoiselle/certificate/ui/util/AuthorizationException.java:
--------------------------------------------------------------------------------
1 | package br.gov.frameworkdemoiselle.certificate.ui.util;
2 | @Deprecated
3 | public class AuthorizationException extends RuntimeException{
4 | private static final long serialVersionUID = 1L;
5 |
6 |
7 | /**
8 | * Construtor recebendo mensagem e causa
9 | *
10 | * @param message
11 | * @param error
12 | */
13 | public AuthorizationException(String message, Throwable error) {
14 | super(message, error);
15 | }
16 |
17 |
18 | /**
19 | * Construtor recebendo mensagem
20 | *
21 | * @param message
22 | */
23 | public AuthorizationException(String message) {
24 | super(message);
25 | }
26 |
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/impl/signer/src/main/java/br/gov/frameworkdemoiselle/certificate/signer/pkcs7/bc/CMSAbsentContent.java:
--------------------------------------------------------------------------------
1 | package br.gov.frameworkdemoiselle.certificate.signer.pkcs7.bc;
2 |
3 | import java.io.IOException;
4 | import java.io.OutputStream;
5 |
6 | import org.bouncycastle.cms.CMSException;
7 | import org.bouncycastle.cms.CMSProcessable;
8 | /**
9 | * @deprecated replaced by Demoiselle SIGNER
10 | * @see https://github.com/demoiselle/signer
11 | *
12 | */
13 | @Deprecated
14 | public class CMSAbsentContent implements CMSProcessable {
15 |
16 | public CMSAbsentContent() {
17 | }
18 |
19 | @Override
20 | public void write(OutputStream zOut) throws IOException, CMSException {
21 | }
22 |
23 | @Override
24 | public Object getContent() {
25 | return null;
26 | }
27 | }
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/signer/master.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | Demoiselle Signer
7 |
8 |
9 |
10 | O componente
11 | Demoiselle Signer
12 | foi desenvolvido para atender às necessidades de assinatura digital no âmbito da ICP-Brasil.
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/impl/core/src/main/assembly/src.xml:
--------------------------------------------------------------------------------
1 |
2 | src
3 |
4 | zip
5 |
6 | false
7 |
8 |
9 |
10 | ${project.basedir}/Readme.txt
11 | ${project.basedir}/License.txt
12 |
13 | true
14 |
15 |
16 | ${project.basedir}/src
17 | true
18 |
19 | **/assembly/**
20 | **/site/**
21 |
22 |
23 |
24 | target/site/apidocs
25 | javadoc
26 |
27 |
28 |
--------------------------------------------------------------------------------
/impl/applet/src/main/assembly/src.xml:
--------------------------------------------------------------------------------
1 |
2 | src
3 |
4 | zip
5 |
6 | false
7 |
8 |
9 |
10 | ${project.basedir}/Readme.txt
11 | ${project.basedir}/License.txt
12 |
13 | true
14 |
15 |
16 | ${project.basedir}/src
17 | true
18 |
19 | **/assembly/**
20 | **/site/**
21 |
22 |
23 |
24 | target/site/apidocs
25 | javadoc
26 |
27 |
28 |
--------------------------------------------------------------------------------
/impl/signer/src/main/assembly/src.xml:
--------------------------------------------------------------------------------
1 |
2 | src
3 |
4 | zip
5 |
6 | false
7 |
8 |
9 |
10 | ${project.basedir}/Readme.txt
11 | ${project.basedir}/License.txt
12 |
13 | true
14 |
15 |
16 | ${project.basedir}/src
17 | true
18 |
19 | **/assembly/**
20 | **/site/**
21 |
22 |
23 |
24 | target/site/apidocs
25 | javadoc
26 |
27 |
28 |
--------------------------------------------------------------------------------
/impl/ca-icp-brasil/src/main/assembly/src.xml:
--------------------------------------------------------------------------------
1 |
2 | src
3 |
4 | zip
5 |
6 | false
7 |
8 |
9 |
10 | ${project.basedir}/Readme.txt
11 | ${project.basedir}/License.txt
12 |
13 | true
14 |
15 |
16 | ${project.basedir}/src
17 | true
18 |
19 | **/assembly/**
20 | **/site/**
21 |
22 |
23 |
24 | target/site/apidocs
25 | javadoc
26 |
27 |
28 |
--------------------------------------------------------------------------------
/impl/criptography/src/main/assembly/src.xml:
--------------------------------------------------------------------------------
1 |
2 | src
3 |
4 | zip
5 |
6 | false
7 |
8 |
9 |
10 | ${project.basedir}/Readme.txt
11 | ${project.basedir}/License.txt
12 |
13 | true
14 |
15 |
16 | ${project.basedir}/src
17 | true
18 |
19 | **/assembly/**
20 | **/site/**
21 |
22 |
23 |
24 | target/site/apidocs
25 | javadoc
26 |
27 |
28 |
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/assembly/src.xml:
--------------------------------------------------------------------------------
1 |
2 | src
3 |
4 | zip
5 |
6 | false
7 |
8 |
9 |
10 | ${project.basedir}/Readme.txt
11 | ${project.basedir}/License.txt
12 |
13 | true
14 |
15 |
16 | ${project.basedir}/src
17 | true
18 |
19 | **/assembly/**
20 | **/site/**
21 |
22 |
23 |
24 | target/site/apidocs
25 | javadoc
26 |
27 |
28 |
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/core/master.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | Demoiselle Core
7 |
8 |
9 |
10 | Este componente provê uma API para facilitar o tratamento de Certificados Digitais em aplicações Java. Seus objetivos são o carregamento, validação e obtenção de dados para certificados digitais.
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/impl/applet/src/main/assembly/bin.xml:
--------------------------------------------------------------------------------
1 |
2 | bin
3 |
4 | zip
5 |
6 |
7 |
8 |
9 | ${project.basedir}/Readme.txt
10 | ${project.basedir}/License.txt
11 |
12 |
13 |
14 | ${project.build.directory}
15 | /
16 |
17 | *.jar
18 |
19 |
20 |
21 | target/site/apidocs
22 | javadoc
23 |
24 |
25 |
26 |
27 | /lib
28 |
29 | ${project.groupId}:*
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/impl/core/src/main/assembly/bin.xml:
--------------------------------------------------------------------------------
1 |
2 | bin
3 |
4 | zip
5 |
6 |
7 |
8 |
9 | ${project.basedir}/Readme.txt
10 | ${project.basedir}/License.txt
11 |
12 |
13 |
14 | ${project.build.directory}
15 | /
16 |
17 | *.jar
18 |
19 |
20 |
21 | target/site/apidocs
22 | javadoc
23 |
24 |
25 |
26 |
27 | /lib
28 |
29 | ${project.groupId}:*
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/impl/signer/src/main/assembly/bin.xml:
--------------------------------------------------------------------------------
1 |
2 | bin
3 |
4 | zip
5 |
6 |
7 |
8 |
9 | ${project.basedir}/Readme.txt
10 | ${project.basedir}/License.txt
11 |
12 |
13 |
14 | ${project.build.directory}
15 | /
16 |
17 | *.jar
18 |
19 |
20 |
21 | target/site/apidocs
22 | javadoc
23 |
24 |
25 |
26 |
27 | /lib
28 |
29 | ${project.groupId}:*
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/resources/META-INF/services/br.gov.frameworkdemoiselle.certificate.ca.provider.ProviderSignaturePolicyRootCA:
--------------------------------------------------------------------------------
1 | br.gov.frameworkdemoiselle.certificate.ca.provider.hom.ADRBCMS_1_0_RootCAs
2 | br.gov.frameworkdemoiselle.certificate.ca.provider.hom.ADRBCMS_1_1_RootCAs
3 | br.gov.frameworkdemoiselle.certificate.ca.provider.hom.ADRBCMS_2_0_RootCAs
4 | br.gov.frameworkdemoiselle.certificate.ca.provider.hom.ADRBCMS_2_1_RootCAs
5 | br.gov.frameworkdemoiselle.certificate.ca.provider.hom.ADRBCMS_2_2_RootCAs
6 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ADRBCMS_1_0_RootCAs
7 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ADRBCMS_1_1_RootCAs
8 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ADRBCMS_2_0_RootCAs
9 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ADRBCMS_2_1_RootCAs
10 | br.gov.frameworkdemoiselle.certificate.ca.provider.impl.ADRBCMS_2_2_RootCAs
11 |
--------------------------------------------------------------------------------
/impl/criptography/src/main/assembly/bin.xml:
--------------------------------------------------------------------------------
1 |
2 | bin
3 |
4 | zip
5 |
6 |
7 |
8 |
9 | ${project.basedir}/Readme.txt
10 | ${project.basedir}/License.txt
11 |
12 |
13 |
14 | ${project.build.directory}
15 | /
16 |
17 | *.jar
18 |
19 |
20 |
21 | target/site/apidocs
22 | javadoc
23 |
24 |
25 |
26 |
27 | /lib
28 |
29 | ${project.groupId}:*
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/impl/ca-icp-brasil/src/main/assembly/bin.xml:
--------------------------------------------------------------------------------
1 |
2 | bin
3 |
4 | zip
5 |
6 |
7 |
8 |
9 | ${project.basedir}/Readme.txt
10 | ${project.basedir}/License.txt
11 |
12 |
13 |
14 | ${project.build.directory}
15 | /
16 |
17 | *.jar
18 |
19 |
20 |
21 | target/site/apidocs
22 | javadoc
23 |
24 |
25 |
26 |
27 | /lib
28 |
29 | ${project.groupId}:*
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/core/configuracao.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | Configuração do Demoiselle Core
7 |
8 |
9 | Instalação do componente
10 |
11 | Para instalar o componente Demoiselle Core na aplicação,
12 | basta adicionar a sua dependência no arquivo pom.xml do projeto gerenciado pelo Maven:
13 |
14 |
15 | br.gov.frameworkdemoiselle.component
16 | demoiselle-certificate-core
17 | 1.2.0-RC1
18 | ]]>
19 |
20 |
21 |
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/assembly/bin.xml:
--------------------------------------------------------------------------------
1 |
2 | bin
3 |
4 | zip
5 |
6 |
7 |
8 |
9 | ${project.basedir}/Readme.txt
10 | ${project.basedir}/License.txt
11 |
12 |
13 |
14 | ${project.build.directory}
15 | /
16 |
17 | *.jar
18 |
19 |
20 |
21 | target/site/apidocs
22 | javadoc
23 |
24 |
25 |
26 |
27 | /lib
28 |
29 | ${project.groupId}:*
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/signer/configuracao.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | Configuração do Demoiselle Signer
7 |
8 |
9 | Instalação do componente
10 |
11 | Para instalar o componente
12 | Demoiselle Signer
13 | na aplicação,
14 | basta adicionar a sua dependência no arquivo
15 | pom.xml
16 | do projeto
17 | gerenciado pelo Maven:
18 |
19 |
21 | br.gov.frameworkdemoiselle.component
22 | demoiselle-certificate-signer
23 | 1.2.0-RC1
24 | ]]>
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/adicionar_manifest_certificate.sh:
--------------------------------------------------------------------------------
1 | #/bin/bash
2 |
3 | # modifica Manifest.MF dos arquivos .jar
4 | echo "*** modificando os arquivos .jar ..."
5 |
6 | # jar ufm jar-file manifest-addition.txt
7 |
8 |
9 | # jar ufm assinadorweb-desktop-1.2.6.jar manifest-addition-certificate.txt
10 | # jar ufm demoiselle-certificate-ca-icpbrasil-1.2.6.jar manifest-addition-certificate.txt
11 | # jar ufm demoiselle-certificate-ca-icpbrasil-homologacao-1.2.6.jar manifest-addition-certificate.txt
12 | # jar ufm demoiselle-certificate-core-1.2.6.jar manifest-addition-certificate.txt
13 | # jar ufm demoiselle-certificate-criptography-1.2.6.jar manifest-addition-certificate.txt
14 | # jar ufm demoiselle-certificate-desktop-1.2.6.jar manifest-addition-certificate.txt
15 | # jar ufm demoiselle-certificate-signer-1.2.6.jar manifest-addition-certificate.txt
16 | # jar ufm bcmail-jdk15-1.45.jar manifest-addition-certificate.txt
17 | # jar ufm bcprov-jdk15-1.45.jar manifest-addition-certificate.txt
18 |
19 | read -s -n 1 -p "Press any key to continue…"
20 |
21 | echo "*** Fim!"
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/desktop/master.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | Demoiselle Desktop
7 |
8 |
9 |
10 | O Demoiselle Desktop simplifica a construção de aplicação Swing para manipulação de certificados digitais. Seu objetivo é o carregamento do Repositório de Chaves e Certificados
11 | (Keystore) de Certificados A3, cujo armazenamento é realizado por dispositivos seguros como Tokens USB ou Smart Cards, ou de Certificados A1, cujo armazenamento é
12 | feito em arquivos.
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/impl/desktop/src/test/java/br/gov/serpro/certificate/ui/rest/TestDownloadRest.java:
--------------------------------------------------------------------------------
1 | ///*
2 | // * To change this license header, choose License Headers in Project Properties.
3 | // * To change this template file, choose Tools | Templates
4 | // * and open the template in the editor.
5 | // */
6 | //package br.gov.serpro.certificate.ui.rest;
7 | //
8 | //import br.gov.frameworkdemoiselle.certificate.ui.util.Utils;
9 | //
10 | //import java.io.FileNotFoundException;
11 | //import java.io.IOException;
12 | //
13 | ///**
14 | // *
15 | // * @author 07721825741
16 | // */
17 | //public class TestDownloadRest {
18 | //
19 | // private static String identifier = "1";
20 | // private static String service = "http://10.32.180.96:8080/assinadorweb-example/rest/filemanager";
21 | //
22 | // public static void main(String[] args) throws FileNotFoundException, IOException {
23 | // Utils utils = new Utils();
24 | // System.out.println("br.gov.serpro.certificate.ui.rest.TestDownloadRest.main()");
25 | // byte[] content = utils.downloadFromUrl(service.concat("/download/").concat(identifier));
26 | //
27 | // System.out.println("Content length..: " + content.length);
28 | // utils.uploadToURL(content, service.concat("/upload/"));
29 | //
30 | // }
31 | //}
32 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/validator/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (c) 2009 Serpro and other contributors as indicated
4 | * by the @author tag. See the copyright.txt in the distribution for a
5 | * full listing of contributors.
6 | *
7 | * Demoiselle Framework is an open source Java EE library designed to accelerate
8 | * the development of transactional database Web applications.
9 | *
10 | * Demoiselle Framework is released under the terms of the LGPL license 3
11 | * http://www.gnu.org/licenses/lgpl.html LGPL License 3
12 | *
13 | * This file is part of Demoiselle Framework.
14 | *
15 | * Demoiselle Framework is free software: you can redistribute it and/or modify
16 | * it under the terms of the GNU Lesser General Public License 3 as published by
17 | * the Free Software Foundation.
18 | *
19 | * Demoiselle Framework is distributed in the hope that it will be useful,
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 | * GNU Lesser General Public License for more details.
23 | *
24 | * You should have received a copy of the GNU Lesser General Public License
25 | * along with Demoiselle Framework. If not, see .
26 | */
27 | package br.gov.frameworkdemoiselle.certificate.validator;
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/applet/master.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | Demoiselle Applet
7 |
8 |
9 |
10 | O Demoiselle Applet foi descontinuado, pois a maioria dos browsers de mercado suspederam ou anunciaram intenção de suspender
11 | o suporte o NPAPI, esta API possibilita a execução de applets java. Segue a situação atual dos principais browser.
12 |
13 |
14 |
15 |
16 | Chrome: sem suporte a partir da versão 45
17 |
18 |
19 | Mozilla Firefox: anunciou que suspenderá o suporte até o final de 2016
20 |
21 |
22 | Interner Explore: Não se manifestou, mas este browser será descontinuado
23 |
24 |
25 | Microsoft EDGE: Browser que vai substituir o IE e foi lançado sem o suporte
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/example/assinadorweb-desktop/src/main/resources/desktop-config.properties:
--------------------------------------------------------------------------------
1 | #Labels
2 | label.dialog.option_pane.title=Mensagem de erro
3 | label.dialog.button.run=Assinar
4 | label.dialog.button.cancel=Cancelar
5 | label.dialog.label.table=Certificados dispon\u00edveis
6 | label.dialog.frame.title=Assinador de Documentos
7 | label.dialog.lable.files=Arquivos assinados
8 |
9 | #Mensagens
10 | message.error.invalid.pin=O PIN n\u00e3o foi informado ou \u00e9 inv\u00e1lido
11 | message.error.driver.not.available=Nenhum driver instalado para acesso ao seu dispositivo
12 | message.error.pkcs11.not.found=Nenhum Token/Smartcard presente. Por favor, conecte um dispositivo
13 | message.error.load.driver=Ocorreu um erro no carregamento do driver do dispositivo
14 | message.error.unexpected=Erro inesperado
15 |
16 | #Configurations
17 | config.dialog.title.label.font=Arial
18 | config.dialog.title.label.font.style=0
19 | config.dialog.title.label.font.size=12
20 |
21 | config.dialog.table.certificates.width=800
22 | config.dialog.table.certificates.height=150
23 | config.dialog.table.certificates.row.heigth=25
24 |
25 | config.dialog.list.files.width=800
26 | config.dialog.list.files.height=150
27 | config.dialog.list.files.row.heigth=25
28 |
29 | config.dialog.button-run.width=120
30 | config.dialog.button-run.height=35
31 |
32 | config.dialog.button-cancel.width=120
33 | config.dialog.button-cancel.height=35
34 |
35 | #Protocolo HTTPS
36 | config.https.protocol=TLSv1.2
--------------------------------------------------------------------------------
/impl/desktop/src/main/resources/desktop-config-default.properties:
--------------------------------------------------------------------------------
1 | #Labels
2 | label.dialog.option_pane.title=Mensagem de erro
3 | label.dialog.button.run=Assinar
4 | label.dialog.button.cancel=Cancelar
5 | label.dialog.label.table=Certificados dispon\u00edveis
6 | label.dialog.frame.title=Assinador de Documentos
7 | label.dialog.lable.files=Arquivos assinados
8 |
9 | #Mensagens
10 | message.error.invalid.pin=O PIN n\u00e3o foi informado ou \u00e9 inv\u00e1lido
11 | message.error.driver.not.available=Nenhum driver instalado para acesso ao seu dispositivo
12 | message.error.pkcs11.not.found=Nenhum Token/Smartcard presente. Por favor, conecte um dispositivo
13 | message.error.load.driver=Ocorreu um erro no carregamento do driver do dispositivo
14 | message.error.unexpected=Erro inesperado
15 |
16 | #Configurations
17 | config.dialog.title.label.font=Arial
18 | config.dialog.title.label.font.style=0
19 | config.dialog.title.label.font.size=12
20 |
21 | config.dialog.table.certificates.width=800
22 | config.dialog.table.certificates.height=100
23 | config.dialog.table.certificates.row.heigth=25
24 |
25 | config.dialog.list.files.width=800
26 | config.dialog.list.files.height=100
27 | config.dialog.list.files.row.heigth=25
28 |
29 | config.dialog.button-run.width=120
30 | config.dialog.button-run.height=35
31 |
32 | config.dialog.button-cancel.width=120
33 | config.dialog.button-cancel.height=35
34 |
35 | #Protocolo HTTPS
36 | config.https.protocol=TLSv1.2
37 |
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/ca-icp-brasil/configuracao.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | Configuração do CA ICP-Brasil
7 |
8 |
9 | Instalação do componente
10 |
11 | Para instalar o componente
12 | Demoiselle CA ICP-Brasil
13 | na aplicação, basta adicionar a sua dependência no arquivo
14 | pom.xml
15 | do projeto gerenciado pelo Maven:
16 |
17 |
18 |
20 | br.gov.frameworkdemoiselle.component
21 | demoiselle-certificate-ca-icpbrasil
22 | 1.2.0-RC1
23 | ]]>
24 |
25 |
26 |
27 |
28 | Autoridades Certificadoras
29 |
30 |
31 |
32 | A partir da versão 1.2.0 a Lista de Autoridades Certificadoras é atualizada a partir dos endereços http://repositorio.serpro.gov.br/icp-brasil/ACcompactado.zip e http://acraiz.icpbrasil.gov.br/credenciadas/CertificadosAC-ICP-Brasil/ACcompactado.zip.
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/java/br/gov/frameworkdemoiselle/certificate/example/rest/TokenREST.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package br.gov.frameworkdemoiselle.certificate.example.rest;
7 |
8 | import java.util.Collections;
9 | import java.util.HashMap;
10 | import java.util.Map;
11 | import java.util.logging.Level;
12 | import java.util.logging.Logger;
13 |
14 | import javax.ws.rs.GET;
15 | import javax.ws.rs.Path;
16 | import javax.ws.rs.PathParam;
17 | import javax.ws.rs.Produces;
18 |
19 | import br.gov.frameworkdemoiselle.certificate.example.token.TokenManager;
20 |
21 |
22 | @Path("token")
23 | public class TokenREST {
24 |
25 | private static final Logger LOGGER = Logger.getLogger(TokenREST.class.getName());
26 |
27 | @GET
28 | @Path("generate/{info}")
29 | @Produces("text/plain")
30 | public String generate(@PathParam("info") String info) {
31 |
32 | Map files = Collections.synchronizedMap(new HashMap());
33 | for (String nameFiles : info.split(",")) {
34 | files.put(nameFiles, null);
35 | }
36 |
37 | String token = TokenManager.put(files);
38 | LOGGER.log(Level.INFO, "Token Criado: " + token);
39 | return token;
40 | }
41 |
42 | @GET
43 | @Path("validate/{info}")
44 | @Produces("text/plain")
45 | public boolean validate(@PathParam("info") String info) {
46 | LOGGER.log(Level.INFO, "Validar token: " + info);
47 | return TokenManager.isValid(info);
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/launch.jnlp:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | assinadorweb-desktop
7 | SERPRO - Serviço Federal de Processamento de Dados
8 |
9 | Certificate Desktop Component
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/impl/signer/src/main/resources/trustedca/ICP-Brasil.crt:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIEgDCCA2igAwIBAgIBATANBgkqhkiG9w0BAQUFADCBlzELMAkGA1UEBhMCQlIx
3 | EzARBgNVBAoTCklDUC1CcmFzaWwxPTA7BgNVBAsTNEluc3RpdHV0byBOYWNpb25h
4 | bCBkZSBUZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxNDAyBgNVBAMTK0F1
5 | dG9yaWRhZGUgQ2VydGlmaWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjEwHhcNMDgw
6 | NzI5MTkxNzEwWhcNMjEwNzI5MTkxNzEwWjCBlzELMAkGA1UEBhMCQlIxEzARBgNV
7 | BAoTCklDUC1CcmFzaWwxPTA7BgNVBAsTNEluc3RpdHV0byBOYWNpb25hbCBkZSBU
8 | ZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxNDAyBgNVBAMTK0F1dG9yaWRh
9 | ZGUgQ2VydGlmaWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjEwggEiMA0GCSqGSIb3
10 | DQEBAQUAA4IBDwAwggEKAoIBAQDOHOi+kzTOybHkVO4J9uykCIWgP8aKxnAwp4CM
11 | 7T4BVAeMGSM7n7vHtIsgseL3QRYtXodmurAH3W/RPzzayFkznRWwn5LIVlRYijon
12 | ojQem3i1t83lm+nALhKecHgH+o7yTMD45XJ8HqmpYANXJkfbg3bDzsgSu9H/766z
13 | Yn2aoOS8bn0BLjRg3IfgX38FcFwwFSzCdaM/UANmI2Ys53R3eNtmF9/5Hw2CaI91
14 | h/fpMXpTT89YYrtAojTPwHCEUJcV2iBL6ftMQq0raI6j2a0FYv4IdMTowcyFE86t
15 | KDBQ3d7AgcFJsF4uJjjpYwQzd7WAds0qf/I8rF2TQjn0onNFAgMBAAGjgdQwgdEw
16 | TgYDVR0gBEcwRTBDBgVgTAEBADA6MDgGCCsGAQUFBwIBFixodHRwOi8vYWNyYWl6
17 | LmljcGJyYXNpbC5nb3YuYnIvRFBDYWNyYWl6LnBkZjA/BgNVHR8EODA2MDSgMqAw
18 | hi5odHRwOi8vYWNyYWl6LmljcGJyYXNpbC5nb3YuYnIvTENSYWNyYWl6djEuY3Js
19 | MB0GA1UdDgQWBBRCsixcdAEHvpv/VTM77im7XZG/BjAPBgNVHRMBAf8EBTADAQH/
20 | MA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQUFAAOCAQEAWWyKdukZcVeD/qf0
21 | eg+egdDPBxwMI+kkDVHLM+gqCcN6/w6jgIZgwXCX4MAKVd2kZUyPp0ewV7fzq8TD
22 | GeOY7A2wG1GRydkJ1ulqs+cMsLKSh/uOTRXsEhQZeAxi6hQ5GArFVdtThdx7KPoV
23 | caPKdCWCD2cnNNeuUhMC+8XvmoAlpVKeOQ7tOvR4B1/VKHoKSvXQw2f3jFgXbwoA
24 | oyYQtGAiOkpIpdrgqYTeQ9ufQ6c/KARHki/352R1IdJPgc6qPmQO4w6tVZp+lJs0
25 | wdCuaU4eo9mzh1facMJafYfN+b833u1WNfe3Ig5Pkrg/CN+cnphe8m+5+pss+M1F
26 | 2HKyIA==
27 | -----END CERTIFICATE-----
28 |
--------------------------------------------------------------------------------
/impl/ca-icp-brasil/src/main/resources/trustedca/ICP-Brasil.crt:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIEgDCCA2igAwIBAgIBATANBgkqhkiG9w0BAQUFADCBlzELMAkGA1UEBhMCQlIx
3 | EzARBgNVBAoTCklDUC1CcmFzaWwxPTA7BgNVBAsTNEluc3RpdHV0byBOYWNpb25h
4 | bCBkZSBUZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxNDAyBgNVBAMTK0F1
5 | dG9yaWRhZGUgQ2VydGlmaWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjEwHhcNMDgw
6 | NzI5MTkxNzEwWhcNMjEwNzI5MTkxNzEwWjCBlzELMAkGA1UEBhMCQlIxEzARBgNV
7 | BAoTCklDUC1CcmFzaWwxPTA7BgNVBAsTNEluc3RpdHV0byBOYWNpb25hbCBkZSBU
8 | ZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxNDAyBgNVBAMTK0F1dG9yaWRh
9 | ZGUgQ2VydGlmaWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjEwggEiMA0GCSqGSIb3
10 | DQEBAQUAA4IBDwAwggEKAoIBAQDOHOi+kzTOybHkVO4J9uykCIWgP8aKxnAwp4CM
11 | 7T4BVAeMGSM7n7vHtIsgseL3QRYtXodmurAH3W/RPzzayFkznRWwn5LIVlRYijon
12 | ojQem3i1t83lm+nALhKecHgH+o7yTMD45XJ8HqmpYANXJkfbg3bDzsgSu9H/766z
13 | Yn2aoOS8bn0BLjRg3IfgX38FcFwwFSzCdaM/UANmI2Ys53R3eNtmF9/5Hw2CaI91
14 | h/fpMXpTT89YYrtAojTPwHCEUJcV2iBL6ftMQq0raI6j2a0FYv4IdMTowcyFE86t
15 | KDBQ3d7AgcFJsF4uJjjpYwQzd7WAds0qf/I8rF2TQjn0onNFAgMBAAGjgdQwgdEw
16 | TgYDVR0gBEcwRTBDBgVgTAEBADA6MDgGCCsGAQUFBwIBFixodHRwOi8vYWNyYWl6
17 | LmljcGJyYXNpbC5nb3YuYnIvRFBDYWNyYWl6LnBkZjA/BgNVHR8EODA2MDSgMqAw
18 | hi5odHRwOi8vYWNyYWl6LmljcGJyYXNpbC5nb3YuYnIvTENSYWNyYWl6djEuY3Js
19 | MB0GA1UdDgQWBBRCsixcdAEHvpv/VTM77im7XZG/BjAPBgNVHRMBAf8EBTADAQH/
20 | MA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQUFAAOCAQEAWWyKdukZcVeD/qf0
21 | eg+egdDPBxwMI+kkDVHLM+gqCcN6/w6jgIZgwXCX4MAKVd2kZUyPp0ewV7fzq8TD
22 | GeOY7A2wG1GRydkJ1ulqs+cMsLKSh/uOTRXsEhQZeAxi6hQ5GArFVdtThdx7KPoV
23 | caPKdCWCD2cnNNeuUhMC+8XvmoAlpVKeOQ7tOvR4B1/VKHoKSvXQw2f3jFgXbwoA
24 | oyYQtGAiOkpIpdrgqYTeQ9ufQ6c/KARHki/352R1IdJPgc6qPmQO4w6tVZp+lJs0
25 | wdCuaU4eo9mzh1facMJafYfN+b833u1WNfe3Ig5Pkrg/CN+cnphe8m+5+pss+M1F
26 | 2HKyIA==
27 | -----END CERTIFICATE-----
28 |
--------------------------------------------------------------------------------
/impl/signer/src/main/resources/trustedca/serprov1.cer:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIEeDCCA2CgAwIBAgIBEzANBgkqhkiG9w0BAQUFADCBtDELMAkGA1UEBhMCQlIx
3 | EzARBgNVBAoTCklDUC1CcmFzaWwxPTA7BgNVBAsTNEluc3RpdHV0byBOYWNpb25h
4 | bCBkZSBUZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxETAPBgNVBAcTCEJy
5 | YXNpbGlhMQswCQYDVQQIEwJERjExMC8GA1UEAxMoQXV0b3JpZGFkZSBDZXJ0aWZp
6 | Y2Fkb3JhIFJhaXogQnJhc2lsZWlyYTAeFw0wNTAzMjQyMDAxMDBaFw0xMTEwMjQy
7 | MzU5MDBaMIGPMQswCQYDVQQGEwJCUjETMBEGA1UEChMKSUNQLUJyYXNpbDE7MDkG
8 | A1UECxMyU2VydmljbyBGZWRlcmFsIGRlIFByb2Nlc3NhbWVudG8gZGUgRGFkb3Mg
9 | LSBTRVJQUk8xLjAsBgNVBAMTJUF1dG9yaWRhZGUgQ2VydGlmaWNhZG9yYSBkbyBT
10 | RVJQUk8gdjEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC0WxXnyzz5
11 | J03+aBrPJ5AIoCYhdp8W3fMneH7l4jwMDiF9C8/bsgDYUc6hGC3l1PVwuYf/VGwB
12 | p6kYPaJX/W88Tm/4Vq66yYUIsa7q8yq90CD387rbaCu8qbGEIrOV18Fp63ohLPI0
13 | 24FoNBI4WwlRb6aktVOkSBr0UeIAc2x4vjJWpSzvCg2eyRQyOz9nKVLwQJLkYk1f
14 | hac/aoj18ksK8zKQieHtls2fW51p4DI4jaM42kHHxV9eJCml4wbrNiTy+1NSi/VX
15 | JAXWCGcNoHM5hmkCDbfQB2aWrZDLjJ8RS0E32ilT3A30DqdkOIhKgbmjfQuBTZWJ
16 | 8ZA+msEYaOl5AgMA05ejgbcwgbQwPQYDVR0fBDYwNDAyoDCgLoYsaHR0cDovL2Fj
17 | cmFpei5pY3BicmFzaWwuZ292LmJyL0xDUmFjcmFpei5jcmwwEgYDVR0gBAswCTAH
18 | BgVgTAEBAjAdBgNVHQ4EFgQU4osVQdt1OSm8HFR7+1E/FAkS8rQwHwYDVR0jBBgw
19 | FoAUivrxV4QREzWQQvpXSVRpDaTE8DcwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB
20 | /wQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAGJSHMCH3re9mCmtnVH+btonLi8M
21 | EJgtYDwwOkLvknnwI+0WimHsFDM7ABcaKw4N5OZwAlcSFla4i1vbFjools4HD4z+
22 | fMwbHIhifTNLQKW49Dm+XqnBIe/UIbNXfDdQmKk770WhsljALMC53k/phxPxHN3y
23 | qrD06YwDaQKLbuAO800ycCUeIvvxB698oSdrC/m2jf+Wt6NZMybqw7Tp2qBR+c/v
24 | CZW1g6Qbij5lOm2ADrpXpjiDKnmsUmff9uvByix2mbTHRNa9E+eeev7ZN+PpSLhZ
25 | 5x8xKisZxBXdBL+2aeGaNa81sWculWLam3DI6bARrzAtRrI0cVev2kkSWks=
26 | -----END CERTIFICATE-----
27 |
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/applet/funcionalidades.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | Funcionalidades
7 |
8 | O princípio do componente é prover ao desenvolvedor o Keystore de um dispositivo. A partir do keystore a aplicação pode construir outras funcionalidades como autenticação e
9 | assinatura de documentos. Existem duas formas de se obter o Keystore do certificado, descritas a seguir.
10 |
11 |
12 |
13 | O JKeyStoreDialog
14 |
15 | O
16 | JKeyStoreDialog
17 | é um JDialog que solicita o PIN ao usuário retornando o KeyStore através do método
18 | getKeyStore
19 | .
20 |
21 |
24 |
25 |
26 |
27 |
28 | O JKeyStorePanel
29 |
30 |
31 | O
32 | JKeyStorePanel
33 | é um JPanel que pode ser renderizado junto a qualquer applet e possui o mesmo comportamento do
34 | JKeyStoreDialog
35 | .
36 |
37 |
38 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/js/serpro-signer-promise.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @classdesc Implementation of Promise, because as we do not know a library that will be used for development can not depend on any.
3 | * @class
4 | */
5 | var SerproSignerPromise = (function () {
6 | var callbackSuccess = null;
7 | var callbackError = null;
8 |
9 | /**
10 | * Then method to use um finish.
11 | *
12 | * @param {function} cbSuccess - Callback to use on success.
13 | * @return this
14 | * @memberof SerproSignerPromise
15 | */
16 | this.success = function (cbSucess) {
17 | callbackSuccess = cbSucess;
18 | return this;
19 | };
20 |
21 | /**
22 | * Then method to use um finish.
23 | *
24 | * @param {function} cbError - Callback to use on error.
25 | * @return this
26 | * @memberof SerproSignerPromise
27 | */
28 | this.error = function (cbError) {
29 | callbackError = cbError;
30 | return this;
31 | };
32 |
33 | /**
34 | * Resolve method to us on resolve event.
35 | * @param {object} value - Value to send a callback setted on Then.
36 | * @memberof SerproSignerPromise
37 | */
38 | this.resolve = function (value) {
39 | callbackSuccess(value);
40 | };
41 |
42 | /**
43 | * Return if exists callback error for this promisse.
44 | *
45 | * @return True if has callback error
46 | * @memberof SerproSignerPromise
47 | */
48 | this.hasCallbackError = function () {
49 | return (callbackError === null ? false : true);
50 | }
51 |
52 | /**
53 | * Reject method to us on reject (error) event.
54 | *
55 | * @param {object} value - Value to send a callback setted on Then.
56 | * @memberof SerproSignerPromise
57 | */
58 | this.reject = function (value) {
59 | if (callbackError) {
60 | callbackError(value);
61 | }
62 | };
63 |
64 | });
65 | window.SerproSignerPromise = SerproSignerPromise;
66 |
--------------------------------------------------------------------------------
/impl/signer/src/main/resources/trustedca/raiz.brasil.cer:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIEuDCCA6CgAwIBAgIBBDANBgkqhkiG9w0BAQUFADCBtDELMAkGA1UEBhMCQlIx
3 | EzARBgNVBAoTCklDUC1CcmFzaWwxPTA7BgNVBAsTNEluc3RpdHV0byBOYWNpb25h
4 | bCBkZSBUZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxETAPBgNVBAcTCEJy
5 | YXNpbGlhMQswCQYDVQQIEwJERjExMC8GA1UEAxMoQXV0b3JpZGFkZSBDZXJ0aWZp
6 | Y2Fkb3JhIFJhaXogQnJhc2lsZWlyYTAeFw0wMTExMzAxMjU4MDBaFw0xMTExMzAy
7 | MzU5MDBaMIG0MQswCQYDVQQGEwJCUjETMBEGA1UEChMKSUNQLUJyYXNpbDE9MDsG
8 | A1UECxM0SW5zdGl0dXRvIE5hY2lvbmFsIGRlIFRlY25vbG9naWEgZGEgSW5mb3Jt
9 | YWNhbyAtIElUSTERMA8GA1UEBxMIQnJhc2lsaWExCzAJBgNVBAgTAkRGMTEwLwYD
10 | VQQDEyhBdXRvcmlkYWRlIENlcnRpZmljYWRvcmEgUmFpeiBCcmFzaWxlaXJhMIIB
11 | IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwPMudwX/hvm+Uh2b/lQAcHVA
12 | isamaLkWdkwP9/S/tOKIgRrL6Oy+ZIGlOUdd6uYtk9Ma/3pUpgcfNAj0vYm5gsyj
13 | Qo9emsc+x6m4VWwk9iqMZSCK5EQkAq/Ut4n7KuLE1+gdftwdIgxfUsPt4CyNrY50
14 | QV57KM2UT8x5rrmzEjr7TICGpSUAl2gVqe6xaii+bmYR1QrmWaBSAG59LrkrjrYt
15 | bRhFboUDe1DK+6T8s5L6k8c8okpbHpa9veMztDVC9sPJ60MWXh6anVKo1UcLcbUR
16 | yEeNvZneVRKAAU6ouwdjDvwlsaKydFKwed0ToQ47bmUKgcm+wV3eTRk36UOnTwID
17 | AQABo4HSMIHPME4GA1UdIARHMEUwQwYFYEwBAQAwOjA4BggrBgEFBQcCARYsaHR0
18 | cDovL2FjcmFpei5pY3BicmFzaWwuZ292LmJyL0RQQ2FjcmFpei5wZGYwPQYDVR0f
19 | BDYwNDAyoDCgLoYsaHR0cDovL2FjcmFpei5pY3BicmFzaWwuZ292LmJyL0xDUmFj
20 | cmFpei5jcmwwHQYDVR0OBBYEFIr68VeEERM1kEL6V0lUaQ2kxPA3MA8GA1UdEwEB
21 | /wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBBQUAA4IBAQAZA5c1
22 | U/hgIh6OcgLAfiJgFWpvmDZWqlV30/bHFpj8iBobJSm5uDpt7TirYh1Uxe3fQaGl
23 | YjJe+9zd+izPRbBqXPVQA34EXcwk4qpWuf1hHriWfdrx8AcqSqr6CuQFwSr75Fos
24 | SzlwDADa70mT7wZjAmQhnZx2xJ6wfWlT9VQfS//JYeIc7Fue2JNLd00UOSMMaiK/
25 | t79enKNHEA2fupH3vEigf5Eh4bVAN5VohrTm6MY53x7XQZZr1ME7a55lFEnSeT0u
26 | mlOAjR2mAbvSM5X5oSZNrmetdzyTj2flCM8CC7MLab0kkdngRIlUBGHF1/S5nmPb
27 | K+9A46sd33oqK8n8
28 | -----END CERTIFICATE-----
29 |
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/jar_signer_com_token.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | clear
4 |
5 | ## SETAR O JAVA HOME em .bashrc
6 | echo $JAVA_HOME
7 |
8 |
9 | #Colocar o Pin do Token aqui
10 | PASSWORD="senha"
11 |
12 | #NAO ALTERAR!
13 | DSANAME="SERPRO"
14 |
15 | #Apontar para o caminho onde estão os jars que devem ser assinados
16 | JARPATH="/home/80621732915/git/certificate/example/assinadorweb-example/src/main/webapp"
17 |
18 | #lista os dados do token, inclusive o apelido
19 | keytool -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg drivers.config -storepass $PASSWORD -list
20 |
21 |
22 | for jarfile in $(ls $JARPATH/ass*.jar); do
23 | jarfile_signed="${jarfile%.jar}-assinado.jar"
24 | echo "Gerando jar assinado para $jarfile em $jarfile_signed"
25 | #Nome do arquivo a ser assinado
26 | #JARFILE="security-applet-customizada-1.0.0.jar"
27 |
28 | #nome ddo arquivo depois de assinado
29 | #JARFILESIGNED="security-applet-customizada-1.0.0-assinado.jar"
30 |
31 | #apelido do certificado, rodar o script uma primeira vez no console e copiar o apelido cara este script
32 | ALIAS="SERVICO FEDERAL DE PROCESSAMENTO DE DADOS SERPRO:CETEC's Autoridade Certificadora do SERPRO Final v3 ID"
33 |
34 | #assina o jar
35 | # jarsigner -sigalg SHA512withRSA -verbose -J-Djava.security.debug=sunpkcs11 -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg drivers.config -storepass $PASSWORD -sigfile $DSANAME -signedjar $jarfile_signed -verbose $jarfile "$ALIAS"
36 |
37 | jarsigner -tsa http://sha256timestamp.ws.symantec.com/sha256/timestamp -sigalg SHA512withRSA -verbose -J-Djava.security.debug=sunpkcs11 -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg drivers.config -storepass $PASSWORD -sigfile $DSANAME -signedjar $jarfile_signed -verbose $jarfile "$ALIAS"
38 | # -tsa https://timestamp.geotrust.com/tsa
39 |
40 | done
41 |
42 | exit 0
43 |
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/criptography/master.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | Demoiselle Criptography
7 |
8 |
9 |
10 | O demoiselle-criptography é um componente corporativo que provê um mecanismo simplificado de criptografia de dados. Neste contexto o componente
11 | atua nos dois principais tipos de algoritmos, os algoritmos de chave simétrica e algoritmos de chave assimétrica.
12 |
13 |
14 |
15 | O componente provê as funções de cifragem e decifragem utilizando algoritmos simétricos ou também chamados de algoritmos de chave-simétrica, ou seja, os que utilizam
16 | uma mesma chave para cifrar e decifrar as mensagens.
17 |
18 |
19 |
20 | Além disso o componente utiliza algoritmos de hash para criptografia de dados com a finalidade de criar um valor único que identifique um dado original. Este recurso
21 | é recomendado para finalidades de autenticação, nas quais deseja-se armazenar as senhas criptografas por meio de um valor hash. Também é possível construir hash de
22 | arquivos no intuito de avaliar sua integridade física.
23 |
24 |
25 |
26 | O componente também realiza as funções de cifragem e decifragem por meio de algoritmos de chave-assimétrica. Neste processo é necessário um par de chaves para
27 | realizar a cifragem e decifram das mensagens. A primeira chave é denominada chave privada, ela é de posse exclusiva de seu detentor e ninguém mais a conhece.
28 | A segunda chave do par e denominada de chave pública e pode ser enviada a qualquer indivíduo.
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/util/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.util;
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/extension/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.extension;
--------------------------------------------------------------------------------
/impl/desktop/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 4.0.0
4 |
5 | demoiselle-certificate-desktop
6 | jar
7 |
8 |
9 | br.gov.frameworkdemoiselle.component
10 | demoiselle-certificate-parent
11 | 1.2.9-SNAPSHOT
12 | ../../parent/certificate
13 |
14 |
15 | Demoiselle Certificate Desktop
16 | Demoiselle Desktop Component
17 | http://www.frameworkdemoiselle.gov.br
18 |
19 |
20 |
21 |
22 | GNU Lesser General Public License, Version 3
23 | http://www.gnu.org/licenses/lgpl-3.0.txt
24 |
25 |
26 |
27 |
28 | SERPRO - Serviço Federal de Processamento de Dados
29 | http://www.serpro.gov.br
30 |
31 |
32 |
33 |
34 |
35 | org.apache.maven.plugins
36 | maven-javadoc-plugin
37 |
38 |
39 |
40 |
41 |
42 |
43 | br.gov.frameworkdemoiselle.component
44 | demoiselle-certificate-core
45 | 1.2.9-SNAPSHOT
46 |
47 |
48 | br.gov.frameworkdemoiselle.component
49 | demoiselle-certificate-signer
50 | 1.2.9-SNAPSHOT
51 |
52 |
53 | br.gov.frameworkdemoiselle.component
54 | demoiselle-certificate-ca-icpbrasil
55 | 1.2.9-SNAPSHOT
56 |
57 |
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate;
39 | /**
40 | * @deprecated replaced by Demoiselle SIGNER
41 | * @see https://github.com/demoiselle/signer
42 | *
43 | */
44 |
--------------------------------------------------------------------------------
/example/assinadorweb-example/src/main/webapp/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 | home.html
9 | index.html
10 |
11 |
12 |
13 |
14 | 30
15 |
16 |
17 |
18 |
19 | jnlp
20 | application/x-java-jnlp-file
21 |
22 |
23 |
24 |
25 | resteasy.scan
26 | true
27 |
28 |
29 |
30 |
31 | resteasy.servlet.mapping.prefix
32 | /api
33 |
34 |
35 |
36 |
37 | org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
38 |
39 |
40 |
41 |
42 | resteasy-servlet
43 |
44 | org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
45 |
46 |
47 |
48 |
49 | resteasy-servlet
50 | /api/*
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/impl/signer/src/main/java/br/gov/frameworkdemoiselle/certificate/signer/pkcs7/attribute/SignedAttribute.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.signer.pkcs7.attribute;
39 |
40 | /**
41 | * Padroniza os atributos assinados.
42 | *
43 | * @deprecated replaced by Demoiselle SIGNER
44 | * @see https://github.com/demoiselle/signer
45 | *
46 | */
47 | @Deprecated
48 | public interface SignedAttribute extends Attribute {
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/impl/signer/src/main/java/br/gov/frameworkdemoiselle/certificate/signer/pkcs7/attribute/UnsignedAttribute.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.signer.pkcs7.attribute;
39 |
40 | /**
41 | * Padroniza os atributos não assinados.
42 | *
43 | * @deprecated replaced by Demoiselle SIGNER
44 | * @see https://github.com/demoiselle/signer
45 | *
46 | */
47 | @Deprecated
48 | public interface UnsignedAttribute extends Attribute {
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/IValidator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate;
39 |
40 | import java.security.cert.X509Certificate;
41 |
42 | /**
43 | * @deprecated replaced by Demoiselle SIGNER
44 | * @see https://github.com/demoiselle/signer
45 | *
46 | */
47 | @Deprecated
48 | public interface IValidator {
49 |
50 | public void validate(X509Certificate x509) throws CertificateValidatorException;
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/impl/signer/src/main/resources/trustedca/icpbrasilv2.cer:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIGSzCCBDOgAwIBAgIBATANBgkqhkiG9w0BAQ0FADBxMQswCQYDVQQGEwJCUjET
3 | MBEGA1UEChMKSUNQLUJyYXNpbDEPMA0GA1UECxMGU0VSUFJPMTwwOgYDVQQDEzNB
4 | dXRvcmlkYWRlIENlcnRpZmljYWRvcmEgUmFpeiBkZSBIb21vbG9nYWNhbyBTRVJQ
5 | Uk8wHhcNMTEwNTA1MTMxNTIwWhcNMjIwNTA1MTMxNTIwWjBxMQswCQYDVQQGEwJC
6 | UjETMBEGA1UEChMKSUNQLUJyYXNpbDEPMA0GA1UECxMGU0VSUFJPMTwwOgYDVQQD
7 | EzNBdXRvcmlkYWRlIENlcnRpZmljYWRvcmEgUmFpeiBkZSBIb21vbG9nYWNhbyBT
8 | RVJQUk8wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDnz8vgjvN5mvc1
9 | Knew51o1kiKOXA81Dca7j852HFVimtJkpK5W7XnBUYJv15W2csLkLW9aJwck0K99
10 | Bi8O7Qecimh3j/eA/t5Nl04m+KiHfZSLdB0lh8smUinxmuIev2bcdzhXje6OSFN9
11 | zNeW+nREQSjWM6iLwpBJ5sZsEOzd8vuy4uXhMOJulDkaSruzhLZjyxXAEQ9thzYU
12 | 3VgBIlJm9QGwPF+MqypDKCUJxfhlxs3DHBtlwYkJK4bkZAIJFKgHyIzBKLbPgoz8
13 | QEK1gKFkahZM39HHpG4I3RzpK6n6uknKQncuRvXTVYGCUac2rmUNyjZg85OO5AWE
14 | jEUHZDiv8fzHVCAxlNfdX2jxPEs4Y7XJr4r5IJ36AYPOxikub2WMQy7XLmcL8y76
15 | +cbP9WQV/wBaOxQEAGCsXYYoMbVNllsBO+XmEf5yw1Cusy776I9l77E6RG2D8Nxf
16 | Hvy/o3XqCoeMnjgYRPZMGVYb1hcFrUIfY7O0Vq08LFb6Efejsog0N9jofvVMhzyD
17 | imol85Uyxqw9CzHCdNQxd9dgYKL0hASCg5zOXYN1FG3/u4iN14FoanTTmpuq4Jb8
18 | otZfc7S8pZL8y2dNjfRVs9ULlOOuAS/jLRA29UnuA5Sb0KtA4JnjkiFJpYLa+Jfj
19 | xnC4QHvmUYjMxgHkHbPR/vR/NK5XqwIDAQABo4HtMIHqMEYGA1UdIAQ/MD0wOwYF
20 | YEwAAAAwMjAwBggrBgEFBQcCARYkaHR0cHM6Ly9jY2Rob20uc2VycHJvLmdvdi5i
21 | ci9kcGMucGRmMD8GA1UdHwQ4MDYwNKAyoDCGLmh0dHBzOi8vY2NkaG9tLnNlcnBy
22 | by5nb3YuYnIvbGNyL3JhaXpob212Mi5jcmwwHwYDVR0jBBgwFoAUx7ICqpmpLPna
23 | m5eNNoxA6dXvBHkwHQYDVR0OBBYEFMeyAqqZqSz52puXjTaMQOnV7wR5MA8GA1Ud
24 | EwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBDQUAA4ICAQAc
25 | QrBDD6Kdd8UoehokDSVMhEEFM5ncIig9XtigAaKKhIon58SlHrZ1VpWh3At6y0wA
26 | /NipIM5v3B6K3rCHj9SdsjpKjEVgIhEXbwPDpyGtZ7U3+7bMBtfizZUj5ZVlYl03
27 | QkFVBoAm6qz56oNnfodYdrdN0X8LBNUeSML4qrryx5W8ThqVVRjlBWKO0FLE8DNi
28 | 4nUzbP5KN1dAFDgeKvFBoyPWOpZXoZA33Y4MjbZFydPIBhLTbDZzpygTTAzeuMUy
29 | 78bffAM7O2ayq8l2vkfneNv0RMBR1Di2mwmR0LuJNaNH7oHpI0vA/TvA5cmouK+K
30 | o9Murb44ZZO2sImsnPmzDFEg4hA3XmtpcYktstjjRA1GOR/amxD2jZhE0/P6L5CP
31 | 9ifgQhZ0N6sd0i6jjDdt2s9VqoXYVGgBX1yXhp2GtKK3t8O6cXiSc+6Q3Az05rfj
32 | TKYTYsK/KLuoEHBg3sVSgQ6YJQmMgCZEs4qEtjX29weMYLqzdY8QiwzDVh8X67CA
33 | kgzugNwc7unr8kCC44tgljpTl5QJ2xhDTejrhb+K5Rj8C1OzVYN663uvPcjQ4FpT
34 | mLfPtH+7sTEWwajo7Q1T7Vh4MkyL/8KhvfHGFmHE3Iwi0qmKXXX6PrZFrLeLSjWp
35 | tNfIanv60MxvJobegub3ig2iC/NBp5oaaNI2m2GLzg==
36 | -----END CERTIFICATE-----
37 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/IOIDExtensionLoader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate;
39 |
40 | import java.lang.reflect.Field;
41 | import java.security.cert.X509Certificate;
42 |
43 | /**
44 | * @deprecated replaced by Demoiselle SIGNER
45 | * @see https://github.com/demoiselle/signer
46 | *
47 | */
48 | @Deprecated
49 | public interface IOIDExtensionLoader {
50 |
51 | public void load(Object object, Field field, X509Certificate x509);
52 |
53 | }
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/ca/provider/ProviderCA.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPimport java.security.cert.X509Certificate;
4 | import java.util.Collection;
5 | ----------
6 | * This file is part of Demoiselle Framework.
7 | *
8 | * Demoiselle Framework is free software; you can redistribute it and/or
9 | * modify it under the terms of the GNU Lesser General Public License version 3
10 | * as published by the Free Software Foundation.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public License version 3
18 | * along with this program; if not, see
19 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
20 | * Fifth Floor, Boston, MA 02110-1301, USA.
21 | * ----------------------------------------------------------------------------
22 | * Este arquivo é parte do Framework Demoiselle.
23 | *
24 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
25 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
26 | * do Software Livre (FSF).
27 | *
28 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
29 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
30 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
31 | * para maiores detalhes.
32 | *
33 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
34 | * "LICENCA.txt", junto com esse programa. Se não, acesse
35 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
36 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
37 | */
38 | package br.gov.frameworkdemoiselle.certificate.ca.provider;
39 |
40 | import java.security.cert.X509Certificate;
41 | import java.util.Collection;
42 |
43 | /**
44 | * @deprecated replaced by Demoiselle SIGNER
45 | * @see https://github.com/demoiselle/signer
46 | *
47 | */
48 | @Deprecated
49 | public interface ProviderCA {
50 |
51 | public String getName();
52 |
53 | public Collection getCAs();
54 |
55 | }
56 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/extension/DefaultExtensionType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.extension;
39 |
40 | /**
41 | * @deprecated replaced by Demoiselle SIGNER
42 | * @see https://github.com/demoiselle/signer
43 | *
44 | */
45 | @Deprecated
46 | public enum DefaultExtensionType {
47 |
48 | BEFORE_DATE, AFTER_DATE, CERTIFICATION_AUTHORITY, CRL_URL, SERIAL_NUMBER, ISSUER_DN, SUBJECT_DN, KEY_USAGE, PATH_LENGTH, AUTHORITY_KEY_IDENTIFIER, SUBJECT_KEY_IDENTIFIER;
49 |
50 | }
--------------------------------------------------------------------------------
/impl/signer/src/main/java/br/gov/frameworkdemoiselle/certificate/signer/pkcs1/PKCS1Signer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.signer.pkcs1;
39 |
40 | import br.gov.frameworkdemoiselle.certificate.signer.Signer;
41 |
42 | /**
43 | * Especificação básica para implementação de assinaturas digitais Formato
44 | * PKCS1.
45 | *
46 | * @deprecated replaced by Demoiselle SIGNER
47 | * @see https://github.com/demoiselle/signer
48 | *
49 | */
50 | @Deprecated
51 | public interface PKCS1Signer extends Signer {
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/impl/desktop/src/main/java/br/gov/frameworkdemoiselle/certificate/ui/factory/FactoryException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.ui.factory;
39 |
40 | /**
41 | * Excecoes geradas pela package Factory
42 | */
43 | @Deprecated
44 | public class FactoryException extends RuntimeException {
45 |
46 | private static final long serialVersionUID = 1L;
47 |
48 | /**
49 | * Construtor recebendo mensagem e causa
50 | *
51 | * @param message
52 | * @param error
53 | */
54 | public FactoryException(String message, Throwable error) {
55 | super(message, error);
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/impl/desktop/src/main/java/br/gov/frameworkdemoiselle/certificate/ui/action/FrameExecute.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.ui.action;
39 |
40 | import java.security.KeyStore;
41 |
42 | import br.gov.frameworkdemoiselle.certificate.ui.view.MainFrame;
43 |
44 | /**
45 | * @author SUPST/STDCS
46 | */
47 | @Deprecated
48 | public interface FrameExecute {
49 |
50 | public void execute(KeyStore ks, String alias, MainFrame principal);
51 |
52 | public void cancel(KeyStore ks, String alias, MainFrame principal);
53 |
54 | public void close(MainFrame principal);
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/impl/applet/src/main/java/br/gov/frameworkdemoiselle/certificate/applet/factory/FactoryException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.applet.factory;
39 |
40 | /**
41 | * Excecoes geradas pela package Factory
42 | */
43 | @Deprecated
44 | public class FactoryException extends RuntimeException {
45 |
46 | private static final long serialVersionUID = 1L;
47 |
48 | /**
49 | * Construtor recebendo mensagem e causa
50 | *
51 | * @param message
52 | * @param error
53 | */
54 | public FactoryException(String message, Throwable error) {
55 | super(message, error);
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/impl/signer/src/main/resources/trustedca/ICP-Brasilv2.crt:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIGoTCCBImgAwIBAgIBATANBgkqhkiG9w0BAQ0FADCBlzELMAkGA1UEBhMCQlIx
3 | EzARBgNVBAoTCklDUC1CcmFzaWwxPTA7BgNVBAsTNEluc3RpdHV0byBOYWNpb25h
4 | bCBkZSBUZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxNDAyBgNVBAMTK0F1
5 | dG9yaWRhZGUgQ2VydGlmaWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjIwHhcNMTAw
6 | NjIxMTkwNDU3WhcNMjMwNjIxMTkwNDU3WjCBlzELMAkGA1UEBhMCQlIxEzARBgNV
7 | BAoTCklDUC1CcmFzaWwxPTA7BgNVBAsTNEluc3RpdHV0byBOYWNpb25hbCBkZSBU
8 | ZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxNDAyBgNVBAMTK0F1dG9yaWRh
9 | ZGUgQ2VydGlmaWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjIwggIiMA0GCSqGSIb3
10 | DQEBAQUAA4ICDwAwggIKAoICAQC6RqQO3edA8rWgfFKVV0X8bYTzhgHJhQOtmKvS
11 | 8l4Fmcm7b2Jn/XdEuQMHPNIbAGLUcCxCg3lmq5lWroG8akm983QPYrfrWwdmlEIk
12 | nUasmkIYMPAkqFFB6quV8agrAnhptSknXpwuc8b+I6Xjps79bBtrAFTrAK1POkw8
13 | 5wqIW9pemgtW5LVUOB3yCpNkTsNBklMgKs/8dG7U2zM4YuT+jkxYHPePKk3/xZLZ
14 | CVK9z3AAnWmaM2qIh0UhmRZRDTTfgr20aah8fNTd0/IVXEvFWBDqhRnLNiJYKnIM
15 | mpbeys8IUWG/tAUpBiuGkP7pTcMEBUfLz3bZf3Gmh3sVQOQzgHgHHaTyjptAO8ly
16 | UN9pvvAslh+QtdWudONltIwa6Wob+3JcxYJU6uBTB8TMEun33tcv1EgvRz8mYQSx
17 | Epoza7WGSxMr0IadR+1p+/yEEmb4VuUOimx2xGsaesKgWhLRI4lYAXwIWNoVjhXZ
18 | fn03tqRF9QOFzEf6i3lFuGZiM9MmSt4c6dR/5m0muTx9zQ8oCikPm91jq7mmRxqE
19 | 14WkA2UGBEtSjYM0Qn8xjhEu5rNnlUB+l3pAAPkRbIM4WK0DM1umxMHFsKwNqQbw
20 | pmkBNLbp+JRITz6mdQnsSsU74MlesDL/n2lZzzwwbw3OJ1fsWhto/+xPb3gyPnnF
21 | tF2VfwIDAQABo4H1MIHyME4GA1UdIARHMEUwQwYFYEwBAQAwOjA4BggrBgEFBQcC
22 | ARYsaHR0cDovL2FjcmFpei5pY3BicmFzaWwuZ292LmJyL0RQQ2FjcmFpei5wZGYw
23 | PwYDVR0fBDgwNjA0oDKgMIYuaHR0cDovL2FjcmFpei5pY3BicmFzaWwuZ292LmJy
24 | L0xDUmFjcmFpenYyLmNybDAfBgNVHSMEGDAWgBQMOSA6twEfy9cofUGgx/pKrTIk
25 | vjAdBgNVHQ4EFgQUDDkgOrcBH8vXKH1BoMf6Sq0yJL4wDwYDVR0TAQH/BAUwAwEB
26 | /zAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQENBQADggIBAFmaFGkYbX0pQ3B9
27 | dpth33eOGnbkqdbLdqQWDEyUEsaQ0YEDxa0G2S1EvLIJdgmAOWcAGDRtBgrmtRBZ
28 | SLp1YPw/jh0YVXArnkuVrImrCncke2HEx5EmjkYTUTe2jCcK0w3wmisig4OzvYM1
29 | rZs8vHiDKTVhNvgRcTMgVGNTRQHYE1qEO9dmEyS3xEbFIthzJO4cExeWyCXoGx7P
30 | 34VQbTzq91CeG5fep2vb1nPSz3xQwLCM5VMSeoY5rDVbZ8fq1PvRwl3qDpdzmK4p
31 | v+Q68wQ2UCzt3h7bhegdhAnu86aDM1tvR3lPSLX8uCYTq6qz9GER+0Vn8x0+bv4q
32 | SyZEGp+xouA82uDkBTp4rPuooU2/XSx3KZDNEx3vBijYtxTzW8jJnqd+MRKKeGLE
33 | 0QW8BgJjBCsNid3kXFsygETUQuwq8/JAhzHVPuIKMgwUjdVybQvm/Y3kqPMFjXUX
34 | d5sKufqQkplliDJnQwWOLQsVuzXxYejZZ3ftFuXoAS1rND+Og7P36g9KHj41hJ2M
35 | gDQ/qZXow63EzZ7KFBYsGZ7kNou5uaNCJQc+w+XVaE+gZhyms7ZzHJAaP0C5GlZC
36 | cIf/by0PEf0e//eFMBUO4xcx7ieVzMnpmR6Xx21bB7UFaj3yRd+6gnkkcC6bgh9m
37 | qaVtJ8z2KqLRX4Vv4EadqtKlTlUO
38 | -----END CERTIFICATE-----
39 |
--------------------------------------------------------------------------------
/impl/ca-icp-brasil/src/main/resources/trustedca/ICP-Brasilv2.crt:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIGoTCCBImgAwIBAgIBATANBgkqhkiG9w0BAQ0FADCBlzELMAkGA1UEBhMCQlIx
3 | EzARBgNVBAoTCklDUC1CcmFzaWwxPTA7BgNVBAsTNEluc3RpdHV0byBOYWNpb25h
4 | bCBkZSBUZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxNDAyBgNVBAMTK0F1
5 | dG9yaWRhZGUgQ2VydGlmaWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjIwHhcNMTAw
6 | NjIxMTkwNDU3WhcNMjMwNjIxMTkwNDU3WjCBlzELMAkGA1UEBhMCQlIxEzARBgNV
7 | BAoTCklDUC1CcmFzaWwxPTA7BgNVBAsTNEluc3RpdHV0byBOYWNpb25hbCBkZSBU
8 | ZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxNDAyBgNVBAMTK0F1dG9yaWRh
9 | ZGUgQ2VydGlmaWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjIwggIiMA0GCSqGSIb3
10 | DQEBAQUAA4ICDwAwggIKAoICAQC6RqQO3edA8rWgfFKVV0X8bYTzhgHJhQOtmKvS
11 | 8l4Fmcm7b2Jn/XdEuQMHPNIbAGLUcCxCg3lmq5lWroG8akm983QPYrfrWwdmlEIk
12 | nUasmkIYMPAkqFFB6quV8agrAnhptSknXpwuc8b+I6Xjps79bBtrAFTrAK1POkw8
13 | 5wqIW9pemgtW5LVUOB3yCpNkTsNBklMgKs/8dG7U2zM4YuT+jkxYHPePKk3/xZLZ
14 | CVK9z3AAnWmaM2qIh0UhmRZRDTTfgr20aah8fNTd0/IVXEvFWBDqhRnLNiJYKnIM
15 | mpbeys8IUWG/tAUpBiuGkP7pTcMEBUfLz3bZf3Gmh3sVQOQzgHgHHaTyjptAO8ly
16 | UN9pvvAslh+QtdWudONltIwa6Wob+3JcxYJU6uBTB8TMEun33tcv1EgvRz8mYQSx
17 | Epoza7WGSxMr0IadR+1p+/yEEmb4VuUOimx2xGsaesKgWhLRI4lYAXwIWNoVjhXZ
18 | fn03tqRF9QOFzEf6i3lFuGZiM9MmSt4c6dR/5m0muTx9zQ8oCikPm91jq7mmRxqE
19 | 14WkA2UGBEtSjYM0Qn8xjhEu5rNnlUB+l3pAAPkRbIM4WK0DM1umxMHFsKwNqQbw
20 | pmkBNLbp+JRITz6mdQnsSsU74MlesDL/n2lZzzwwbw3OJ1fsWhto/+xPb3gyPnnF
21 | tF2VfwIDAQABo4H1MIHyME4GA1UdIARHMEUwQwYFYEwBAQAwOjA4BggrBgEFBQcC
22 | ARYsaHR0cDovL2FjcmFpei5pY3BicmFzaWwuZ292LmJyL0RQQ2FjcmFpei5wZGYw
23 | PwYDVR0fBDgwNjA0oDKgMIYuaHR0cDovL2FjcmFpei5pY3BicmFzaWwuZ292LmJy
24 | L0xDUmFjcmFpenYyLmNybDAfBgNVHSMEGDAWgBQMOSA6twEfy9cofUGgx/pKrTIk
25 | vjAdBgNVHQ4EFgQUDDkgOrcBH8vXKH1BoMf6Sq0yJL4wDwYDVR0TAQH/BAUwAwEB
26 | /zAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQENBQADggIBAFmaFGkYbX0pQ3B9
27 | dpth33eOGnbkqdbLdqQWDEyUEsaQ0YEDxa0G2S1EvLIJdgmAOWcAGDRtBgrmtRBZ
28 | SLp1YPw/jh0YVXArnkuVrImrCncke2HEx5EmjkYTUTe2jCcK0w3wmisig4OzvYM1
29 | rZs8vHiDKTVhNvgRcTMgVGNTRQHYE1qEO9dmEyS3xEbFIthzJO4cExeWyCXoGx7P
30 | 34VQbTzq91CeG5fep2vb1nPSz3xQwLCM5VMSeoY5rDVbZ8fq1PvRwl3qDpdzmK4p
31 | v+Q68wQ2UCzt3h7bhegdhAnu86aDM1tvR3lPSLX8uCYTq6qz9GER+0Vn8x0+bv4q
32 | SyZEGp+xouA82uDkBTp4rPuooU2/XSx3KZDNEx3vBijYtxTzW8jJnqd+MRKKeGLE
33 | 0QW8BgJjBCsNid3kXFsygETUQuwq8/JAhzHVPuIKMgwUjdVybQvm/Y3kqPMFjXUX
34 | d5sKufqQkplliDJnQwWOLQsVuzXxYejZZ3ftFuXoAS1rND+Og7P36g9KHj41hJ2M
35 | gDQ/qZXow63EzZ7KFBYsGZ7kNou5uaNCJQc+w+XVaE+gZhyms7ZzHJAaP0C5GlZC
36 | cIf/by0PEf0e//eFMBUO4xcx7ieVzMnpmR6Xx21bB7UFaj3yRd+6gnkkcC6bgh9m
37 | qaVtJ8z2KqLRX4Vv4EadqtKlTlUO
38 | -----END CERTIFICATE-----
39 |
--------------------------------------------------------------------------------
/impl/ca-icp-brasil/src/main/resources/trustedca/ICP-Brasilv5.crt:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIGoTCCBImgAwIBAgIBATANBgkqhkiG9w0BAQ0FADCBlzELMAkGA1UEBhMCQlIx
3 | EzARBgNVBAoMCklDUC1CcmFzaWwxPTA7BgNVBAsMNEluc3RpdHV0byBOYWNpb25h
4 | bCBkZSBUZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxNDAyBgNVBAMMK0F1
5 | dG9yaWRhZGUgQ2VydGlmaWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjUwHhcNMTYw
6 | MzAyMTMwMTM4WhcNMjkwMzAyMjM1OTM4WjCBlzELMAkGA1UEBhMCQlIxEzARBgNV
7 | BAoMCklDUC1CcmFzaWwxPTA7BgNVBAsMNEluc3RpdHV0byBOYWNpb25hbCBkZSBU
8 | ZWNub2xvZ2lhIGRhIEluZm9ybWFjYW8gLSBJVEkxNDAyBgNVBAMMK0F1dG9yaWRh
9 | ZGUgQ2VydGlmaWNhZG9yYSBSYWl6IEJyYXNpbGVpcmEgdjUwggIiMA0GCSqGSIb3
10 | DQEBAQUAA4ICDwAwggIKAoICAQD3LXgabUWsF+gUXw/6YODeF2XkqEyfk3VehdsI
11 | x+3/ERgdjCS/ouxYR0Epi2hdoMUVJDNf3XQfjAWXJyCoTneHYAl2McMdvoqtLB2i
12 | leQlJiis0fTtYTJayee9BAIdIrCor1Lc0vozXCpDtq5nTwhjIocaZtcuFsdrkl+n
13 | bfYxl5m7vjTkTMS6j8ffjmFzbNPDlJuV3Vy7AzapPVJrMl6UHPXCHMYMzl0KxR/4
14 | 7S5XGgmLYkYt8bNCHA3fg07y+Gtvgu+SNhMPwWKIgwhYw+9vErOnavRhOimYo4M2
15 | AwNpNK0OKLI7Im5V094jFp4Ty+mlmfQH00k8nkSUEN+1TGGkhv16c2hukbx9iCfb
16 | mk7im2hGKjQA8eH64VPYoS2qdKbPbd3xDDHN2croYKpy2U2oQTVBSf9hC3o6fKo3
17 | zp0U3dNiw7ZgWKS9UwP31Q0gwgB1orZgLuF+LIppHYwxcTG/AovNWa4sTPukMiX2
18 | L+p7uIHExTZJJU4YoDacQh/mfbPIz3261He4YFmQ35sfw3eKHQSOLyiVfev/n0l/
19 | r308PijEd+d+Hz5RmqIzS8jYXZIeJxym4mEjE1fKpeP56Ea52LlIJ8ZqsJ3xzHWu
20 | 3WkAVz4hMqrX6BPMGW2IxOuEUQyIaCBg1lI6QLiPMHvo2/J7gu4YfqRcH6i27W3H
21 | yzamEQIDAQABo4H1MIHyME4GA1UdIARHMEUwQwYFYEwBAQAwOjA4BggrBgEFBQcC
22 | ARYsaHR0cDovL2FjcmFpei5pY3BicmFzaWwuZ292LmJyL0RQQ2FjcmFpei5wZGYw
23 | PwYDVR0fBDgwNjA0oDKgMIYuaHR0cDovL2FjcmFpei5pY3BicmFzaWwuZ292LmJy
24 | L0xDUmFjcmFpenY1LmNybDAfBgNVHSMEGDAWgBRpqL512cTvbOcTReRhbuVo+LZA
25 | XjAdBgNVHQ4EFgQUaai+ddnE72znE0XkYW7laPi2QF4wDwYDVR0TAQH/BAUwAwEB
26 | /zAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQENBQADggIBABRt2/JiWapef7o/
27 | plhR4PxymlMIp/JeZ5F0BZ1XafmYpl5g6pRokFrIRMFXLyEhlgo51I05InyCc9Td
28 | 6UXjlsOASTc/LRavyjB/8NcQjlRYDh6xf7OdP05mFcT/0+6bYRtNgsnUbr10pfsK
29 | /UzyUvQWbumGS57hCZrAZOyd9MzukiF/azAa6JfoZk2nDkEudKOY8tRyTpMmDzN5
30 | fufPSC3v7tSJUqTqo5z7roN/FmckRzGAYyz5XulbOc5/UsAT/tk+KP/clbbqd/hh
31 | evmmdJclLr9qWZZcOgzuFU2YsgProtVu0fFNXGr6KK9fu44pOHajmMsTXK3X7r/P
32 | wh19kFRow5F3RQMUZC6Re0YLfXh+ypnUSCzA+uL4JPtHIGyvkbWiulkustpOKUSV
33 | wBPzvA2sQUOvqdbAR7C8jcHYFJMuK2HZFji7pxcWWab/NKsFcJ3sluDjmhizpQax
34 | bYTfAVXu3q8yd0su/BHHhBpteyHvYyyz0Eb9LUysR2cMtWvfPU6vnoPgYvOGO1Cz
35 | iyGEsgKULkCH4o2Vgl1gQuKWO4V68rFW8a/jvq28sbY+y/Ao0I5ohpnBcQOAawiF
36 | bz6yJtObajYMuztDDP8oY656EuuJXBJhuKAJPI/7WDtgfV8ffOh/iQGQATVMtgDN
37 | 0gv8bn5NdUX8UMNX1sHhU3H1UpoW
38 | -----END CERTIFICATE-----
39 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/ca/provider/ProviderSignaturePolicyRootCA.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRimport java.security.cert.X509Certificate;
4 | import java.util.Collection;
5 | ---------
6 | * This file is part of Demoiselle Framework.
7 | *
8 | * Demoiselle Framework is free software; you can redistribute it and/or
9 | * modify it under the terms of the GNU Lesser General Public License version 3
10 | * as published by the Free Software Foundation.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public License version 3
18 | * along with this program; if not, see
19 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
20 | * Fifth Floor, Boston, MA 02110-1301, USA.
21 | * ----------------------------------------------------------------------------
22 | * Este arquivo é parte do Framework Demoiselle.
23 | *
24 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
25 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
26 | * do Software Livre (FSF).
27 | *
28 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
29 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
30 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
31 | * para maiores detalhes.
32 | *
33 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
34 | * "LICENCA.txt", junto com esse programa. Se não, acesse
35 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
36 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
37 | */
38 | package br.gov.frameworkdemoiselle.certificate.ca.provider;
39 |
40 | import java.security.cert.X509Certificate;
41 | import java.util.Collection;
42 |
43 | /**
44 | * @deprecated replaced by Demoiselle SIGNER
45 | * @see https://github.com/demoiselle/signer
46 | *
47 | */
48 | @Deprecated
49 | public interface ProviderSignaturePolicyRootCA {
50 |
51 | public Collection getCAs();
52 |
53 | public String getSignaturePolicyOID();
54 | }
55 |
--------------------------------------------------------------------------------
/documentation/reference/pt-BR/ca-icp-brasil-homologacao/configuracao.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 | Configuração do CA ICP-Brasil Homologação
7 |
8 |
9 | Instalação do componente
10 |
11 | Para instalar o componente
12 | Demoiselle CA ICP-Brasil Homologação
13 | na aplicação, basta adicionar a sua dependência no arquivo
14 | pom.xml
15 | do projeto gerenciado pelo Maven:
16 |
17 |
19 | br.gov.frameworkdemoiselle.component
20 | demoiselle-certificate-ca-icpbrasil-homologacao
21 | 1.2.0-RC1
22 | ]]>
23 |
24 |
25 |
26 |
27 | Autoridades Certificadoras
28 |
29 |
30 | Abaixo mostraremos a lista de autoridades certificadoras atual que está presente no componente:
31 |
32 |
33 |
34 | Lista de Autoridades Certificadoras
35 |
36 |
37 |
38 |
39 |
40 |
41 | Autoridade Certificadora
42 | Arquivo
43 |
44 |
45 |
46 |
47 | Autoridade Certificadora Raiz de Homologacao SERPRO
48 | RaizdeHomologacaoSERPRO.cer
49 |
50 |
51 | Autoridade Certificadora Intermediaria HOMv2
52 | IntermediariaHOMv2.cer
53 |
54 |
55 | Autoridade Certificadora ACSERPROACFv3 Homologacao
56 | ACSERPROACFv3Homologacao.cer
57 |
58 |
59 |
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/keystore/loader/InvalidPinException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.keystore.loader;
39 |
40 | /**
41 | * @deprecated replaced by Demoiselle SIGNER
42 | * @see https://github.com/demoiselle/signer
43 | *
44 | */
45 | @Deprecated
46 | public class InvalidPinException extends KeyStoreLoaderException {
47 |
48 | private static final long serialVersionUID = 1L;
49 |
50 | public InvalidPinException(String message, Throwable e) {
51 | super(message, e);
52 | }
53 |
54 | public InvalidPinException(String message) {
55 | super(message);
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/keystore/loader/PKCS11NotFoundException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.keystore.loader;
39 |
40 | /**
41 | * @deprecated replaced by Demoiselle SIGNER
42 | * @see https://github.com/demoiselle/signer
43 | *
44 | */
45 | @Deprecated
46 | public class PKCS11NotFoundException extends KeyStoreLoaderException {
47 |
48 | private static final long serialVersionUID = 1L;
49 |
50 | public PKCS11NotFoundException(String message, Throwable e) {
51 | super(message, e);
52 | }
53 |
54 | public PKCS11NotFoundException(String message) {
55 | super(message);
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/impl/signer/src/main/java/br/gov/frameworkdemoiselle/certificate/signer/pkcs7/attribute/SigPolicyQualifierInfo.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.signer.pkcs7.attribute;
39 | /**
40 | * @deprecated replaced by Demoiselle SIGNER
41 | * @see https://github.com/demoiselle/signer
42 | *
43 | */
44 | @Deprecated
45 | public abstract class SigPolicyQualifierInfo {
46 |
47 | private String OID;
48 | private Object value;
49 |
50 | public void setOID(String OID) {
51 | this.OID = OID;
52 | }
53 |
54 | public String getOID() {
55 | return this.OID;
56 | }
57 |
58 | public Object getValue() {
59 | return this.value;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/keystore/loader/DriverNotAvailableException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.keystore.loader;
39 |
40 | /**
41 | * @deprecated replaced by Demoiselle SIGNER
42 | * @see https://github.com/demoiselle/signer
43 | *
44 | */
45 | @Deprecated
46 | public class DriverNotAvailableException extends KeyStoreLoaderException {
47 |
48 | private static final long serialVersionUID = 1L;
49 |
50 | public DriverNotAvailableException(String message, Throwable e) {
51 | super(message, e);
52 | }
53 |
54 | public DriverNotAvailableException(String message) {
55 | super(message);
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/CertificateException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate;
39 |
40 | /**
41 | * @deprecated replaced by Demoiselle SIGNER
42 | * @see https://github.com/demoiselle/signer
43 | *
44 | */
45 | @Deprecated
46 | public class CertificateException extends RuntimeException {
47 |
48 | private static final long serialVersionUID = 1L;
49 |
50 | public CertificateException() {
51 | super();
52 | }
53 |
54 | public CertificateException(String message) {
55 | super(message);
56 | }
57 |
58 | public CertificateException(String message, Throwable cause) {
59 | super(message, cause);
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/impl/desktop/src/main/java/br/gov/frameworkdemoiselle/certificate/ui/action/AbstractFrameExecute.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.ui.action;
39 |
40 | import java.security.KeyStore;
41 |
42 | import br.gov.frameworkdemoiselle.certificate.ui.view.MainFrame;
43 |
44 | /**
45 | * @author SUPST/STDCS
46 | *
47 | */
48 | @Deprecated
49 | public abstract class AbstractFrameExecute implements FrameExecute {
50 |
51 | @Override
52 | public abstract void execute(KeyStore ks, String alias, MainFrame principal);
53 |
54 | @Override
55 | public abstract void cancel(KeyStore ks, String alias, MainFrame principal);
56 |
57 | @Override
58 | public abstract void close(MainFrame principal);
59 |
60 | }
61 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/util/CertificateUtilException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.util;
39 |
40 | /**
41 | * @deprecated replaced by Demoiselle SIGNER
42 | * @see https://github.com/demoiselle/signer
43 | *
44 | */
45 | @Deprecated
46 | public class CertificateUtilException extends RuntimeException {
47 |
48 | private static final long serialVersionUID = 1L;
49 |
50 | public CertificateUtilException() {
51 | super();
52 | }
53 |
54 | public CertificateUtilException(String message) {
55 | super(message);
56 | }
57 |
58 | public CertificateUtilException(String message, Throwable cause) {
59 | super(message, cause);
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/OIDExtension.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010import java.lang.annotation.Documented;
4 | import java.lang.annotation.ElementType;
5 | import java.lang.annotation.Retention;
6 | import java.lang.annotation.RetentionPolicy;
7 | import java.lang.annotation.Target;
8 | it and/or
9 | * modify it under the terms of the GNU Lesser General Public License version 3
10 | * as published by the Free Software Foundation.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public License version 3
18 | * along with this program; if not, see
19 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
20 | * Fifth Floor, Boston, MA 02110-1301, USA.
21 | * ----------------------------------------------------------------------------
22 | * Este arquivo é parte do Framework Demoiselle.
23 | *
24 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
25 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
26 | * do Software Livre (FSF).
27 | *
28 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
29 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
30 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
31 | * para maiores detalhes.
32 | *
33 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
34 | * "LICENCA.txt", junto com esse programa. Se não, acesse
35 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
36 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
37 | */
38 |
39 | package br.gov.frameworkdemoiselle.certificate;
40 |
41 | import java.lang.annotation.Documented;
42 | import java.lang.annotation.ElementType;
43 | import java.lang.annotation.Retention;
44 | import java.lang.annotation.RetentionPolicy;
45 | import java.lang.annotation.Target;
46 |
47 | /**
48 | * @deprecated replaced by Demoiselle SIGNER
49 | * @see https://github.com/demoiselle/signer
50 | *
51 | */
52 | @Deprecated
53 | @Documented
54 | @Retention(RetentionPolicy.RUNTIME)
55 | @Target(value = ElementType.ANNOTATION_TYPE)
56 | public @interface OIDExtension {
57 |
58 | public Class extends IOIDExtensionLoader> loader();
59 |
60 | }
61 |
--------------------------------------------------------------------------------
/impl/desktop/src/main/java/br/gov/frameworkdemoiselle/certificate/ui/util/ConectionException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.ui.util;
39 |
40 | /**
41 | * @author SUPST/STDCS
42 | */
43 | @Deprecated
44 | public class ConectionException extends RuntimeException{
45 |
46 | private static final long serialVersionUID = 1L;
47 |
48 |
49 | /**
50 | * Construtor recebendo mensagem e causa
51 | *
52 | * @param message
53 | * @param error
54 | */
55 | public ConectionException(String message, Throwable error) {
56 | super(message, error);
57 | }
58 |
59 |
60 | /**
61 | * Construtor recebendo mensagem
62 | *
63 | * @param message
64 | */
65 | public ConectionException(String message) {
66 | super(message);
67 | }
68 |
69 |
70 | }
71 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/ca/manager/CAManagerException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 | package br.gov.frameworkdemoiselle.certificate.ca.manager;
38 |
39 | /**
40 | * @deprecated replaced by Demoiselle SIGNER
41 | * @see https://github.com/demoiselle/signer
42 | *
43 | */
44 | @Deprecated
45 | public class CAManagerException extends RuntimeException {
46 |
47 | private static final long serialVersionUID = 6416422024286509896L;
48 |
49 | public CAManagerException() {
50 | super();
51 | }
52 |
53 | public CAManagerException(String message) {
54 | super(message);
55 | }
56 |
57 | public CAManagerException(String message, Throwable error) {
58 | super(message, error);
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/extension/ICPBrasilExtensionType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.extension;
39 |
40 | /**
41 | * @deprecated replaced by Demoiselle SIGNER
42 | * @see https://github.com/demoiselle/signer
43 | *
44 | */
45 | @Deprecated
46 | public enum ICPBrasilExtensionType {
47 |
48 | CPF, CNPJ, CEI, CEI_PESSOA_FISICA, CEI_PESSOA_JURIDICA, PIS_PASEP, NIS, NOME, NOME_RESPONSAVEL_PESSOA_JURIDICA, EMAIL, DATA_NASCIMENTO, NUMERO_IDENTIDADE, ORGAO_EXPEDIDOR_IDENTIDADE, UF_ORGAO_EXPEDIDOR_IDENTIDADE, NUMERO_TITULO_ELEITOR, ZONA_TITULO_ELEITOR, SECAO_TITULO_ELEITOR, MUNICIPIO_TITULO_ELEITOR, UF_TITULO_ELEITOR, NOME_EMPRESARIAL, TIPO_CERTIFICADO, NIVEL_CERTIFICADO;
49 |
50 | }
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/keystore/loader/KeyStoreLoader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 | package br.gov.frameworkdemoiselle.certificate.keystore.loader;
38 |
39 | import java.security.KeyStore;
40 |
41 | import javax.security.auth.callback.CallbackHandler;
42 |
43 | /**
44 | * Especificação de um KeyStoreLoader. A maioria dos providers pedem o PIN
45 | * number na hora de acessar o recurso. Um PIN Number é a senha de acesso ao
46 | * token/smart card.
47 | * @deprecated replaced by Demoiselle SIGNER
48 | * @see https://github.com/demoiselle/signer
49 | *
50 | */
51 | @Deprecated
52 | public interface KeyStoreLoader {
53 |
54 | public KeyStore getKeyStore();
55 |
56 | public void setCallbackHandler(CallbackHandler callback);
57 |
58 | }
--------------------------------------------------------------------------------
/impl/signer/src/main/java/br/gov/frameworkdemoiselle/certificate/signer/SignerException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.signer;
39 |
40 | /**
41 | * @deprecated replaced by Demoiselle SIGNER
42 | * @see https://github.com/demoiselle/signer
43 | *
44 | */
45 | @Deprecated
46 | public class SignerException extends RuntimeException {
47 |
48 | private static final long serialVersionUID = 1L;
49 |
50 | public SignerException() {
51 | super();
52 | }
53 |
54 | public SignerException(String message) {
55 | super(message);
56 | }
57 |
58 | public SignerException(String message, Throwable cause) {
59 | super(message, cause);
60 | }
61 |
62 | public SignerException(Throwable cause) {
63 | super(cause);
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/impl/criptography/src/main/java/br/gov/frameworkdemoiselle/certificate/criptography/CriptographyException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.criptography;
39 |
40 | /**
41 | * Default Exception package
42 | * @deprecated replaced by Demoiselle SIGNER
43 | * @see https://github.com/demoiselle/signer
44 | *
45 | */
46 | @Deprecated
47 | public class CriptographyException extends RuntimeException {
48 |
49 | private static final long serialVersionUID = 2063536693414468728L;
50 |
51 | public CriptographyException() {
52 | super();
53 | }
54 |
55 | public CriptographyException(String message) {
56 | super(message);
57 | }
58 |
59 | public CriptographyException(String message, Throwable cause) {
60 | super(message, cause);
61 | }
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/impl/signer/src/main/java/br/gov/frameworkdemoiselle/certificate/signer/pkcs7/bc/attribute/BCSignedAttribute.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.signer.pkcs7.bc.attribute;
39 |
40 | import br.gov.frameworkdemoiselle.certificate.signer.pkcs7.attribute.Attribute;
41 | import br.gov.frameworkdemoiselle.certificate.signer.pkcs7.attribute.SignedAttribute;
42 |
43 | /**
44 | * Conversao de atributos do componente para BouncyCastle
45 | *
46 | *
47 | * @deprecated replaced by Demoiselle SIGNER
48 | * @see https://github.com/demoiselle/signer
49 | *
50 | */
51 | @Deprecated
52 | public abstract class BCSignedAttribute extends BCAttribute implements SignedAttribute {
53 |
54 | public BCSignedAttribute(Attribute attribute) {
55 | super(attribute);
56 | }
57 | }
--------------------------------------------------------------------------------
/impl/ca-icp-brasil/src/main/java/br/gov/frameworkdemoiselle/certificate/ca/provider/impl/ICPBrasilProviderCAException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.ca.provider.impl;
39 |
40 | /**
41 | * @deprecated replaced by Demoiselle SIGNER
42 | * @see https://github.com/demoiselle/signer
43 | *
44 | */
45 | @Deprecated
46 | public class ICPBrasilProviderCAException extends RuntimeException {
47 |
48 | private static final long serialVersionUID = -6402129068352716143L;
49 |
50 | public ICPBrasilProviderCAException() {
51 | super();
52 | }
53 |
54 | public ICPBrasilProviderCAException(String message) {
55 | super(message);
56 | }
57 |
58 | public ICPBrasilProviderCAException(String message, Throwable cause) {
59 | super(message, cause);
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/impl/signer/src/main/java/br/gov/frameworkdemoiselle/certificate/signer/pkcs7/bc/attribute/BCUnsignedAttribute.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.signer.pkcs7.bc.attribute;
39 |
40 | import br.gov.frameworkdemoiselle.certificate.signer.pkcs7.attribute.Attribute;
41 | import br.gov.frameworkdemoiselle.certificate.signer.pkcs7.attribute.UnsignedAttribute;
42 |
43 | /**
44 | * Conversao de atributos do componente para BouncyCastle
45 | *
46 | * @deprecated replaced by Demoiselle SIGNER
47 | * @see https://github.com/demoiselle/signer
48 | *
49 | */
50 | @Deprecated
51 | public abstract class BCUnsignedAttribute extends BCAttribute implements UnsignedAttribute {
52 |
53 | public BCUnsignedAttribute(Attribute attribute) {
54 | super(attribute);
55 | }
56 |
57 | }
58 |
--------------------------------------------------------------------------------
/impl/signer/src/main/java/br/gov/frameworkdemoiselle/certificate/signer/pkcs7/attribute/SigningCertificate.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.signer.pkcs7.attribute;
39 |
40 | import java.security.cert.X509Certificate;
41 | /**
42 | * @deprecated replaced by Demoiselle SIGNER
43 | * @see https://github.com/demoiselle/signer
44 | *
45 | */
46 | @Deprecated
47 | public class SigningCertificate implements SignedAttribute {
48 |
49 | private final X509Certificate certificate;
50 |
51 | public SigningCertificate(X509Certificate certificate) {
52 | this.certificate = certificate;
53 | }
54 |
55 | @Override
56 | public String getOID() {
57 | return "1.2.840.113549.1.9.16.2.12";
58 | }
59 |
60 | @Override
61 | public X509Certificate getValue() {
62 | return this.certificate;
63 | }
64 | }
--------------------------------------------------------------------------------
/impl/signer/src/main/java/br/gov/frameworkdemoiselle/certificate/signer/pkcs7/attribute/MessageDigest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.signer.pkcs7.attribute;
39 | /**
40 | * @deprecated replaced by Demoiselle SIGNER
41 | * @see https://github.com/demoiselle/signer
42 | *
43 | */
44 | @Deprecated
45 | public class MessageDigest implements SignedAttribute {
46 |
47 | private byte[] hash;
48 |
49 | @Override
50 | public String getOID() {
51 | return "1.2.840.113549.1.9.4";
52 | }
53 |
54 | @Override
55 | public byte[] getValue() {
56 | return this.hash;
57 | }
58 |
59 | public MessageDigest() {
60 | this.hash = new byte[] {};
61 | }
62 |
63 | public MessageDigest(byte[] hash) {
64 | this.hash = hash;
65 | }
66 |
67 | public void setHash(byte[] hash) {
68 | this.hash = hash;
69 | }
70 |
71 | }
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/repository/CRLRepository.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------import java.security.cert.X509Certificate;
5 | import java.util.Collection;
6 |
7 | import br.gov.frameworkdemoiselle.security.certificate.extension.ICPBR_CRL;
8 | software; you can redistribute it and/or
9 | * modify it under the terms of the GNU Lesser General Public License version 3
10 | * as published by the Free Software Foundation.
11 | *
12 | * This program is distributed in the hope that it will be useful,
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | * GNU General Public License for more details.
16 | *
17 | * You should have received a copy of the GNU Lesser General Public License version 3
18 | * along with this program; if not, see
19 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
20 | * Fifth Floor, Boston, MA 02110-1301, USA.
21 | * ----------------------------------------------------------------------------
22 | * Este arquivo é parte do Framework Demoiselle.
23 | *
24 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
25 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
26 | * do Software Livre (FSF).
27 | *
28 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
29 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
30 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
31 | * para maiores detalhes.
32 | *
33 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
34 | * "LICENCA.txt", junto com esse programa. Se não, acesse
35 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
36 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
37 | */
38 |
39 | package br.gov.frameworkdemoiselle.certificate.repository;
40 |
41 | import java.security.cert.X509Certificate;
42 | import java.util.Collection;
43 |
44 | import br.gov.frameworkdemoiselle.certificate.extension.ICPBR_CRL;
45 |
46 | /**
47 | * Representa um repositorio de CRL
48 | * @deprecated replaced by Demoiselle SIGNER
49 | * @see https://github.com/demoiselle/signer
50 | *
51 | */
52 | @Deprecated
53 | public interface CRLRepository {
54 |
55 | /**
56 | * Retorna uma lista de CRL para IPC Brasil para de determinado certificado
57 | *
58 | * @param certificate
59 | * Certificado
60 | * @return Lista de ICPBR_CRL
61 | */
62 | public Collection getX509CRL(X509Certificate certificate);
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/extension/DefaultExtension.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.extension;
39 |
40 | import java.lang.annotation.Documented;
41 | import java.lang.annotation.ElementType;
42 | import java.lang.annotation.Retention;
43 | import java.lang.annotation.RetentionPolicy;
44 | import java.lang.annotation.Target;
45 |
46 | import br.gov.frameworkdemoiselle.certificate.OIDExtension;
47 |
48 | /**
49 | * @deprecated replaced by Demoiselle SIGNER
50 | * @see https://github.com/demoiselle/signer
51 | *
52 | */
53 | @Deprecated
54 | @Documented
55 | @Retention(RetentionPolicy.RUNTIME)
56 | @Target(value = ElementType.FIELD)
57 | @OIDExtension(loader = DefaultExtensionLoader.class)
58 | public @interface DefaultExtension {
59 |
60 | public DefaultExtensionType type();
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/extension/ICPBrasilExtension.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 | package br.gov.frameworkdemoiselle.certificate.extension;
38 |
39 | import java.lang.annotation.Documented;
40 | import java.lang.annotation.ElementType;
41 | import java.lang.annotation.Retention;
42 | import java.lang.annotation.RetentionPolicy;
43 | import java.lang.annotation.Target;
44 |
45 | import br.gov.frameworkdemoiselle.certificate.OIDExtension;
46 |
47 | /**
48 | * @deprecated replaced by Demoiselle SIGNER
49 | * @see https://github.com/demoiselle/signer
50 | *
51 | */
52 | @Deprecated
53 | @Documented
54 | @Retention(RetentionPolicy.RUNTIME)
55 | @Target(value = ElementType.FIELD)
56 | @OIDExtension(loader = ICPBrasilExtensionLoader.class)
57 | public @interface ICPBrasilExtension {
58 |
59 | public ICPBrasilExtensionType type();
60 |
61 | }
62 |
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/java/br/gov/frameworkdemoiselle/certificate/ca/provider/hom/ADRBCMS_1_1_RootCAs.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 | package br.gov.frameworkdemoiselle.certificate.ca.provider.hom;
38 |
39 | import java.security.cert.X509Certificate;
40 | import java.util.Collection;
41 |
42 | import br.gov.frameworkdemoiselle.certificate.ca.provider.ProviderSignaturePolicyRootCA;
43 | /**
44 | * @deprecated replaced by Demoiselle SIGNER
45 | * @see https://github.com/demoiselle/signer
46 | *
47 | */
48 | @Deprecated
49 |
50 | public class ADRBCMS_1_1_RootCAs implements ProviderSignaturePolicyRootCA {
51 |
52 | @Override
53 | public Collection getCAs() {
54 | return (new ADRBCMS_1_0_RootCAs()).getCAs();
55 | }
56 |
57 | @Override
58 | public String getSignaturePolicyOID() {
59 | return "2.16.76.1.7.1.1.1.1";
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/java/br/gov/frameworkdemoiselle/certificate/ca/provider/hom/ADRBCMS_2_0_RootCAs.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 | package br.gov.frameworkdemoiselle.certificate.ca.provider.hom;
38 |
39 | import java.security.cert.X509Certificate;
40 | import java.util.Collection;
41 |
42 | import br.gov.frameworkdemoiselle.certificate.ca.provider.ProviderSignaturePolicyRootCA;
43 |
44 | /**
45 | * @deprecated replaced by Demoiselle SIGNER
46 | * @see https://github.com/demoiselle/signer
47 | *
48 | */
49 | @Deprecated
50 | public class ADRBCMS_2_0_RootCAs implements ProviderSignaturePolicyRootCA {
51 |
52 | @Override
53 | public Collection getCAs() {
54 | return (new ADRBCMS_1_0_RootCAs()).getCAs();
55 | }
56 |
57 | @Override
58 | public String getSignaturePolicyOID() {
59 | return "2.16.76.1.7.1.1.2";
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/impl/ca-icp-brasil-homologacao/src/main/java/br/gov/frameworkdemoiselle/certificate/ca/provider/hom/ADRBCMS_2_1_RootCAs.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 | package br.gov.frameworkdemoiselle.certificate.ca.provider.hom;
38 |
39 | import java.security.cert.X509Certificate;
40 | import java.util.Collection;
41 |
42 | import br.gov.frameworkdemoiselle.certificate.ca.provider.ProviderSignaturePolicyRootCA;
43 |
44 | /**
45 | * @deprecated replaced by Demoiselle SIGNER
46 | * @see https://github.com/demoiselle/signer
47 | *
48 | */
49 | @Deprecated
50 | public class ADRBCMS_2_1_RootCAs implements ProviderSignaturePolicyRootCA {
51 |
52 | @Override
53 | public Collection getCAs() {
54 | return (new ADRBCMS_1_0_RootCAs()).getCAs();
55 | }
56 |
57 | @Override
58 | public String getSignaturePolicyOID() {
59 | return "2.16.76.1.7.1.1.2.1";
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/repository/CRLRepositoryFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.repository;
39 |
40 | /**
41 | * Fábrica de Repository.
42 | * @deprecated replaced by Demoiselle SIGNER
43 | * @see https://github.com/demoiselle/signer
44 | *
45 | */
46 | @Deprecated
47 | public class CRLRepositoryFactory {
48 |
49 | /**
50 | * Caso o Configuratiron defina o modo online será criado um repositorio
51 | * OnLineCRLRepository, caso contrário será criada um repositorio
52 | * OffLineCRLRepository
53 | *
54 | * @return Repositório de CRL
55 | */
56 | public static CRLRepository factoryCRLRepository() {
57 | Configuration conf = Configuration.getInstance();
58 | if (conf.isOnline()) {
59 | return new OnLineCRLRepository();
60 | } else {
61 | return new OffLineCRLRepository();
62 | }
63 | }
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/impl/signer/src/main/java/br/gov/frameworkdemoiselle/certificate/signer/pkcs7/SignaturePolicyException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.signer.pkcs7;
39 |
40 | import br.gov.frameworkdemoiselle.certificate.signer.SignerException;
41 | /**
42 | * @deprecated replaced by Demoiselle SIGNER
43 | * @see https://github.com/demoiselle/signer
44 | *
45 | */
46 | @Deprecated
47 | public class SignaturePolicyException extends SignerException {
48 |
49 | private static final long serialVersionUID = 1L;
50 |
51 | public SignaturePolicyException() {
52 | super();
53 | }
54 |
55 | public SignaturePolicyException(String message) {
56 | super(message);
57 | }
58 |
59 | public SignaturePolicyException(String message, Throwable cause) {
60 | super(message, cause);
61 | }
62 |
63 | public SignaturePolicyException(Throwable cause) {
64 | super(cause);
65 | }
66 |
67 | }
68 |
--------------------------------------------------------------------------------
/impl/signer/src/main/java/br/gov/frameworkdemoiselle/certificate/signer/pkcs7/attribute/FileName.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 | package br.gov.frameworkdemoiselle.certificate.signer.pkcs7.attribute;
38 | /**
39 | * @deprecated replaced by Demoiselle SIGNER
40 | * @see https://github.com/demoiselle/signer
41 | *
42 | */
43 | @Deprecated
44 | public class FileName implements SignedAttribute {
45 |
46 | private String fileName;
47 |
48 | public FileName() {
49 | this.fileName = "";
50 | }
51 |
52 | public FileName(String fileName) {
53 | this.fileName = fileName;
54 | }
55 |
56 | @Override
57 | public String getOID() {
58 | return "1.3.6.1.4.1.311.88.2.1";
59 | }
60 |
61 | @Override
62 | public String getValue() {
63 | return this.fileName;
64 | }
65 |
66 | public void setFileName(String fileName) {
67 | this.fileName = fileName;
68 | }
69 |
70 | }
71 |
--------------------------------------------------------------------------------
/impl/signer/src/main/java/br/gov/frameworkdemoiselle/certificate/signer/pkcs7/bc/attribute/BCMessageDigest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.signer.pkcs7.bc.attribute;
39 |
40 | import org.bouncycastle.asn1.ASN1Set;
41 | import org.bouncycastle.asn1.DEROctetString;
42 | import org.bouncycastle.asn1.DERSet;
43 |
44 | import br.gov.frameworkdemoiselle.certificate.signer.pkcs7.attribute.MessageDigest;
45 | /**
46 | * @deprecated replaced by Demoiselle SIGNER
47 | * @see https://github.com/demoiselle/signer
48 | *
49 | */
50 | @Deprecated
51 | public class BCMessageDigest extends BCSignedAttribute {
52 |
53 | public BCMessageDigest(MessageDigest messageDigest) {
54 | super(messageDigest);
55 | }
56 |
57 | @Override
58 | public ASN1Set getValue() {
59 | MessageDigest attribute = (MessageDigest) super.getAttribute();
60 | return new DERSet(new DEROctetString(attribute.getValue()));
61 | }
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/validator/PeriodValidator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 | package br.gov.frameworkdemoiselle.certificate.validator;
38 |
39 | import java.security.cert.X509Certificate;
40 |
41 | import br.gov.frameworkdemoiselle.certificate.CertificateValidatorException;
42 | import br.gov.frameworkdemoiselle.certificate.IValidator;
43 |
44 | /**
45 | *
46 | * @author CETEC/CTCTA
47 | *
48 | * @deprecated replaced by Demoiselle SIGNER
49 | * @see https://github.com/demoiselle/signer
50 | *
51 | */
52 | @Deprecated
53 | public class PeriodValidator implements IValidator {
54 |
55 | @Override
56 | public void validate(X509Certificate x509) throws CertificateValidatorException {
57 | try {
58 | x509.checkValidity();
59 | } catch (Exception e) {
60 | throw new CertificateValidatorException("O certificado está fora da data de validade", e);
61 | }
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/impl/signer/src/main/java/br/gov/frameworkdemoiselle/certificate/signer/pkcs7/bc/attribute/BCSigningTime.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.signer.pkcs7.bc.attribute;
39 |
40 | import java.util.Date;
41 |
42 | import org.bouncycastle.asn1.ASN1Set;
43 | import org.bouncycastle.asn1.DERSet;
44 | import org.bouncycastle.asn1.DERUTCTime;
45 |
46 | import br.gov.frameworkdemoiselle.certificate.signer.pkcs7.attribute.SigningTime;
47 | /**
48 | * @deprecated replaced by Demoiselle SIGNER
49 | * @see https://github.com/demoiselle/signer
50 | *
51 | */
52 | @Deprecated
53 | public class BCSigningTime extends BCSignedAttribute {
54 |
55 | public BCSigningTime(SigningTime signingTime) {
56 | super(signingTime);
57 | }
58 |
59 | @Override
60 | public ASN1Set getValue() {
61 | SigningTime attribute = (SigningTime) super.getAttribute();
62 | Date date = attribute.getValue();
63 | return new DERSet(new DERUTCTime(date));
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/impl/signer/src/main/java/br/gov/frameworkdemoiselle/certificate/signer/pkcs7/attribute/Attribute.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.signer.pkcs7.attribute;
39 |
40 | /**
41 | *
42 | * CMS (rfc3852) define alguns atributos que constam nas assinaturas digitais.
43 | * Há um conjunto de atributos que são por natureza obrigatórios para o formato
44 | * CAdES. Dependendo da política de assinatura, mais atributos podem ser
45 | * obrigatórios.
46 | *
47 | * @deprecated replaced by Demoiselle SIGNER
48 | * @see https://github.com/demoiselle/signer
49 | *
50 | */
51 | @Deprecated
52 | public interface Attribute {
53 |
54 | /**
55 | * Valor OID do atributo. Ex: "1.12.2.54.94"
56 | *
57 | * @return deve retornar o valor do OID do atributo
58 | */
59 | public String getOID();
60 |
61 | /**
62 | * Representa o próprio valor do atributo.
63 | *
64 | * @return valor do atributo.
65 | */
66 | public Object getValue();
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/util/ZipBytes.java:
--------------------------------------------------------------------------------
1 | package br.gov.frameworkdemoiselle.certificate.util;
2 |
3 | import java.io.BufferedOutputStream;
4 | import java.io.ByteArrayInputStream;
5 | import java.io.ByteArrayOutputStream;
6 | import java.io.IOException;
7 | import java.io.InputStream;
8 | import java.util.HashMap;
9 | import java.util.Map;
10 | import java.util.logging.Level;
11 | import java.util.logging.Logger;
12 | import java.util.zip.ZipEntry;
13 | import java.util.zip.ZipInputStream;
14 | import java.util.zip.ZipOutputStream;
15 |
16 | /**
17 | * @deprecated replaced by Demoiselle SIGNER
18 | * @see https://github.com/demoiselle/signer
19 | *
20 | */
21 | @Deprecated
22 | public final class ZipBytes {
23 |
24 | private static final Logger LOGGER = Logger.getLogger(ZipBytes.class.getName());
25 | private final static int BUFFER_SIZE = 4096;
26 |
27 | public static byte[] compressing(Map files) {
28 | ByteArrayOutputStream out = new ByteArrayOutputStream();
29 | ZipOutputStream zipOut = new ZipOutputStream(out);
30 |
31 | try {
32 | for (String fileName : files.keySet()) {
33 | LOGGER.log(Level.INFO, "Adding file {0} to ZIP", fileName);
34 | zipOut.putNextEntry(new ZipEntry(fileName));
35 | zipOut.write(files.get(fileName));
36 | zipOut.closeEntry();
37 | }
38 | zipOut.close();
39 | out.close();
40 |
41 | } catch (IOException e) {
42 | new CertificateUtilException(e.getMessage(), e);
43 | }
44 |
45 | return out.toByteArray();
46 | }
47 |
48 | public static Map decompressing(byte[] file) {
49 |
50 | BufferedOutputStream dest = null;
51 | ZipEntry entry = null;
52 |
53 | Map files = new HashMap();
54 |
55 | InputStream in = new ByteArrayInputStream(file);
56 | ZipInputStream zipStream = new ZipInputStream(in);
57 |
58 | try {
59 | while ((entry = zipStream.getNextEntry()) != null) {
60 | int count;
61 | byte buf[] = new byte[BUFFER_SIZE];
62 | ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
63 | dest = new BufferedOutputStream(outputStream, BUFFER_SIZE);
64 | while ((count = zipStream.read(buf, 0, BUFFER_SIZE)) != -1) {
65 | dest.write(buf, 0, count);
66 | }
67 | dest.flush();
68 | dest.close();
69 | files.put(entry.getName(), outputStream.toByteArray());
70 | zipStream.closeEntry();
71 | }
72 | } catch (IOException e) {
73 | new CertificateUtilException(e.getMessage(), e);
74 | }
75 |
76 | return files;
77 | }
78 |
79 | }
80 |
--------------------------------------------------------------------------------
/impl/desktop/src/main/java/br/gov/frameworkdemoiselle/certificate/ui/factory/FrameExecuteFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 | package br.gov.frameworkdemoiselle.certificate.ui.factory;
38 |
39 | import br.gov.frameworkdemoiselle.certificate.ui.action.FrameExecute;
40 |
41 | /**
42 | * @author SUPST/STDCS
43 | */
44 | @Deprecated
45 | public class FrameExecuteFactory {
46 |
47 | public static FrameExecute factory(String className) {
48 | FrameExecute instance = null;
49 | Class clazz = null;
50 | try {
51 | clazz = Class.forName(className);
52 | } catch (Throwable error) {
53 | throw new FactoryException("Class [" + className + "] not found", error);
54 | }
55 | if (clazz != null) {
56 | try {
57 | instance = (FrameExecute) clazz.newInstance();
58 | } catch (Throwable error) {
59 | throw new FactoryException("incompatible Class [" + clazz.getCanonicalName() + "]", error);
60 | }
61 | }
62 | return instance;
63 | }
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/repository/CRLRepositoryException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.repository;
39 |
40 | /**
41 | * Reprente um erro de processamento do Repositorio
42 | * @deprecated replaced by Demoiselle SIGNER
43 | * @see https://github.com/demoiselle/signer
44 | *
45 | */
46 | @Deprecated
47 | public class CRLRepositoryException extends RuntimeException {
48 |
49 | private static final long serialVersionUID = 1L;
50 |
51 | /**
52 | * Construtor padrão
53 | */
54 | public CRLRepositoryException() {
55 | super();
56 | }
57 |
58 | /**
59 | * Construtor com messagem
60 | *
61 | * @param message
62 | */
63 | public CRLRepositoryException(String message) {
64 | super(message);
65 | }
66 |
67 | /**
68 | * Construtor com mensagem e causa
69 | *
70 | * @param message
71 | * @param cause
72 | */
73 | public CRLRepositoryException(String message, Throwable cause) {
74 | super(message, cause);
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/impl/core/src/main/java/br/gov/frameworkdemoiselle/certificate/repository/CRLOldCertificateException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Demoiselle Framework
3 | * Copyright (C) 2010 SERPRO
4 | * ----------------------------------------------------------------------------
5 | * This file is part of Demoiselle Framework.
6 | *
7 | * Demoiselle Framework is free software; you can redistribute it and/or
8 | * modify it under the terms of the GNU Lesser General Public License version 3
9 | * as published by the Free Software Foundation.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU Lesser General Public License version 3
17 | * along with this program; if not, see
18 | * or write to the Free Software Foundation, Inc., 51 Franklin Street,
19 | * Fifth Floor, Boston, MA 02110-1301, USA.
20 | * ----------------------------------------------------------------------------
21 | * Este arquivo é parte do Framework Demoiselle.
22 | *
23 | * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
24 | * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
25 | * do Software Livre (FSF).
26 | *
27 | * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
28 | * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
29 | * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
30 | * para maiores detalhes.
31 | *
32 | * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
33 | * "LICENCA.txt", junto com esse programa. Se não, acesse
34 | * ou escreva para a Fundação do Software Livre (FSF) Inc.,
35 | * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
36 | */
37 |
38 | package br.gov.frameworkdemoiselle.certificate.repository;
39 |
40 | /**
41 | * Defini exception para clr antiga
42 | * @deprecated replaced by Demoiselle SIGNER
43 | * @see https://github.com/demoiselle/signer
44 | *
45 | */
46 | @Deprecated
47 | public class CRLOldCertificateException extends RuntimeException {
48 |
49 | private static final long serialVersionUID = 1L;
50 |
51 | /**
52 | * Construtor padrão
53 | */
54 | public CRLOldCertificateException() {
55 | super();
56 | }
57 |
58 | /**
59 | * Construtor com messagem
60 | *
61 | * @param message
62 | */
63 | public CRLOldCertificateException(String message) {
64 | super(message);
65 | }
66 |
67 | /**
68 | * Construtor com mensagem e causa
69 | *
70 | * @param message
71 | * @param cause
72 | */
73 | public CRLOldCertificateException(String message, Throwable cause) {
74 | super(message, cause);
75 | }
76 | }
77 |
--------------------------------------------------------------------------------