├── fire-admin-jsp ├── .gitignore └── src │ └── main │ ├── webapp │ ├── resources │ │ ├── js │ │ │ ├── application.js │ │ │ ├── jquery.ui.timepicker-es.js │ │ │ └── jquery.ui.datepicker-es.js │ │ ├── img │ │ │ ├── cert.png │ │ │ ├── load.gif │ │ │ ├── logout.png │ │ │ ├── cert_icon.png │ │ │ ├── correcto.png │ │ │ ├── admin_icon.png │ │ │ ├── contact_icon.png │ │ │ ├── delete_icon.png │ │ │ ├── details_icon.png │ │ │ ├── editar_icon.png │ │ │ ├── incorrecto.png │ │ │ ├── dni_icon_login.png │ │ │ ├── servidor_icon.png │ │ │ ├── comprobado_icon.png │ │ │ ├── responsible_icon.png │ │ │ └── sin_entrada_icon.png │ │ └── css │ │ │ └── jqueryUI │ │ │ └── images │ │ │ ├── ui-icons_444444_256x240.png │ │ │ ├── ui-icons_555555_256x240.png │ │ │ ├── ui-icons_777620_256x240.png │ │ │ ├── ui-icons_777777_256x240.png │ │ │ ├── ui-icons_cc0000_256x240.png │ │ │ └── ui-icons_ffffff_256x240.png │ ├── META-INF │ │ └── MANIFEST.MF │ └── Error │ │ ├── FileNotFound.jsp │ │ └── SevereError.jsp │ ├── resources │ └── mail_reset_password.txt │ └── java │ └── es │ └── gob │ └── fire │ └── server │ └── admin │ └── service │ ├── LoggerInfo.java │ └── LogUtils.java ├── fire-signature ├── .gitignore └── src │ ├── main │ ├── webapp │ │ ├── public │ │ │ ├── css │ │ │ │ └── personal.css │ │ │ └── img │ │ │ │ └── general │ │ │ │ └── dms │ │ │ │ ├── favicon.png │ │ │ │ ├── bg-cabecera.png │ │ │ │ ├── logo-fire-pie.png │ │ │ │ ├── logo-clavefirma.png │ │ │ │ ├── cargando-loading.gif │ │ │ │ ├── logo-institucional.png │ │ │ │ ├── img-certificado-clave-firma.png │ │ │ │ └── borde-cajas-inicio-clavefirma.png │ │ ├── META-INF │ │ │ └── MANIFEST.MF │ │ └── WEB-INF │ │ │ └── jboss-deployment-structure.xml │ ├── resources │ │ ├── platform.properties │ │ ├── fire_config.properties │ │ ├── es │ │ │ └── gob │ │ │ │ └── fire │ │ │ │ └── server │ │ │ │ └── resources │ │ │ │ └── logo-autofirma.png │ │ ├── version.info │ │ ├── alarms_config.properties │ │ ├── docmanager.filesystem.properties │ │ ├── provider_clavefirma.properties │ │ ├── provider_clavefirmatest.properties │ │ └── provider_clavefirmatest2.properties │ └── java │ │ └── es │ │ └── gob │ │ └── fire │ │ └── server │ │ └── services │ │ ├── internal │ │ ├── PostSignBatchRecover.java │ │ ├── ApplicationInfo.java │ │ ├── SessionFlags.java │ │ ├── sessions │ │ │ ├── ExpiredFileFilter.java │ │ │ └── SessionException.java │ │ ├── BusinessException.java │ │ ├── CryptoOperation.java │ │ ├── ErrorResult.java │ │ ├── FirePages.java │ │ ├── ApplicationsDAOFactory.java │ │ ├── BatchRecoverException.java │ │ ├── ClienteAfirmaPostSignBatchRecover.java │ │ ├── FireInternalException.java │ │ └── InvalidSignatureException.java │ │ ├── ProviderLegacy.java │ │ ├── UnauthorizedApplicacionException.java │ │ ├── ModuleConstants.java │ │ ├── package-info.java │ │ ├── batch │ │ ├── ResultSingleSign.java │ │ ├── SignatureAlgorithm.java │ │ ├── PreProcessResult.java │ │ └── BatchException.java │ │ ├── SignatureFormat.java │ │ └── SignOperation.java │ └── test │ └── resources │ ├── pades.pdf │ ├── TEST_PDF.pdf │ ├── client_ssl.jks │ ├── TEST_PDF_Signed.pdf │ ├── cades_explicit.csig │ ├── cades_implicit.csig │ ├── ANF_USUARIO_ACTIVO.cer │ ├── PFActivoFirSHA256.pfx │ ├── firma_explicita.csig │ └── firma_implicita.csig ├── fire-client-dotnet ├── Examples │ ├── .gitignore │ ├── vwd.webinfo │ ├── Web.config │ ├── example_fire_create_batch.aspx │ ├── example_fire_recover_batch_result_state.aspx │ ├── example_fire_recover_error.aspx │ ├── example_fire_sign.aspx │ ├── example_fire_sign_batch.aspx │ ├── example_fire_add_document_batch.aspx │ ├── example_fire_recover_batch_sign.aspx │ ├── example_fire_recover_async_sign.aspx │ ├── example_fire_recover_batch_result.aspx │ ├── example_fire_recover_sign.aspx │ └── example_fire_recover_batch_result_state.aspx.cs ├── Examples_old │ ├── .gitignore │ ├── packages.config │ ├── Web.config │ ├── example_sign.aspx │ ├── example_generatecert.aspx │ ├── example_loaddata.aspx │ ├── example_getlist.aspx │ └── example_recovercert.aspx ├── FIRe │ ├── bin │ │ └── .gitignore │ ├── obj │ │ └── .gitignore │ ├── FIRe.csproj.user │ ├── FIRe │ │ └── ErrorResultJson.cs │ ├── ConfigureException.cs │ └── GenerateCert │ │ └── HttpCertificateAvailableException.cs └── Example_console │ ├── bin │ └── .gitignore │ ├── obj │ └── .gitignore │ └── App.config ├── log-consumer-register ├── .gitignore ├── pom.xml └── src │ └── main │ └── java │ └── es │ └── gob │ └── log │ └── register │ ├── RegistrationException.java │ └── LogServiceRegister.java ├── log-consumer-api ├── .gitignore └── src │ ├── test │ └── java │ │ └── META-INF │ │ └── MANIFEST.MF │ └── main │ └── java │ └── es │ └── gob │ └── log │ └── consumer │ └── client │ ├── ResponseParams.java │ └── HttpResponse.java ├── log-consumer-service ├── .gitignore └── src │ ├── main │ ├── webapp │ │ ├── META-INF │ │ │ └── MANIFEST.MF │ │ └── WEB-INF │ │ │ └── web.xml │ └── java │ │ └── es │ │ └── gob │ │ └── log │ │ └── consumer │ │ ├── service │ │ ├── SessionException.java │ │ ├── NoResultException.java │ │ ├── EchoServiceManager.java │ │ ├── DataFragment.java │ │ └── RequestLoginManager.java │ │ ├── InvalidPatternException.java │ │ ├── LogErrors.java │ │ ├── ParticleParserUndefined.java │ │ └── LogConstants.java │ └── test │ └── resources │ └── logback_api.log ├── fire-admin-web └── src │ └── main │ ├── resources │ ├── templates │ │ ├── logs.html │ │ ├── application.html │ │ ├── certificates.html │ │ ├── fragments │ │ │ ├── sidebar.html │ │ │ ├── auditadmin.html │ │ │ └── loading.html │ │ ├── modal │ │ │ ├── userDelete.html │ │ │ ├── certificateDelete.html │ │ │ └── authSelectCertForm.html │ │ └── error.html │ ├── static │ │ ├── images │ │ │ ├── 404.png │ │ │ ├── user.png │ │ │ ├── expired.png │ │ │ ├── loading.gif │ │ │ ├── Logo_FIRe_02.jpg │ │ │ ├── Logo_FIRe_03.jpg │ │ │ ├── comprobado_icon.png │ │ │ ├── semaphore-red-sm.jpg │ │ │ ├── sin_entrada_icon.png │ │ │ ├── datatables │ │ │ │ ├── sort_asc.png │ │ │ │ ├── sort_both.png │ │ │ │ ├── sort_desc.png │ │ │ │ ├── sort_asc_disabled.png │ │ │ │ └── sort_desc_disabled.png │ │ │ ├── semaphore-green-sm.jpg │ │ │ ├── semaphore-yellow-sm.jpg │ │ │ └── cabeceraLogoGobierno.png │ │ ├── fonts │ │ │ ├── Poppins-Bold.ttf │ │ │ ├── Poppins-Medium.ttf │ │ │ ├── Poppins-Regular.ttf │ │ │ ├── Poppins-SemiBold.ttf │ │ │ ├── icons │ │ │ │ └── themify │ │ │ │ │ ├── themify.eot │ │ │ │ │ ├── themify.ttf │ │ │ │ │ └── themify.woff │ │ │ ├── fontawesome │ │ │ │ ├── FontAwesome.otf │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ └── fontawesome-webfont.woff2 │ │ │ ├── Material-Design-Iconic-Font.woff │ │ │ ├── Material-Design-Iconic-Font.woff2 │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ └── glyphicons-halflings-regular.woff2 │ │ ├── css │ │ │ ├── images │ │ │ │ ├── ui-icons_444444_256x240.png │ │ │ │ ├── ui-icons_555555_256x240.png │ │ │ │ ├── ui-icons_777620_256x240.png │ │ │ │ ├── ui-icons_777777_256x240.png │ │ │ │ ├── ui-icons_cc0000_256x240.png │ │ │ │ └── ui-icons_ffffff_256x240.png │ │ │ ├── picklist.css │ │ │ ├── user-form.css │ │ │ └── index.css │ │ ├── js │ │ │ ├── masonry │ │ │ │ └── masonry.js │ │ │ ├── jquery │ │ │ │ ├── jquery.spring-friendly.min.js │ │ │ │ └── jquery.ui.datepicker-es.js │ │ │ └── datatables │ │ │ │ └── i18n │ │ │ │ └── spanish.json │ │ └── xml │ │ │ └── validCertificate.xml │ ├── admin_config.properties │ ├── messages │ │ └── i18n │ │ │ └── messages_es_ES.properties │ └── fire-log4j2.xml │ ├── webapp │ └── WEB-INF │ │ └── web.xml │ └── java │ └── es │ └── gob │ └── fire │ └── web │ └── controller │ └── AppController.java ├── fire-test-jsp └── src │ └── main │ ├── resources │ ├── .gitignore │ └── test-app.properties │ ├── webapp │ ├── META-INF │ │ └── MANIFEST.MF │ ├── img │ │ ├── cert.png │ │ ├── cert_icon.png │ │ └── dni_icon_login.png │ └── ErrorPage.jsp │ └── java │ └── es │ └── gob │ └── fire │ └── test │ └── webapp │ ├── package-info.java │ └── FakePasswordDecipher.java ├── LICENSE └── EUPL v.1.1.pdf ├── fire-client-java └── src │ ├── test │ ├── java │ │ └── META-INF │ │ │ └── MANIFEST.MF │ └── resources │ │ ├── TEST_PDF.pdf │ │ └── xml_with_ids.xml │ └── main │ └── java │ └── es │ └── gob │ ├── fire │ └── client │ │ ├── GracePeriodInfo.java │ │ └── PasswordDecipher.java │ └── clavefirma │ └── client │ ├── certificatelist │ └── package-info.java │ ├── signprocess │ └── package-info.java │ └── generatecert │ └── package-info.java ├── clavefirma-test-services └── src │ └── main │ ├── webapp │ ├── META-INF │ │ └── MANIFEST.MF │ └── test_pages │ │ ├── TestAuth.jsp │ │ ├── TestCert.jsp │ │ ├── img │ │ ├── menu_bk.png │ │ ├── clave_refresh.png │ │ ├── clave_alerta_ico.png │ │ ├── clave_info_ico.png │ │ ├── clave_movil_ico.png │ │ ├── logo_clave_pie.png │ │ ├── clave_decision_ico.png │ │ ├── imagenCorporativa.png │ │ ├── clave_seguridad_ico.png │ │ └── fondo_cabecera_clave.jpg │ │ ├── TestUserCertAuth.jsp │ │ ├── TestCert2_files │ │ ├── favicon.png │ │ ├── ParqFondoInput.gif │ │ ├── imagenCorporativa.png │ │ ├── glyphicons-halflings-regular.woff │ │ └── ui-utils-ieshiv.min.js │ │ ├── TestCert_files │ │ └── faviconQ3E1TZ34.ico │ │ └── ErrorTransaction.html │ ├── resources │ ├── testservice │ │ ├── 00001.p12 │ │ ├── 00002.p12 │ │ ├── 00005.p12 │ │ ├── 50751129L.p12 │ │ ├── 52020822C.p12 │ │ ├── 52020823K.p12 │ │ ├── 52020824E.p12 │ │ ├── 00002.properties │ │ ├── 00003.properties │ │ ├── 00004.properties │ │ ├── 00001.properties │ │ ├── 00005.properties │ │ ├── 50751129L.properties │ │ ├── 52020822C.properties │ │ ├── 52020823K.properties │ │ └── 52020824E.properties │ └── test-backend.properties │ └── java │ └── es │ └── gob │ └── clavefirma │ └── test │ └── services │ ├── package-info.java │ ├── TestServiceParams.java │ ├── Responser.java │ └── BlockedCertificateException.java ├── scripts └── BBDD │ ├── NOTA__Migracion.txt │ ├── MySQL │ ├── NOTA__MySQL_5_5.txt │ ├── Migracion_fire_2_-_2_2.sql │ ├── 02_fire_insert.sql │ └── Opcional_sesiones_en_bd_ddl.sql │ └── Oracle │ ├── 02_fire_insert.sql │ └── Opcional_sesiones_en_bd_ddl.sql ├── .gitignore ├── fire-upgrade-afirma └── src │ ├── test │ └── resources │ │ ├── pades.pdf │ │ ├── cades.csig │ │ ├── redsara.es.der │ │ └── platform.properties │ └── main │ ├── resources │ └── platform.properties │ └── java │ └── es │ └── gob │ └── fire │ └── upgrade │ └── afirma │ └── package-info.java ├── fire-alarms └── src │ └── main │ ├── resources │ └── alarms_config.properties │ └── java │ └── es │ └── gob │ └── fire │ └── alarms │ ├── AlarmLevel.java │ └── InitializationException.java ├── fire-admin-i18n ├── src │ └── main │ │ └── resources │ │ └── messages │ │ └── Language.properties └── pom.xml ├── fire-alarms-graylog └── src │ └── main │ └── resources │ └── alarms_config.properties ├── fire-statistics-cmd └── src │ └── main │ └── resources │ └── MANIFEST.MF ├── fire-alarms-eventmanager └── src │ └── main │ └── resources │ └── alarms_config.properties ├── fire-signature-i18n ├── src │ └── main │ │ └── resources │ │ └── messages │ │ ├── FireSignatureLanguage.properties │ │ └── signature │ │ ├── fire_ca.properties │ │ ├── fire_gl.properties │ │ └── fire_va.properties └── pom.xml ├── fire-trustManagerClassName ├── src │ └── main │ │ └── java │ │ └── es │ │ └── gob │ │ └── clavefirma │ │ └── trustManagerClassName │ │ └── TrustManagerClass.java └── pom.xml ├── fire-signature-connector-clavefirma └── src │ ├── main │ ├── resources │ │ └── es │ │ │ └── gob │ │ │ └── fire │ │ │ └── server │ │ │ └── connector │ │ │ └── clavefirma │ │ │ └── logo-clavefirma.png │ └── java │ │ └── es │ │ └── gob │ │ └── fire │ │ └── server │ │ └── connector │ │ └── clavefirma │ │ └── package-info.java │ └── test │ └── java │ └── es │ └── gob │ └── fire │ └── signature │ └── connector │ └── principal │ └── NoCertificatesException.java ├── fire-signature-connector-clavefirma-test └── src │ └── main │ └── resources │ └── es │ └── gob │ └── fire │ └── server │ └── connector │ └── test │ ├── logo-clavefirma-test.png │ └── logo-clavefirma-test-en.png ├── fire-upgrade ├── src │ └── main │ │ ├── java │ │ └── es │ │ │ └── gob │ │ │ └── fire │ │ │ └── upgrade │ │ │ ├── UpgradeParams.java │ │ │ ├── package-info.java │ │ │ ├── GracePeriodInfo.java │ │ │ ├── VerifyException.java │ │ │ └── ConnectionException.java │ │ └── resources │ │ └── platform.properties └── pom.xml ├── fire-signature-connector ├── src │ └── main │ │ └── java │ │ └── es │ │ └── gob │ │ └── fire │ │ └── server │ │ └── connector │ │ ├── OperationResult.java │ │ ├── package-info.java │ │ └── FIReConnectorException.java └── pom.xml ├── fire-admin-persistence └── src │ └── main │ └── java │ └── es │ └── gob │ └── fire │ └── persistence │ ├── service │ └── IAuditSignatureService.java │ ├── repository │ ├── datatable │ │ ├── UserDataTablesRepository.java │ │ ├── ApplicationDataTablesRepository.java │ │ ├── AuditSignatureDataTablesRepository.java │ │ └── AuditTransactionDataTablesRepository.java │ ├── RolRepository.java │ ├── CertificateRepository.java │ ├── AuditSignatureRepository.java │ └── ApplicationResponsibleRepository.java │ ├── permissions │ └── Permissions.java │ └── validatordni │ ├── Nif.java │ └── validatorDNI.java ├── fire-admin-core └── src │ ├── main │ └── java │ │ └── es │ │ └── gob │ │ └── fire │ │ └── report │ │ └── common │ │ ├── IReport.java │ │ ├── ReportGenerator.java │ │ └── Report.java │ └── test │ └── java │ └── es │ └── gob │ └── fire │ └── report │ └── common │ ├── ReportGeneratorTest.java │ └── ReportTest.java ├── fire-signature-common-libraries └── src │ └── main │ └── java │ └── es │ └── gob │ └── fire │ └── signature │ ├── ConfigException.java │ ├── ProviderElements.java │ └── DBConnectionException.java ├── fire-statistics-common └── src │ └── main │ └── java │ └── es │ └── gob │ └── fire │ └── statistics │ └── entity │ ├── TransactionTotal.java │ └── Browsers.java ├── fire-signature-decipher ├── src │ └── main │ │ └── java │ │ └── es │ │ └── gob │ │ └── fire │ │ └── server │ │ └── decipher │ │ ├── PropertyDecipher.java │ │ └── package-info.java └── pom.xml ├── fire-signature-document ├── src │ └── main │ │ └── java │ │ └── es │ │ └── gob │ │ └── fire │ │ └── server │ │ └── document │ │ └── package-info.java └── pom.xml ├── fire-log-handlers └── src │ └── main │ └── java │ └── es │ └── gob │ └── fire │ └── logs │ ├── package-info.java │ └── handlers │ └── FlushableCloseable.java ├── fire-client-php ├── fire_api_examples │ ├── example_fire_recover_batch_result_state.php │ └── example_fire_sign_batch.php └── fire_client_examples │ ├── example_fire_recover_batch_result_state.php │ └── example_fire_sign_batch.php └── fire-admin-commons-util ├── pom.xml └── src └── main └── java └── es └── gob └── fire └── commons └── utils └── FileUtilsDirectory.java /fire-admin-jsp/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /fire-signature/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples/.gitignore: -------------------------------------------------------------------------------- 1 | /Bin 2 | -------------------------------------------------------------------------------- /log-consumer-register/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples_old/.gitignore: -------------------------------------------------------------------------------- 1 | /Bin 2 | -------------------------------------------------------------------------------- /log-consumer-api/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /bin/ 3 | -------------------------------------------------------------------------------- /log-consumer-service/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /bin/ 3 | -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/js/application.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fire-signature/src/main/webapp/public/css/personal.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fire-client-dotnet/FIRe/bin/.gitignore: -------------------------------------------------------------------------------- 1 | /Release 2 | /Debug 3 | -------------------------------------------------------------------------------- /fire-client-dotnet/FIRe/obj/.gitignore: -------------------------------------------------------------------------------- 1 | /Release 2 | /Debug 3 | -------------------------------------------------------------------------------- /fire-client-dotnet/Example_console/bin/.gitignore: -------------------------------------------------------------------------------- 1 | /Release 2 | /Debug 3 | -------------------------------------------------------------------------------- /fire-client-dotnet/Example_console/obj/.gitignore: -------------------------------------------------------------------------------- 1 | /Release 2 | /Debug 3 | -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/templates/logs.html: -------------------------------------------------------------------------------- 1 |

logs 2 | Yeah

-------------------------------------------------------------------------------- /fire-test-jsp/src/main/resources/.gitignore: -------------------------------------------------------------------------------- 1 | client_config_* 2 | test-app_* 3 | -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/templates/application.html: -------------------------------------------------------------------------------- 1 |

admin Yeah

-------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/templates/certificates.html: -------------------------------------------------------------------------------- 1 |

certificate Yeah

-------------------------------------------------------------------------------- /LICENSE/EUPL v.1.1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/LICENSE/EUPL v.1.1.pdf -------------------------------------------------------------------------------- /fire-test-jsp/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /fire-client-java/src/test/java/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /fire-signature/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /log-consumer-api/src/test/java/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /log-consumer-service/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /scripts/BBDD/NOTA__Migracion.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/scripts/BBDD/NOTA__Migracion.txt -------------------------------------------------------------------------------- /scripts/BBDD/MySQL/NOTA__MySQL_5_5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/scripts/BBDD/MySQL/NOTA__MySQL_5_5.txt -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | .settings 3 | target 4 | .classpath 5 | .properties 6 | dependency-reduced-pom.xml 7 | 8 | *.class 9 | -------------------------------------------------------------------------------- /fire-signature/src/test/resources/pades.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/test/resources/pades.pdf -------------------------------------------------------------------------------- /fire-test-jsp/src/main/webapp/img/cert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-test-jsp/src/main/webapp/img/cert.png -------------------------------------------------------------------------------- /fire-signature/src/test/resources/TEST_PDF.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/test/resources/TEST_PDF.pdf -------------------------------------------------------------------------------- /scripts/BBDD/MySQL/Migracion_fire_2_-_2_2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/scripts/BBDD/MySQL/Migracion_fire_2_-_2_2.sql -------------------------------------------------------------------------------- /fire-client-java/src/test/resources/TEST_PDF.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-client-java/src/test/resources/TEST_PDF.pdf -------------------------------------------------------------------------------- /fire-signature/src/test/resources/client_ssl.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/test/resources/client_ssl.jks -------------------------------------------------------------------------------- /fire-test-jsp/src/main/webapp/img/cert_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-test-jsp/src/main/webapp/img/cert_icon.png -------------------------------------------------------------------------------- /fire-upgrade-afirma/src/test/resources/pades.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-upgrade-afirma/src/test/resources/pades.pdf -------------------------------------------------------------------------------- /fire-upgrade-afirma/src/test/resources/cades.csig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-upgrade-afirma/src/test/resources/cades.csig -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/cert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/cert.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/load.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/load.gif -------------------------------------------------------------------------------- /fire-signature/src/main/resources/platform.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/main/resources/platform.properties -------------------------------------------------------------------------------- /fire-signature/src/test/resources/TEST_PDF_Signed.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/test/resources/TEST_PDF_Signed.pdf -------------------------------------------------------------------------------- /fire-signature/src/test/resources/cades_explicit.csig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/test/resources/cades_explicit.csig -------------------------------------------------------------------------------- /fire-signature/src/test/resources/cades_implicit.csig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/test/resources/cades_implicit.csig -------------------------------------------------------------------------------- /fire-test-jsp/src/main/resources/test-app.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-test-jsp/src/main/resources/test-app.properties -------------------------------------------------------------------------------- /fire-test-jsp/src/main/webapp/img/dni_icon_login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-test-jsp/src/main/webapp/img/dni_icon_login.png -------------------------------------------------------------------------------- /fire-upgrade-afirma/src/test/resources/redsara.es.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-upgrade-afirma/src/test/resources/redsara.es.der -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/logout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/logout.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/404.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/404.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/user.png -------------------------------------------------------------------------------- /fire-alarms/src/main/resources/alarms_config.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-alarms/src/main/resources/alarms_config.properties -------------------------------------------------------------------------------- /fire-signature/src/main/resources/fire_config.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/main/resources/fire_config.properties -------------------------------------------------------------------------------- /fire-signature/src/test/resources/ANF_USUARIO_ACTIVO.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/test/resources/ANF_USUARIO_ACTIVO.cer -------------------------------------------------------------------------------- /fire-signature/src/test/resources/PFActivoFirSHA256.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/test/resources/PFActivoFirSHA256.pfx -------------------------------------------------------------------------------- /fire-signature/src/test/resources/firma_explicita.csig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/test/resources/firma_explicita.csig -------------------------------------------------------------------------------- /fire-signature/src/test/resources/firma_implicita.csig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/test/resources/firma_implicita.csig -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/cert_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/cert_icon.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/correcto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/correcto.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/admin_config.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/admin_config.properties -------------------------------------------------------------------------------- /fire-upgrade-afirma/src/main/resources/platform.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-upgrade-afirma/src/main/resources/platform.properties -------------------------------------------------------------------------------- /fire-upgrade-afirma/src/test/resources/platform.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-upgrade-afirma/src/test/resources/platform.properties -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/admin_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/admin_icon.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/contact_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/contact_icon.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/delete_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/delete_icon.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/details_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/details_icon.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/editar_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/editar_icon.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/incorrecto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/incorrecto.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/expired.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/expired.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/loading.gif -------------------------------------------------------------------------------- /fire-admin-i18n/src/main/resources/messages/Language.properties: -------------------------------------------------------------------------------- 1 | # Language setting for the platform. Allowed Values: 2 | # es_ES (for spanish). 3 | 4 | LANGUAGE = ${LANGUAGE_IS} -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/dni_icon_login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/dni_icon_login.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/servidor_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/servidor_icon.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/Poppins-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/Poppins-Bold.ttf -------------------------------------------------------------------------------- /fire-alarms-graylog/src/main/resources/alarms_config.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-alarms-graylog/src/main/resources/alarms_config.properties -------------------------------------------------------------------------------- /fire-statistics-cmd/src/main/resources/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: ./jdbc.jar 3 | Main-Class: es.gob.fire.statistics.cmd.StatisticsDBLoader 4 | 5 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/00001.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/resources/testservice/00001.p12 -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/00002.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/resources/testservice/00002.p12 -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/00005.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/resources/testservice/00005.p12 -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/TestAuth.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/TestAuth.jsp -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/TestCert.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/TestCert.jsp -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/comprobado_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/comprobado_icon.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/responsible_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/responsible_icon.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/img/sin_entrada_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/img/sin_entrada_icon.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/Poppins-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/Poppins-Medium.ttf -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/Poppins-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/Poppins-Regular.ttf -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/Logo_FIRe_02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/Logo_FIRe_02.jpg -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/Logo_FIRe_03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/Logo_FIRe_03.jpg -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/templates/fragments/sidebar.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/templates/fragments/sidebar.html -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/templates/modal/userDelete.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/templates/modal/userDelete.html -------------------------------------------------------------------------------- /fire-signature/src/main/webapp/public/img/general/dms/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/main/webapp/public/img/general/dms/favicon.png -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/img/menu_bk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/img/menu_bk.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/Poppins-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/Poppins-SemiBold.ttf -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/comprobado_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/comprobado_icon.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/semaphore-red-sm.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/semaphore-red-sm.jpg -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/sin_entrada_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/sin_entrada_icon.png -------------------------------------------------------------------------------- /fire-alarms-eventmanager/src/main/resources/alarms_config.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-alarms-eventmanager/src/main/resources/alarms_config.properties -------------------------------------------------------------------------------- /fire-client-dotnet/FIRe/FIRe.csproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/50751129L.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/resources/testservice/50751129L.p12 -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/52020822C.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/resources/testservice/52020822C.p12 -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/52020823K.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/resources/testservice/52020823K.p12 -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/52020824E.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/resources/testservice/52020824E.p12 -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/datatables/sort_asc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/datatables/sort_asc.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/semaphore-green-sm.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/semaphore-green-sm.jpg -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/semaphore-yellow-sm.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/semaphore-yellow-sm.jpg -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/templates/fragments/auditadmin.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/templates/fragments/auditadmin.html -------------------------------------------------------------------------------- /fire-signature/src/main/webapp/public/img/general/dms/bg-cabecera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/main/webapp/public/img/general/dms/bg-cabecera.png -------------------------------------------------------------------------------- /fire-signature/src/main/webapp/public/img/general/dms/logo-fire-pie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/main/webapp/public/img/general/dms/logo-fire-pie.png -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/TestUserCertAuth.jsp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/TestUserCertAuth.jsp -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/img/clave_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/img/clave_refresh.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/messages/i18n/messages_es_ES.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/messages/i18n/messages_es_ES.properties -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/icons/themify/themify.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/icons/themify/themify.eot -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/icons/themify/themify.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/icons/themify/themify.ttf -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/icons/themify/themify.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/icons/themify/themify.woff -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/cabeceraLogoGobierno.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/cabeceraLogoGobierno.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/datatables/sort_both.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/datatables/sort_both.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/datatables/sort_desc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/datatables/sort_desc.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/templates/modal/certificateDelete.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/templates/modal/certificateDelete.html -------------------------------------------------------------------------------- /fire-signature-i18n/src/main/resources/messages/FireSignatureLanguage.properties: -------------------------------------------------------------------------------- 1 | # Language setting for the platform. Allowed Values: 2 | # es_ES (for spanish). 3 | 4 | LANGUAGE = ${LANGUAGE_IS} -------------------------------------------------------------------------------- /fire-signature/src/main/webapp/public/img/general/dms/logo-clavefirma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/main/webapp/public/img/general/dms/logo-clavefirma.png -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/img/clave_alerta_ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/img/clave_alerta_ico.png -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/img/clave_info_ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/img/clave_info_ico.png -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/img/clave_movil_ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/img/clave_movil_ico.png -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/img/logo_clave_pie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/img/logo_clave_pie.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/fontawesome/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/fontawesome/FontAwesome.otf -------------------------------------------------------------------------------- /fire-signature-i18n/src/main/resources/messages/signature/fire_ca.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature-i18n/src/main/resources/messages/signature/fire_ca.properties -------------------------------------------------------------------------------- /fire-signature-i18n/src/main/resources/messages/signature/fire_gl.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature-i18n/src/main/resources/messages/signature/fire_gl.properties -------------------------------------------------------------------------------- /fire-signature-i18n/src/main/resources/messages/signature/fire_va.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature-i18n/src/main/resources/messages/signature/fire_va.properties -------------------------------------------------------------------------------- /fire-signature/src/main/webapp/public/img/general/dms/cargando-loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/main/webapp/public/img/general/dms/cargando-loading.gif -------------------------------------------------------------------------------- /fire-signature/src/main/webapp/public/img/general/dms/logo-institucional.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/main/webapp/public/img/general/dms/logo-institucional.png -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/img/clave_decision_ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/img/clave_decision_ico.png -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/img/imagenCorporativa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/img/imagenCorporativa.png -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/TestCert2_files/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/TestCert2_files/favicon.png -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/img/clave_seguridad_ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/img/clave_seguridad_ico.png -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/img/fondo_cabecera_clave.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/img/fondo_cabecera_clave.jpg -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/css/images/ui-icons_444444_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/css/images/ui-icons_444444_256x240.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/css/images/ui-icons_555555_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/css/images/ui-icons_555555_256x240.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/css/images/ui-icons_777620_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/css/images/ui-icons_777620_256x240.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/css/images/ui-icons_777777_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/css/images/ui-icons_777777_256x240.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/css/images/ui-icons_cc0000_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/css/images/ui-icons_cc0000_256x240.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/css/images/ui-icons_ffffff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/css/images/ui-icons_ffffff_256x240.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/Material-Design-Iconic-Font.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/Material-Design-Iconic-Font.woff -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/Material-Design-Iconic-Font.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/Material-Design-Iconic-Font.woff2 -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/datatables/sort_asc_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/datatables/sort_asc_disabled.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/images/datatables/sort_desc_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/images/datatables/sort_desc_disabled.png -------------------------------------------------------------------------------- /fire-signature/src/main/resources/es/gob/fire/server/resources/logo-autofirma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/main/resources/es/gob/fire/server/resources/logo-autofirma.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/fontawesome/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/fontawesome/fontawesome-webfont.eot -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/fontawesome/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/fontawesome/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/fontawesome/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/fontawesome/fontawesome-webfont.woff -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/TestCert2_files/ParqFondoInput.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/TestCert2_files/ParqFondoInput.gif -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/TestCert_files/faviconQ3E1TZ34.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/TestCert_files/faviconQ3E1TZ34.ico -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/fonts/fontawesome/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-web/src/main/resources/static/fonts/fontawesome/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /fire-signature/src/main/webapp/public/img/general/dms/img-certificado-clave-firma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/main/webapp/public/img/general/dms/img-certificado-clave-firma.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/css/jqueryUI/images/ui-icons_444444_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/css/jqueryUI/images/ui-icons_444444_256x240.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/css/jqueryUI/images/ui-icons_555555_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/css/jqueryUI/images/ui-icons_555555_256x240.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/css/jqueryUI/images/ui-icons_777620_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/css/jqueryUI/images/ui-icons_777620_256x240.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/css/jqueryUI/images/ui-icons_777777_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/css/jqueryUI/images/ui-icons_777777_256x240.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/css/jqueryUI/images/ui-icons_cc0000_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/css/jqueryUI/images/ui-icons_cc0000_256x240.png -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/css/jqueryUI/images/ui-icons_ffffff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-admin-jsp/src/main/webapp/resources/css/jqueryUI/images/ui-icons_ffffff_256x240.png -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/templates/modal/authSelectCertForm.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 |
6 | -------------------------------------------------------------------------------- /fire-signature/src/main/webapp/public/img/general/dms/borde-cajas-inicio-clavefirma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature/src/main/webapp/public/img/general/dms/borde-cajas-inicio-clavefirma.png -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/TestCert2_files/imagenCorporativa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/TestCert2_files/imagenCorporativa.png -------------------------------------------------------------------------------- /fire-client-dotnet/Examples_old/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /fire-client-dotnet/Example_console/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/TestCert2_files/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/clavefirma-test-services/src/main/webapp/test_pages/TestCert2_files/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /fire-trustManagerClassName/src/main/java/es/gob/clavefirma/trustManagerClassName/TrustManagerClass.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-trustManagerClassName/src/main/java/es/gob/clavefirma/trustManagerClassName/TrustManagerClass.java -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/internal/PostSignBatchRecover.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.internal; 2 | 3 | public interface PostSignBatchRecover { 4 | 5 | byte[] recoverSign() throws BatchRecoverException; 6 | } 7 | -------------------------------------------------------------------------------- /fire-signature/src/main/resources/version.info: -------------------------------------------------------------------------------- 1 | 2 | # Informacion de la aplicacion cargada desde fuentes externas (como el pom.xml) 3 | project.version=@project.version@ 4 | 5 | # Anyo actual obtenido en el momento del empaquetado 6 | copyright.year=@current.year@ 7 | -------------------------------------------------------------------------------- /fire-signature-connector-clavefirma/src/main/resources/es/gob/fire/server/connector/clavefirma/logo-clavefirma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature-connector-clavefirma/src/main/resources/es/gob/fire/server/connector/clavefirma/logo-clavefirma.png -------------------------------------------------------------------------------- /fire-signature-connector-clavefirma-test/src/main/resources/es/gob/fire/server/connector/test/logo-clavefirma-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature-connector-clavefirma-test/src/main/resources/es/gob/fire/server/connector/test/logo-clavefirma-test.png -------------------------------------------------------------------------------- /fire-signature-connector-clavefirma-test/src/main/resources/es/gob/fire/server/connector/test/logo-clavefirma-test-en.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ctt-gob-es/fire/HEAD/fire-signature-connector-clavefirma-test/src/main/resources/es/gob/fire/server/connector/test/logo-clavefirma-test-en.png -------------------------------------------------------------------------------- /log-consumer-service/src/test/resources/logback_api.log: -------------------------------------------------------------------------------- 1 | 16:06:09.031 [main] INFO chapters.configuration.MyApp1 - Entering application. 2 | 16:06:09.046 [main] DEBUG chapters.configuration.Foo - Did it again! 3 | 16:07:09.046 [main] INFO chapters.configuration.MyApp1 - Exiting application. -------------------------------------------------------------------------------- /fire-upgrade/src/main/java/es/gob/fire/upgrade/UpgradeParams.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.upgrade; 2 | 3 | public class UpgradeParams { 4 | 5 | /** 6 | * Indica que se permite 7 | */ 8 | public static final String ALLOW_PARTIAL_UPGRADE = "allowPartialUpgrade"; //$NON-NLS-1$ 9 | } 10 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples/vwd.webinfo: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/css/picklist.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Picklist jquery + bootstrap CSS 3 | */ 4 | 5 | .pickListButtons { 6 | padding: 10px; 7 | text-align: center; 8 | } 9 | 10 | .pickListButtons button { 11 | margin-bottom: 5px; 12 | } 13 | 14 | .pickListSelect { 15 | height: 200px !important; 16 | } -------------------------------------------------------------------------------- /fire-admin-web/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | fire-admin-web 4 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples_old/Web.config: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/ErrorTransaction.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Error en la trasacción 6 | 7 | 8 |

La transacción no existe o ha caducado.

9 | 10 | -------------------------------------------------------------------------------- /fire-signature/src/main/webapp/WEB-INF/jboss-deployment-structure.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /fire-alarms/src/main/java/es/gob/fire/alarms/AlarmLevel.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.alarms; 2 | 3 | /** 4 | * Niveles de alarma. 5 | */ 6 | public enum AlarmLevel { 7 | /** Nivel de depuración. */ 8 | DEBUG, 9 | /** Nivel informativo. */ 10 | INFO, 11 | /** Nivel de advertencia. */ 12 | WARNING, 13 | /** Nivel de error. */ 14 | ERROR, 15 | /** Nivel de fallo crítico. */ 16 | CRITICAL; 17 | } 18 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples/Web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/ProviderLegacy.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services; 2 | 3 | /** 4 | * Clase con los recursos para mantener la compatibilidad con Cl@ve Firma, el proveedor 5 | * original de FIRe. 6 | */ 7 | public class ProviderLegacy { 8 | 9 | /** Nombre de proveedor de Cl@ve Firma. */ 10 | public static final String PROVIDER_NAME_CLAVEFIRMA = "clavefirma"; //$NON-NLS-1$ 11 | } 12 | -------------------------------------------------------------------------------- /fire-signature-connector/src/main/java/es/gob/fire/server/connector/OperationResult.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.connector; 2 | 3 | import java.nio.charset.Charset; 4 | 5 | /** 6 | * Resultado de una operación. 7 | * @author carlos.gamuci 8 | */ 9 | public abstract class OperationResult { 10 | 11 | /** 12 | * Codifica el resultado de la operación. 13 | */ 14 | public abstract byte[] encodeResult(Charset charset); 15 | } 16 | -------------------------------------------------------------------------------- /fire-admin-persistence/src/main/java/es/gob/fire/persistence/service/IAuditSignatureService.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.persistence.service; 2 | 3 | /** 4 | *

Interface that provides communication with the operations of the persistence layer.

5 | * Project:

Platform for detection and validation of certificates recognized in European TSL.

6 | * @version 1.0, 10/08/2023. 7 | */ 8 | public interface IAuditSignatureService { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /log-consumer-service/src/main/java/es/gob/log/consumer/service/SessionException.java: -------------------------------------------------------------------------------- 1 | package es.gob.log.consumer.service; 2 | 3 | public class SessionException extends Exception { 4 | 5 | /** Serial Id. */ 6 | private static final long serialVersionUID = -3466803454488412040L; 7 | 8 | public SessionException(final String msg) { 9 | super(msg); 10 | } 11 | 12 | public SessionException(final String msg, final Throwable cause) { 13 | super(msg, cause); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/internal/ApplicationInfo.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.internal; 2 | 3 | public class ApplicationInfo { 4 | 5 | private final String id; 6 | 7 | private final String name; 8 | 9 | public ApplicationInfo(final String id, final String name) { 10 | this.id = id; 11 | this.name = name; 12 | } 13 | 14 | public String getId() { 15 | return this.id; 16 | } 17 | 18 | public String getName() { 19 | return this.name; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/resources/mail_reset_password.txt: -------------------------------------------------------------------------------- 1 | Restablecimiento de contraseña de FIRe 2 | Hola %%NAME%%, 3 | 4 | Estás recibiendo este correo porque se hizo una solicitud de recuperación de contraseña para su cuenta de administración de FIRe. 5 | Recuerde que su usuario es %%USERNAME%% 6 | 7 | 8 | Para poder restablecer la contraseña acceda a la siguiente URL: 9 | 10 | %%URL%% 11 | 12 | Si usted no realizó esta solicitud, por favor ignore este correo. 13 | 14 | 15 | Un saludo, 16 | 17 | El administrador. -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/UnauthorizedApplicacionException.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services; 2 | 3 | public class UnauthorizedApplicacionException extends Exception { 4 | 5 | /** Serial Id. */ 6 | private static final long serialVersionUID = -1823985935818318590L; 7 | 8 | public UnauthorizedApplicacionException(final String msg) { 9 | super(msg); 10 | } 11 | 12 | public UnauthorizedApplicacionException(final String msg, final Throwable cause) { 13 | super(msg, cause); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/ModuleConstants.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services; 2 | 3 | /** 4 | * Constantes comunes del componente central de FIRe. 5 | */ 6 | public class ModuleConstants { 7 | 8 | /** 9 | * Nombre de la aplicación. 10 | */ 11 | public static final String APP_NAME = "FIRE"; //$NON-NLS-1$ 12 | 13 | /** 14 | * Identificador asignado al módulo central. 15 | */ 16 | public static final String MODULE_NAME = "MODCENTRAL"; //$NON-NLS-1$ 17 | } 18 | -------------------------------------------------------------------------------- /fire-admin-core/src/main/java/es/gob/fire/report/common/IReport.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.report.common; 2 | 3 | /** 4 | *

Interface that defines the methods related to the generation of reports.

5 | * Project:

Horizontal platform of validation services of multiPKI 6 | * certificates and electronic signature.

7 | * @version 1.0 06/07/2023. 8 | */ 9 | public interface IReport { 10 | 11 | /** 12 | * Method that generates a report. 13 | * @throws Exception if the method fails. 14 | */ 15 | byte[ ] getReport() throws Exception; 16 | } 17 | -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/css/user-form.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background: url(../img/background.jpg) no-repeat center center fixed; 3 | background-size: cover; 4 | } 5 | 6 | .main-section{ 7 | margin:0 auto; 8 | margin-top:5%; 9 | } 10 | .card{ 11 | opacity: .95; 12 | } 13 | .card-body{ 14 | background-color: #d1d3d6; 15 | box-shadow: 0px 0px 3px #848484; 16 | } 17 | 18 | label{ 19 | font-weight: bold; 20 | } 21 | 22 | .nav-tabs .nav-item a:not(.active){ 23 | background-color: #d1d3d6; 24 | } 25 | 26 | .nav-tabs{ 27 | border-bottom:0px; 28 | } -------------------------------------------------------------------------------- /fire-signature-common-libraries/src/main/java/es/gob/fire/signature/ConfigException.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.signature; 2 | 3 | /** 4 | * Excepción que indica un error detectado en la configuración. 5 | */ 6 | public class ConfigException extends Exception { 7 | 8 | /** Serial Id. */ 9 | private static final long serialVersionUID = 4868632484888290733L; 10 | 11 | public ConfigException(final String msg) { 12 | super(msg); 13 | } 14 | 15 | public ConfigException(final String msg, final Throwable cause) { 16 | super(msg, cause); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/java/es/gob/fire/server/admin/service/LoggerInfo.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.admin.service; 2 | 3 | import java.util.logging.Logger; 4 | 5 | public class LoggerInfo { 6 | 7 | 8 | private static final Logger LOGGER = Logger.getLogger(RolePermissions.class.getName()); 9 | 10 | 11 | 12 | public static String getInstance() { 13 | 14 | final LogUtils InformationLogger = new LogUtils(); 15 | String src = null; 16 | 17 | src = src.replaceAll("[\r\n]",""); //$NON-NLS-1$//$NON-NLS-2$ 18 | 19 | 20 | 21 | 22 | return src; 23 | } 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples_old/example_sign.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="example_sign.aspx.cs" Inherits="example_sign" %> 2 | 3 | <%@ Register tagprefix="cf" Namespace="FIRe" %> 4 | 5 | 6 | 7 | 8 | Ejemplo de recuperacion de firma 9 | 10 | 11 |
12 |
13 |
Firma:
14 |
15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/js/jquery.ui.timepicker-es.js: -------------------------------------------------------------------------------- 1 | /* Spanish initialisation for the jQuery time picker plugin. */ 2 | /* Writen by Jandro González (agonzalezalves@gmail.com) */ 3 | jQuery(function($){ 4 | $.timepicker.regional['es'] = { 5 | hourText: 'Hora', 6 | minuteText: 'Minuto', 7 | amPmText: ['AM', 'PM'], 8 | closeButtonText: 'Aceptar', 9 | nowButtonText: 'Ahora', 10 | deselectButtonText: 'Deseleccionar' } 11 | $.timepicker.setDefaults($.timepicker.regional['es']); 12 | }); 13 | -------------------------------------------------------------------------------- /log-consumer-api/src/main/java/es/gob/log/consumer/client/ResponseParams.java: -------------------------------------------------------------------------------- 1 | package es.gob.log.consumer.client; 2 | 3 | /** 4 | * Valores que pueden recibirse en las estructuras de respuesta del servidor. 5 | */ 6 | class ResponseParams { 7 | 8 | /** Token de inicio de sesión. */ 9 | public static final String PARAM_TOKEN = "tkn"; //$NON-NLS-1$ 10 | /** Salto que aplicar al cifrado del token de sesión. */ 11 | public static final String PARAM_IV = "iv"; //$NON-NLS-1$ 12 | /** Resultado de la operación de login. */ 13 | public static final String PARAM_RESULT = "ok"; //$NON-NLS-1$ 14 | } 15 | -------------------------------------------------------------------------------- /fire-client-java/src/main/java/es/gob/fire/client/GracePeriodInfo.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.client; 2 | 3 | import java.util.Date; 4 | 5 | public class GracePeriodInfo { 6 | 7 | private final String responseId; 8 | 9 | private final Date resolutionDate; 10 | 11 | public GracePeriodInfo(final String responseId, final Date resolutionDate) { 12 | this.responseId = responseId; 13 | this.resolutionDate = resolutionDate; 14 | } 15 | 16 | public String getResponseId() { 17 | return this.responseId; 18 | } 19 | 20 | public Date getResolutionDate() { 21 | return this.resolutionDate; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /log-consumer-service/src/main/java/es/gob/log/consumer/InvalidPatternException.java: -------------------------------------------------------------------------------- 1 | package es.gob.log.consumer; 2 | 3 | /** 4 | * Indica que el patrón indicado con la forma de los registros del log, no 5 | * es válido. 6 | */ 7 | public class InvalidPatternException extends Exception { 8 | 9 | /** Serial ID. */ 10 | private static final long serialVersionUID = 6228834228066580806L; 11 | 12 | /** 13 | * Construye una excepción con el detalle del problema. 14 | * @param msg Mensaje con el detalle del problema. 15 | */ 16 | public InvalidPatternException(final String msg) { 17 | super(msg); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/java/es/gob/fire/server/admin/service/LogUtils.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.admin.service; 2 | 3 | /** 4 | * Clase con métodos de utilidad para la impresión de logs. 5 | * @author Carlos.J.Raboso 6 | */ 7 | public class LogUtils { 8 | 9 | /** 10 | * Eliminan los saltos de línea. 11 | * @param text Texto de entrada. 12 | * @return Texto sin saltos de línea o {@code null} si la entrada fue {@code null}. 13 | */ 14 | public static String cleanText(final String text) { 15 | return text != null ? text.replaceAll("[\r\n]", "") : null; //$NON-NLS-1$ //$NON-NLS-2$ 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /log-consumer-service/src/main/java/es/gob/log/consumer/service/NoResultException.java: -------------------------------------------------------------------------------- 1 | package es.gob.log.consumer.service; 2 | 3 | /** 4 | * Excepción que determina cuando la operación no hay resultados 5 | * y establece un mensaje legible del motivo de ello. 6 | */ 7 | class NoResultException extends Exception { 8 | 9 | /** Serial Id. */ 10 | private static final long serialVersionUID = -8251624179631733594L; 11 | 12 | public NoResultException(final String msg) { 13 | super(msg); 14 | } 15 | 16 | public NoResultException(final String msg, final Throwable cause) { 17 | super(msg, cause); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples/example_fire_create_batch.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" 2 | CodeFile="example_fire_create_batch.aspx.cs" 3 | Inherits="example_fire_create_batch" %> 4 | 5 | <%@ Register tagprefix="cf" Namespace="FIRe" %> 6 | 7 | 8 | 9 | 10 | Creacion de lote de firma 11 | 12 | 13 |
14 |
15 | 16 |
Id de transaccion: 17 | 18 |
19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/00002.properties: -------------------------------------------------------------------------------- 1 | 2 | # Estado de los certificados del usuario. Listado de estados disponibles: 3 | # - OK: El usuario tiene certificados validos (se debe copiar el certificado con el mismo nombre en este directorio) 4 | # - NOCERT: El usuario no tiene certificados y puede generarse uno nuevo. 5 | # - BLOCKED: El usuario o su certificado de firma esta bloqueado (no se podra generar un nuevo certificado) 6 | # - WEAK_REGISTRY: El usuario realizo un registro debil y no puede tener certificados de firma (no se podra generar un nuevo certificado) 7 | state=NOCERT 8 | 9 | #Contrasena del almacen 10 | password=1234 -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/00003.properties: -------------------------------------------------------------------------------- 1 | 2 | # Estado de los certificados del usuario. Listado de estados disponibles: 3 | # - OK: El usuario tiene certificados validos (se debe copiar el certificado con el mismo nombre en este directorio) 4 | # - NOCERT: El usuario no tiene certificados y puede generarse uno nuevo. 5 | # - BLOCKED: El usuario o su certificado de firma esta bloqueado (no se podra generar un nuevo certificado) 6 | # - WEAK_REGISTRY: El usuario realizo un registro debil y no puede tener certificados de firma (no se podra generar un nuevo certificado) 7 | state=BLOCKED 8 | 9 | #Contrasena del almacen 10 | password=1234 -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/00004.properties: -------------------------------------------------------------------------------- 1 | 2 | # Estado de los certificados del usuario. Listado de estados disponibles: 3 | # - OK: El usuario tiene certificados validos (se debe copiar el certificado con el mismo nombre en este directorio) 4 | # - NOCERT: El usuario no tiene certificados y puede generarse uno nuevo. 5 | # - BLOCKED: El usuario tiene un certificado de firma bloqueado (no se podra generar un nuevo certificado) 6 | # - WEAK_REGISTRY: El usuario realizo un registro debil y no puede tener certificados de firma (no se podra generar un nuevo certificado) 7 | state=WEAK_REGISTRY 8 | 9 | #Contrasena del almacen 10 | password=1234 -------------------------------------------------------------------------------- /log-consumer-service/src/main/java/es/gob/log/consumer/service/EchoServiceManager.java: -------------------------------------------------------------------------------- 1 | package es.gob.log.consumer.service; 2 | 3 | public class EchoServiceManager { 4 | 5 | private static final String SERVICE_TITLE = "Gestion Logs v%s"; //$NON-NLS-1$ 6 | 7 | private static final String SERVICE_VERSION = "1.0"; //$NON-NLS-1$ 8 | 9 | /** 10 | * Obtiene una cadena de bytes predefinida 11 | * @return cadena de bytes con formato "Gestion Logs v%s" 12 | */ 13 | public static byte[] process() { 14 | 15 | //TODO: El numero de version del servicio habria que cogerlo del Manifest 16 | return String.format(SERVICE_TITLE, SERVICE_VERSION).getBytes(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/00001.properties: -------------------------------------------------------------------------------- 1 | 2 | # Estado de los certificados del usuario. Listado de estados disponibles: 3 | # - OK: El usuario tiene certificados validos (se debe copiar el certificado con el mismo nombre en este directorio) 4 | # - NOCERT: El usuario no tiene certificados y puede generarse uno nuevo. 5 | # - BLOCKED: El usuario o su certificado de firma esta bloqueado (no se podra generar un nuevo certificado) 6 | # - WEAK_REGISTRY: El usuario realizo un registro debil y no puede tener certificados de firma (no se podra generar un nuevo certificado) 7 | state=OK 8 | 9 | #Contrasena del almacen 10 | password=1234 11 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/00005.properties: -------------------------------------------------------------------------------- 1 | 2 | # Estado de los certificados del usuario. Listado de estados disponibles: 3 | # - OK: El usuario tiene certificados validos (se debe copiar el certificado con el mismo nombre en este directorio) 4 | # - NOCERT: El usuario no tiene certificados y puede generarse uno nuevo. 5 | # - BLOCKED: El usuario o su certificado de firma esta bloqueado (no se podra generar un nuevo certificado) 6 | # - WEAK_REGISTRY: El usuario realizo un registro debil y no puede tener certificados de firma (no se podra generar un nuevo certificado) 7 | state=OK 8 | 9 | #Contrasena del almacen 10 | password=123456 11 | -------------------------------------------------------------------------------- /fire-trustManagerClassName/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | es.gob.fire 6 | fire-trustManagerClassName 7 | 1.0 8 | jar 9 | 10 | fire-trustManagerClassName 11 | http://maven.apache.org 12 | 13 | 14 | UTF-8 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/50751129L.properties: -------------------------------------------------------------------------------- 1 | 2 | # Estado de los certificados del usuario. Listado de estados disponibles: 3 | # - OK: El usuario tiene certificados validos (se debe copiar el certificado con el mismo nombre en este directorio) 4 | # - NOCERT: El usuario no tiene certificados y puede generarse uno nuevo. 5 | # - BLOCKED: El usuario o su certificado de firma esta bloqueado (no se podra generar un nuevo certificado) 6 | # - WEAK_REGISTRY: El usuario realizo un registro debil y no puede tener certificados de firma (no se podra generar un nuevo certificado) 7 | state=OK 8 | 9 | #Contrasena del almacen 10 | password=Entra001 11 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/52020822C.properties: -------------------------------------------------------------------------------- 1 | 2 | # Estado de los certificados del usuario. Listado de estados disponibles: 3 | # - OK: El usuario tiene certificados validos (se debe copiar el certificado con el mismo nombre en este directorio) 4 | # - NOCERT: El usuario no tiene certificados y puede generarse uno nuevo. 5 | # - BLOCKED: El usuario o su certificado de firma esta bloqueado (no se podra generar un nuevo certificado) 6 | # - WEAK_REGISTRY: El usuario realizo un registro debil y no puede tener certificados de firma (no se podra generar un nuevo certificado) 7 | state=OK 8 | 9 | #Contrasena del almacen 10 | password=Entra001 11 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/52020823K.properties: -------------------------------------------------------------------------------- 1 | 2 | # Estado de los certificados del usuario. Listado de estados disponibles: 3 | # - OK: El usuario tiene certificados validos (se debe copiar el certificado con el mismo nombre en este directorio) 4 | # - NOCERT: El usuario no tiene certificados y puede generarse uno nuevo. 5 | # - BLOCKED: El usuario o su certificado de firma esta bloqueado (no se podra generar un nuevo certificado) 6 | # - WEAK_REGISTRY: El usuario realizo un registro debil y no puede tener certificados de firma (no se podra generar un nuevo certificado) 7 | state=OK 8 | 9 | #Contrasena del almacen 10 | password=Entra001 11 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/testservice/52020824E.properties: -------------------------------------------------------------------------------- 1 | 2 | # Estado de los certificados del usuario. Listado de estados disponibles: 3 | # - OK: El usuario tiene certificados validos (se debe copiar el certificado con el mismo nombre en este directorio) 4 | # - NOCERT: El usuario no tiene certificados y puede generarse uno nuevo. 5 | # - BLOCKED: El usuario o su certificado de firma esta bloqueado (no se podra generar un nuevo certificado) 6 | # - WEAK_REGISTRY: El usuario realizo un registro debil y no puede tener certificados de firma (no se podra generar un nuevo certificado) 7 | state=OK 8 | 9 | #Contrasena del almacen 10 | password=Entra001 11 | -------------------------------------------------------------------------------- /fire-admin-persistence/src/main/java/es/gob/fire/persistence/repository/datatable/UserDataTablesRepository.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.persistence.repository.datatable; 2 | 3 | 4 | import org.springframework.data.jpa.datatables.repository.DataTablesRepository; 5 | 6 | import es.gob.fire.persistence.entity.User; 7 | 8 | /** 9 | *

Interface that provides CRUD functionality for the User entity and DataTables.

10 | * Project:

Platform for detection and validation of certificates recognized in European TSL.

11 | * @version 1.0, 19 jun. 2018. 12 | */ 13 | public interface UserDataTablesRepository extends DataTablesRepository { 14 | // Clase vacia 15 | } 16 | -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/js/masonry/masonry.js: -------------------------------------------------------------------------------- 1 | // window.addEventListener('load', () => { 2 | // if ($('.masonry').length > 0) { 3 | // new Masonry('.masonry', { 4 | // itemSelector: '.masonry-item', 5 | // columnWidth: '.masonry-sizer', 6 | // percentPosition: true, 7 | // }); 8 | // } 9 | // }); 10 | 11 | 12 | window.addEventListener('load', function(){ 13 | if ($('.masonry').length > 0) { 14 | new Masonry('.masonry', { 15 | itemSelector: '.masonry-item', 16 | columnWidth: '.masonry-sizer', 17 | percentPosition: true, 18 | }); 19 | } 20 | 21 | 22 | 23 | }); -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/templates/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Error Occurred 4 | 5 | 6 | 7 |
8 |

Error Occurred!

9 | 16 |
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples/example_fire_recover_batch_result_state.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="example_fire_recover_batch_result_state.aspx.cs" Inherits="example_fire_recover_batch_result_state" %> 2 | 3 | <%@ Register tagprefix="cf" Namespace="FIRe" %> 4 | 5 | 6 | 7 | 8 | Recuperar estado de firma del lote 9 | 10 | 11 |
12 |
13 |
Progreso de la firma (0-1)):
14 |
15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/package-info.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | /** Servicios utilizados en el proyecto */ 11 | package es.gob.fire.server.services; -------------------------------------------------------------------------------- /fire-client-dotnet/Examples/example_fire_recover_error.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="example_fire_recover_error.aspx.cs" Inherits="example_fire_recover_error" %> 2 | 3 | <%@ Register tagprefix="cf" Namespace="FIRe" %> 4 | 5 | 6 | 7 | 8 | Recuperar error 9 | 10 | 11 |
12 |
13 |
Proveedor:
14 |
Error:
15 |
16 |
17 | 18 | 19 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples/example_fire_sign.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="example_fire_sign.aspx.cs" Inherits="example_fire_sign" %> 2 | 3 | <%@ Register tagprefix="cf" Namespace="FIRe" %> 4 | 5 | 6 | 7 | 8 | Firmar documento 9 | 10 | 11 |
12 |
13 |
Id de Transaccion:
14 |
URL de redireccion:
15 |
16 |
17 | 18 | 19 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/batch/ResultSingleSign.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.batch; 2 | 3 | public class ResultSingleSign { 4 | 5 | private final String id; 6 | 7 | private final boolean correct; 8 | 9 | private final ProcessResult result; 10 | 11 | public ResultSingleSign(final String id, final boolean correct, final ProcessResult result) { 12 | this.id = id; 13 | this.correct = correct; 14 | this.result = result; 15 | } 16 | 17 | public String getId() { 18 | return this.id; 19 | } 20 | 21 | public boolean isCorrect() { 22 | return this.correct; 23 | } 24 | 25 | public ProcessResult getResult() { 26 | return this.result; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /scripts/BBDD/MySQL/02_fire_insert.sql: -------------------------------------------------------------------------------- 1 | -- ******************************************************** 2 | -- **************** Inserci�n datos ******************** 3 | -- ******************************************************** 4 | 5 | -- INSERTAR DATOS-------------- 6 | 7 | -- ROLES -------- 8 | INSERT INTO `tb_roles` (`id`,`nombre_rol`,`permisos`) 9 | VALUES (1,'admin','1,2'), 10 | (2,'responsible','2'), 11 | (3,'contact', NULL); 12 | 13 | -- USUARIO POR DEFECTO -------- 14 | INSERT INTO tb_usuarios (nombre_usuario,clave,nombre,apellidos,usu_defecto,fk_rol) 15 | VALUES('admin','$2y$12$JfP4bTV0i29Mnb3XBPOQl.L8JdbTrpn4fQljv8EEJKIp6NRZLB5TC','default name','default surnames',1,1); 16 | 17 | 18 | COMMIT; 19 | -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/js/jquery/jquery.spring-friendly.min.js: -------------------------------------------------------------------------------- 1 | !function(e){function n(e,t,r,o){var u;if(jQuery.isArray(t))jQuery.each(t,function(t,u){r||i.test(e)?o(e,u):n(e+"["+("object"==typeof u?t:"")+"]",u,r,o)});else if(r||"object"!==jQuery.type(t))o(e,t);else for(u in t)n(e+"."+u,t[u],r,o)}var t=/%20/g,i=/\[\]$/;e.param=function(e,i){var r,o=[],u=function(e,n){n=jQuery.isFunction(n)?n():null==n?"":n,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(n)};if(void 0===i&&(i=jQuery.ajaxSettings&&jQuery.ajaxSettings.traditional),jQuery.isArray(e)||e.jquery&&!jQuery.isPlainObject(e))jQuery.each(e,function(){u(this.name,this.value)});else for(r in e)n(r,e[r],i,u);return o.join("&").replace(t,"+")}}(jQuery); -------------------------------------------------------------------------------- /fire-admin-persistence/src/main/java/es/gob/fire/persistence/repository/datatable/ApplicationDataTablesRepository.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.persistence.repository.datatable; 2 | 3 | import org.springframework.data.jpa.datatables.repository.DataTablesRepository; 4 | 5 | import es.gob.fire.persistence.entity.Application; 6 | 7 | 8 | /** 9 | *

Interface that provides CRUD functionality for the Application entity and DataTables.

10 | * Project:

Platform for detection and validation of certificates recognized in European TSL.

11 | * @version 1.0, 15 oct. 2020. 12 | */ 13 | 14 | public interface ApplicationDataTablesRepository extends DataTablesRepository{ 15 | // Clase vacia 16 | } 17 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples/example_fire_sign_batch.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="example_fire_sign_batch.aspx.cs" Inherits="example_fire_sign_batch" %> 2 | 3 | <%@ Register tagprefix="cf" Namespace="FIRe" %> 4 | 5 | 6 | 7 | 8 | Firmar lote de firma 9 | 10 | 11 |
12 |
13 |
Id de Transaccion:
14 |
URL de redireccion:
15 |
16 |
17 | 18 | 19 | -------------------------------------------------------------------------------- /fire-admin-persistence/src/main/java/es/gob/fire/persistence/repository/datatable/AuditSignatureDataTablesRepository.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.persistence.repository.datatable; 2 | 3 | import org.springframework.data.jpa.datatables.repository.DataTablesRepository; 4 | 5 | import es.gob.fire.persistence.entity.AuditSignature; 6 | 7 | /** 8 | *

Interface that provides CRUD functionality for the PetitionBatchSignature entity and DataTables.

9 | * Project:

Platform for detection and validation of certificates recognized in European TSL.

10 | * @version 1.0, 06 jul. 2023. 11 | */ 12 | public interface AuditSignatureDataTablesRepository extends DataTablesRepository{ 13 | //Clase vacia 14 | } 15 | -------------------------------------------------------------------------------- /fire-admin-persistence/src/main/java/es/gob/fire/persistence/repository/datatable/AuditTransactionDataTablesRepository.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.persistence.repository.datatable; 2 | 3 | import org.springframework.data.jpa.datatables.repository.DataTablesRepository; 4 | 5 | import es.gob.fire.persistence.entity.AuditTransaction; 6 | 7 | /** 8 | *

Interface that provides CRUD functionality for the Petition entity and DataTables.

9 | * Project:

Platform for detection and validation of certificates recognized in European TSL.

10 | * @version 1.0, 03 jul. 2023. 11 | */ 12 | 13 | public interface AuditTransactionDataTablesRepository extends DataTablesRepository{ 14 | //Clase vacia 15 | } 16 | -------------------------------------------------------------------------------- /fire-statistics-common/src/main/java/es/gob/fire/statistics/entity/TransactionTotal.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.statistics.entity; 2 | 3 | public class TransactionTotal { 4 | 5 | private long dataSize; 6 | 7 | private long total; 8 | 9 | public TransactionTotal(final long dataSize, final long total) { 10 | this.dataSize = dataSize; 11 | this.total = total; 12 | } 13 | 14 | public long getDataSize() { 15 | return this.dataSize; 16 | } 17 | 18 | public void setDataSize(final long dataSize) { 19 | this.dataSize = dataSize; 20 | } 21 | 22 | public long getTotal() { 23 | return this.total; 24 | } 25 | 26 | public void setTotal(final long total) { 27 | this.total = total; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /log-consumer-service/src/main/java/es/gob/log/consumer/LogErrors.java: -------------------------------------------------------------------------------- 1 | package es.gob.log.consumer; 2 | 3 | public class LogErrors { 4 | 5 | private String msgError = null; 6 | private int numError = 0; 7 | 8 | public LogErrors(final String msgError, final int numError) { 9 | super(); 10 | this.msgError = msgError; 11 | this.numError = numError; 12 | } 13 | public final String getMsgError() { 14 | return this.msgError; 15 | } 16 | public final void setMsgError(final String msgError) { 17 | this.msgError = msgError; 18 | } 19 | public final int getNumError() { 20 | return this.numError; 21 | } 22 | public final void setNumError(final int numError) { 23 | this.numError = numError; 24 | } 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /fire-client-java/src/main/java/es/gob/clavefirma/client/certificatelist/package-info.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | /** Cliente para listar los certificados de un usuario. */ 11 | package es.gob.clavefirma.client.certificatelist; -------------------------------------------------------------------------------- /fire-client-java/src/main/java/es/gob/clavefirma/client/signprocess/package-info.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | /** Cliente para firmar datos con el certificado de un usuario. */ 11 | package es.gob.clavefirma.client.signprocess; -------------------------------------------------------------------------------- /fire-upgrade/src/main/java/es/gob/fire/upgrade/package-info.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | 11 | /** Clases para la mejora de firmas. 12 | * @author Tomás García-Merás. */ 13 | package es.gob.fire.upgrade; -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/resources/test-backend.properties: -------------------------------------------------------------------------------- 1 | 2 | ####################################################### 3 | # FICHERO DE CONFIGURACION DE LOS SERVICIOS DE PRUEBA # 4 | ####################################################### 5 | 6 | # Este fichero sirve para configurar los servicios de prueba que emulan 7 | # el funcionamiento del servicio de custodia de Cl@ve Firma ("clavefirma-test-services.war"). 8 | 9 | # Directorio temporal en el que se almacenaran ficheros de intercambio 10 | # necesarios para el funcionamiento de los servicios. 11 | tmp_dir=c:/pruebas 12 | 13 | # URL base de los servicios de prueba. Debe ser accesible desde los equipos 14 | # de los usuarios. 15 | url_service=https://clavefirmagiss:8443/clavefirma-test-services -------------------------------------------------------------------------------- /fire-client-java/src/main/java/es/gob/clavefirma/client/generatecert/package-info.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | /** Cliente para solicitar un nuevo certificado de firma para un usuario. */ 11 | package es.gob.clavefirma.client.generatecert; -------------------------------------------------------------------------------- /fire-signature-i18n/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 4.0.0 5 | fire-signature-i18n 6 | fire-signature-i18n 7 | jar 8 | 9 | 10 | es.gob.fire 11 | fire-artifacts 12 | 2.4 13 | 14 | 15 | 16 | 17 | org.springframework.boot 18 | spring-boot-starter-log4j2 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/java/es/gob/clavefirma/test/services/package-info.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | /** Servicio simulado para pruebas. 11 | * @author Tomás García-Merás. */ 12 | package es.gob.clavefirma.test.services; -------------------------------------------------------------------------------- /fire-signature-connector/src/main/java/es/gob/fire/server/connector/package-info.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | /** Clases para el acceso y uso de servicios de gestión de certificados y firma en 11 | * la nube. */ 12 | package es.gob.fire.server.connector; -------------------------------------------------------------------------------- /fire-client-dotnet/Examples/example_fire_add_document_batch.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="example_fire_add_document_batch.aspx.cs" Inherits="example_fire_add_document_batch" %> 2 | 3 | <%@ Register tagprefix="cf" Namespace="FIRe" %> 4 | 5 | 6 | 7 | 8 | Agregar documentos a un lote de firma 9 | 10 | 11 |
12 |
13 | 14 |
Fichero incluido en batch. 15 |
Fichero incluido en batch. 16 | 17 |
18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples/example_fire_recover_batch_sign.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="example_fire_recover_batch_sign.aspx.cs" Inherits="example_fire_recover_batch_sign" %> 2 | 3 | <%@ Register tagprefix="cf" Namespace="FIRe" %> 4 | 5 | 6 | 7 | 8 | Recuperar firma de un lote firmado 9 | 10 | 11 |
12 |
13 |
Firma del documento 1:
14 |
Firma del documento 2:
15 |
16 |
17 | 18 | 19 | -------------------------------------------------------------------------------- /fire-upgrade-afirma/src/main/java/es/gob/fire/upgrade/afirma/package-info.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | 11 | /** Clases para la mejora de firmas con la Plataforma Afirma. 12 | * @author Tomás García-Merás. */ 13 | package es.gob.fire.upgrade.afirma; -------------------------------------------------------------------------------- /fire-upgrade/src/main/java/es/gob/fire/upgrade/GracePeriodInfo.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.upgrade; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | 6 | public class GracePeriodInfo implements Serializable { 7 | 8 | /** Serial Id. */ 9 | private static final long serialVersionUID = 1515328840855443778L; 10 | 11 | private final String responseId; 12 | 13 | private final Date resolutionDate; 14 | 15 | public GracePeriodInfo(final String responseId, final Date resolutionDate) { 16 | this.responseId = responseId; 17 | this.resolutionDate = resolutionDate; 18 | } 19 | 20 | public String getResponseId() { 21 | return this.responseId; 22 | } 23 | 24 | public Date getResolutionDate() { 25 | return this.resolutionDate; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /fire-test-jsp/src/main/java/es/gob/fire/test/webapp/package-info.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | 11 | /** Clases auxiliares de la aplicación de demostración 12 | * de FIRe. 13 | * @author Tomás García-Merás. */ 14 | package es.gob.fire.test.webapp; -------------------------------------------------------------------------------- /fire-signature-decipher/src/main/java/es/gob/fire/server/decipher/PropertyDecipher.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.decipher; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * Interfaz que define los métodos que se deben implementar para el descifrado de 7 | * propiedades de los ficheros de configuración de FIRe. 8 | */ 9 | public interface PropertyDecipher { 10 | 11 | /** 12 | * Descifra los datos cifrados indicados en base 64 en los ficheros de 13 | * configuración. 14 | * @param cipheredData Datos cifrados después de decodificar el base 64. 15 | * @return Cadena de texto descifrada. 16 | * @throws IOException Cuando ocurre algún error durante el descifrado. 17 | */ 18 | String decipher (byte[] cipheredData) throws IOException; 19 | } 20 | -------------------------------------------------------------------------------- /fire-signature-decipher/src/main/java/es/gob/fire/server/decipher/package-info.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | /** Paquete con la interfaz para la definición de clases para el uso de propiedades 11 | * cifradas en los ficheros de configuración. */ 12 | package es.gob.fire.server.decipher; -------------------------------------------------------------------------------- /fire-client-dotnet/Examples/example_fire_recover_async_sign.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="example_fire_recover_async_sign.aspx.cs" Inherits="example_fire_recover_async_sign" %> 2 | 3 | <%@ Register tagprefix="cf" Namespace="FIRe" %> 4 | 5 | 6 | 7 | 8 | Recuperar documento firmado 9 | 10 | 11 |
12 |
13 |
Estado: 14 |
Formato de actualizacion: 15 |
Resultado:
16 |
17 |
18 | 19 | 20 | -------------------------------------------------------------------------------- /scripts/BBDD/Oracle/02_fire_insert.sql: -------------------------------------------------------------------------------- 1 | -- ******************************************************** 2 | -- **************** Insercion datos ******************** 3 | -- ******************************************************** 4 | 5 | -- Insertamos los permisos de los roles 6 | INSERT INTO TB_ROLES ("ID","NOMBRE_ROL","PERMISOS") 7 | VALUES(1,'admin','1,2'); 8 | 9 | INSERT INTO TB_ROLES ("ID","NOMBRE_ROL","PERMISOS") 10 | VALUES(2,'responsible','2'); 11 | 12 | INSERT INTO TB_ROLES ("ID","NOMBRE_ROL","PERMISOS") 13 | VALUES(3,'contact',NULL); 14 | 15 | -- USUARIO POR DEFECTO -------- 16 | INSERT INTO TB_USUARIOS ("NOMBRE_USUARIO", "CLAVE", "NOMBRE", "APELLIDOS", "USU_DEFECTO", "FK_ROL") 17 | VALUES('admin','$2y$12$JfP4bTV0i29Mnb3XBPOQl.L8JdbTrpn4fQljv8EEJKIp6NRZLB5TC','default name','default surnames',1,1); 18 | 19 | 20 | COMMIT; 21 | -------------------------------------------------------------------------------- /fire-admin-persistence/src/main/java/es/gob/fire/persistence/permissions/Permissions.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.persistence.permissions; 2 | 3 | /** 4 | * Permisos de los que puede disponer un rol de usuario. 5 | */ 6 | public enum Permissions { 7 | /** Permiso de acceso al módulo de administración. */ 8 | ACCESS("1"), //$NON-NLS-1$ 9 | /** Permiso para ser responsable de una aplicación. */ 10 | RESPONSIBLE("2"); //$NON-NLS-1$ 11 | 12 | private String id; 13 | 14 | /** 15 | * Crea el permiso asociándole un identificador. 16 | * @param id 17 | */ 18 | private Permissions(final String id) { 19 | this.id = id; 20 | } 21 | 22 | /** 23 | * Obtiene el identificador del permiso. 24 | * @return Identificador del permiso. 25 | */ 26 | public String getId() { 27 | return this.id; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples_old/example_generatecert.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="example_generatecert.aspx.cs" Inherits="example_generatecert" %> 2 | 3 | <%@ Register tagprefix="cf" Namespace="FIRe" %> 4 | 5 | 6 | 7 | 8 | Ejemplo de generacion de un nuevo certificado de firma 9 | 10 | 11 |
12 |
13 |
14 |
Id de transaccion: 15 |
URL a la que redirigir al usuario: 16 | 17 |
18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/templates/fragments/loading.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 5 |
6 |
7 | 8 | 9 |
10 |
11 |
12 | 13 |
14 |
15 |
16 | 17 | -------------------------------------------------------------------------------- /fire-statistics-common/src/main/java/es/gob/fire/statistics/entity/Browsers.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.statistics.entity; 2 | 3 | /** 4 | * Navegadores web. 5 | */ 6 | enum Browsers { 7 | /** Navegador Microsoft Internet Explorer. */ 8 | INTERNET_EXPLORER(1), 9 | /** Navegador Microsoft Edge. */ 10 | EDGE(2), 11 | /** Navegador Mozilla Firefox. */ 12 | FIREFOX(3), 13 | /** Navegador Google Chrome. */ 14 | CHROME(4), 15 | /** Navegador Apple Safari. */ 16 | SAFARI(5), 17 | /** Navegador Opera. */ 18 | OPERA(6), 19 | /** Cualquier otro navegador. */ 20 | OTHER(99); 21 | 22 | private int id; 23 | 24 | private Browsers(final int id) { 25 | this.id = id; 26 | } 27 | 28 | public final int getId() { 29 | return this.id; 30 | } 31 | 32 | @Override 33 | public String toString() { 34 | return Integer.toString(this.id); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /log-consumer-service/src/main/java/es/gob/log/consumer/ParticleParserUndefined.java: -------------------------------------------------------------------------------- 1 | package es.gob.log.consumer; 2 | 3 | /** 4 | * Analizador de una partícula de texto que puede abarcar varias líneas. 5 | * Esta interfaz se usa únicamente para identificar a los analizadores que 6 | * pueden procesar mas de una línea. Esto es necesario para saber como actuar 7 | * al leer los registros del log. 8 | */ 9 | public abstract class ParticleParserUndefined extends ParticleParser { 10 | 11 | /** 12 | * Establece cual es el analizador que identifica cual es la partícula 13 | * que debemos buscar para identificar que una línea se corresponde 14 | * con el inicio de un nuevo registro. 15 | * @param pParser Analizador de partícula. 16 | */ 17 | abstract void setInitialParser(ParticleParser pParser); 18 | } 19 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples_old/example_loaddata.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="example_loaddata.aspx.cs" Inherits="example_loaddata" %> 2 | 3 | <%@ Register tagprefix="cf" Namespace="FIRe" %> 4 | 5 | 6 | 7 | 8 | Ejemplo de carga de datos 9 | 10 | 11 |
12 |
13 | 14 |
Id de transaccion: 15 |
URL a la que redirigir al usuario: 16 |
Resultado parcial de la firma trifasica: 17 |
18 |
19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/batch/SignatureAlgorithm.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.batch; 2 | 3 | import es.gob.fire.server.services.batch.SingleSignConstants.AsyncCipherAlgorithm; 4 | import es.gob.fire.server.services.batch.SingleSignConstants.DigestAlgorithm; 5 | 6 | /** Algoritmo de firma. */ 7 | public class SignatureAlgorithm { 8 | 9 | final DigestAlgorithm digestAlgo; 10 | AsyncCipherAlgorithm cipherAlgo; 11 | 12 | public SignatureAlgorithm(final DigestAlgorithm digestAlgo, final AsyncCipherAlgorithm cipherAlgo) { 13 | this.digestAlgo = digestAlgo; 14 | this.cipherAlgo = cipherAlgo; 15 | } 16 | 17 | public String getName() { 18 | return this.digestAlgo.getName() + "with" + this.cipherAlgo.getName(); //$NON-NLS-1$ 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return getName(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /fire-admin-core/src/main/java/es/gob/fire/report/common/ReportGenerator.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.report.common; 2 | 3 | import java.util.Map; 4 | 5 | import es.gob.fire.report.petition.AuditReport; 6 | 7 | /** 8 | *

Class that manages the generation of reports.

9 | * @version 1.0, 06/07/2023. 10 | */ 11 | public class ReportGenerator { 12 | 13 | private static final String REPORT_TYPE_AUDIT = "AUDIT"; 14 | 15 | /** 16 | * Constructor method for the class ReportGenerator.java. 17 | */ 18 | private ReportGenerator(){ 19 | } 20 | 21 | public static Report getReport(String type, Map parameters){ 22 | Report report = null; 23 | 24 | switch (type){ 25 | case REPORT_TYPE_AUDIT: 26 | report = new AuditReport(parameters); 27 | break; 28 | default: 29 | break; 30 | } 31 | 32 | 33 | return report; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /fire-signature-connector-clavefirma/src/main/java/es/gob/fire/server/connector/clavefirma/package-info.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | /** Implementación del API interno de firma en la nube mediante los 11 | * certificados del servicio de Cl@ve Firma. 12 | * @author Tomás García-Merás. */ 13 | package es.gob.fire.server.connector.clavefirma; -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/internal/SessionFlags.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.internal; 2 | 3 | /** 4 | * Conjunto de valores que señalizan el estado de un trámite 5 | * de la sesión. 6 | */ 7 | public enum SessionFlags { 8 | 9 | /** Indicador de que la última operación realizada iniciaba una firma. */ 10 | OP_SIGN, 11 | /** Indicador de que la última operación realizada seleccionó el proveedor de firma. */ 12 | OP_CHOOSE, 13 | /** Indicador de que la última operación realizada generó una firma. */ 14 | OP_PRE, 15 | /** Indicador de que la última operación realizada generó un certificado. */ 16 | OP_GEN, 17 | /** Indicador de que la última operación realizada recuperaba el resultado de firma. */ 18 | OP_RECOVER; 19 | } 20 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/internal/sessions/ExpiredFileFilter.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.internal.sessions; 2 | 3 | import java.io.File; 4 | import java.io.FileFilter; 5 | 6 | /** 7 | * Filtro de ficheros para la obtención de ficheros de datos 8 | * que se hayan modificado hace más del tiempo indicado. 9 | */ 10 | class ExpiredFileFilter implements FileFilter { 11 | 12 | private final long timeoutMillis; 13 | 14 | /** 15 | * Tiempo máximo de vigencia de un fichero. 16 | * @param timeout Tiempo de vigencia en milisegundos. 17 | */ 18 | public ExpiredFileFilter(final long timeout) { 19 | this.timeoutMillis = timeout; 20 | } 21 | 22 | @Override 23 | public boolean accept(final File pathname) { 24 | return pathname.isFile() && System.currentTimeMillis() > pathname.lastModified() + this.timeoutMillis; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/batch/PreProcessResult.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.batch; 2 | 3 | import es.gob.afirma.core.signers.TriphaseData; 4 | 5 | /** 6 | * Resultado de la prefirma de una firma individual, que puede ser la prefirma generada 7 | * o el error resultante. 8 | */ 9 | public class PreProcessResult { 10 | 11 | private final ResultSingleSign signResult; 12 | 13 | private final TriphaseData presign; 14 | 15 | public PreProcessResult(final TriphaseData presign) { 16 | this.signResult = null; 17 | this.presign = presign; 18 | } 19 | 20 | public PreProcessResult(final ResultSingleSign result) { 21 | this.signResult = result; 22 | this.presign = null; 23 | } 24 | 25 | public TriphaseData getPresign() { 26 | return this.presign; 27 | } 28 | 29 | public ResultSingleSign getSignResult() { 30 | return this.signResult; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/internal/BusinessException.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.internal; 2 | 3 | import es.gob.fire.server.services.FIReError; 4 | 5 | /** 6 | * Excepción interna de operación que señala el error 7 | * concreto de FIRe que se ha producido. 8 | */ 9 | class BusinessException extends Exception { 10 | 11 | /** Serial Id. */ 12 | private static final long serialVersionUID = -8310529118039752152L; 13 | private final FIReError fireError; 14 | 15 | public BusinessException(final FIReError fireError) { 16 | super(); 17 | this.fireError = fireError; 18 | } 19 | 20 | public BusinessException(final FIReError fireError, final Throwable cause) { 21 | super(cause); 22 | this.fireError = fireError; 23 | } 24 | 25 | public FIReError getFireError() { 26 | return this.fireError; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /log-consumer-api/src/main/java/es/gob/log/consumer/client/HttpResponse.java: -------------------------------------------------------------------------------- 1 | package es.gob.log.consumer.client; 2 | 3 | /** 4 | * Respuesta HTTP. 5 | */ 6 | public class HttpResponse { 7 | 8 | byte[] content = null; 9 | int statusCode = 0; 10 | 11 | /** 12 | * Construye un objeto con los datos de una respuesta HTTP. 13 | * @param statusCode Resultado notificado en la respuesta. 14 | */ 15 | public HttpResponse(final int statusCode) { 16 | this.statusCode = statusCode; 17 | } 18 | 19 | /** 20 | * Establece el mensaje remitido en la respuesta. 21 | * @param content Mensaje de la respuesta. 22 | */ 23 | public void setContent(final byte[] content) { 24 | this.content = content; 25 | } 26 | 27 | /** 28 | * Obtiene el mensaje remitido en la respuesta. 29 | * @return Mensaje de la respuesta. 30 | */ 31 | public byte[] getContent() { 32 | return this.content; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /fire-test-jsp/src/main/java/es/gob/fire/test/webapp/FakePasswordDecipher.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.test.webapp; 2 | 3 | import java.io.IOException; 4 | import java.nio.charset.StandardCharsets; 5 | 6 | import es.gob.fire.client.PasswordDecipher; 7 | 8 | /** 9 | * Descifrador de contraseñas de ejemplo. Esta implementación 10 | * realmente no descifra. Utiliza como cadena descifrada la propia entrada. 11 | * Esto permitiría que en el fichero de configuración se indicase 12 | * como cadena "cifrada" el base64 del texto y como resultado se obtenga el 13 | * propio texto. 14 | */ 15 | public class FakePasswordDecipher implements PasswordDecipher { 16 | 17 | @Override 18 | public char[] decipher(final byte[] cipheredPassword) throws IOException { 19 | return new String( 20 | cipheredPassword, 21 | StandardCharsets.UTF_8).toCharArray(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /fire-signature-document/src/main/java/es/gob/fire/server/document/package-info.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2018 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 19/11/2018 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | /** Paquete con la interfaz para la definición de mecanismos de carga de datos y 11 | * guardado de firmas con los cuales FIRe podrá ser el encargado de realizar estas 12 | * operaciones reduciendo la transferencia de datos. */ 13 | package es.gob.fire.server.document; -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/internal/sessions/SessionException.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.internal.sessions; 2 | 3 | /** 4 | * Excepción que señala un problema de aturaleza 5 | */ 6 | public class SessionException extends Exception { 7 | 8 | /** Sesion Id. */ 9 | private static final long serialVersionUID = -1475752597406718059L; 10 | 11 | /** 12 | * Construye la excepción con el mensaje descriptivo. 13 | * @param msg Mensaje descriptivo. 14 | */ 15 | public SessionException(final String msg) { 16 | super(msg); 17 | } 18 | 19 | /** 20 | * Construye la excepción con el mensaje descriptivo y su causa. 21 | * @param msg Mensaje descriptivo. 22 | * @param cause Motivo por el que se lanza la excepción. 23 | */ 24 | public SessionException(final String msg, final Throwable cause) { 25 | super(msg, cause); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/internal/CryptoOperation.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | package es.gob.fire.server.services.internal; 11 | 12 | /** 13 | * Tipo de operación criptográfica. 14 | */ 15 | public enum CryptoOperation { 16 | /** Operación firma o multifirma. */ 17 | SIGNATURE, 18 | /** Operación de lote de firmas. */ 19 | BATCH 20 | } 21 | -------------------------------------------------------------------------------- /fire-admin-i18n/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 4.0.0 5 | fire-admin-i18n 6 | fire-admin-i18n 7 | jar 8 | 9 | 10 | es.gob.fire 11 | fire-artifacts 12 | 2.4 13 | 14 | 15 | 16 | 17 | org.springframework.boot 18 | spring-boot-starter-log4j2 19 | 20 | 21 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/internal/ErrorResult.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.internal; 2 | 3 | import java.nio.charset.Charset; 4 | 5 | import es.gob.fire.server.connector.OperationResult; 6 | 7 | public class ErrorResult extends OperationResult { 8 | 9 | private final int code; 10 | private final String message; 11 | 12 | public ErrorResult(final int code, final String message) { 13 | this.code = code; 14 | this.message = message; 15 | } 16 | 17 | public int getCode() { 18 | return this.code; 19 | } 20 | 21 | public String getMessage() { 22 | return this.message; 23 | } 24 | 25 | @Override 26 | public byte[] encodeResult(final Charset charset) { 27 | final String result = "{\"c\": " + this.code + ", \"m\": \"" + this.message + "\"}"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ 28 | return charset != null ? result.getBytes(charset) : result.getBytes(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/SignatureFormat.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services; 2 | 3 | /** Formato de firma. */ 4 | public enum SignatureFormat { 5 | 6 | /** CAdES. */ 7 | CADES("CAdES"), //$NON-NLS-1$ 8 | 9 | /** CAdES-ASiC-S. */ 10 | CADES_ASIC_S("CAdES-ASiC-S"), //$NON-NLS-1$ 11 | 12 | /** XAdES. */ 13 | XADES("XAdES"), //$NON-NLS-1$ 14 | 15 | /** XAdES-ASiC-S. */ 16 | XADES_ASIC_S("XAdES-ASiC-S"), //$NON-NLS-1$ 17 | 18 | /** FacturaE. */ 19 | FACTURAE("FacturaE"), //$NON-NLS-1$ 20 | 21 | /** PAdES. */ 22 | PADES("PAdES"), //$NON-NLS-1$ 23 | 24 | /** Sin formato (PKCS#1). */ 25 | NONE("NONE"); //$NON-NLS-1$ 26 | 27 | private final String fmtName; 28 | 29 | SignatureFormat(final String fmt) { 30 | this.fmtName = fmt; 31 | } 32 | 33 | @Override 34 | public String toString() { 35 | return this.fmtName; 36 | } 37 | } -------------------------------------------------------------------------------- /fire-admin-persistence/src/main/java/es/gob/fire/persistence/repository/RolRepository.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.persistence.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import es.gob.fire.persistence.entity.Rol; 6 | 7 | public interface RolRepository extends JpaRepository { 8 | 9 | /** 10 | * Method that obtains from the persistence an user role identified by its primary key. 11 | * @param rolId String that represents the primary key of the user in the persistence. 12 | * @return Object that represents an user role from the persistence. 13 | */ 14 | Rol findByRolId(Long rolId); 15 | 16 | /** 17 | * Method that obtains from the persistence an user role identified by its role name. 18 | * @param rolName String that represents the userName used to log in. 19 | * @return Object that represents an user role from the persistence. 20 | */ 21 | Rol findByRolName(String rolName); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /scripts/BBDD/Oracle/Opcional_sesiones_en_bd_ddl.sql: -------------------------------------------------------------------------------- 1 | -- ******************************************************** 2 | -- *** Tablas para el guardado de sesiones y documentos *** 3 | -- *** en base de datos. Solo necesarias si se activa *** 4 | -- *** esta opcion en el fichero de configuracion del *** 5 | -- *** componente central. *** 6 | -- ******************************************************** 7 | 8 | -- Tabla para el guardado temporal de sesiones en BD 9 | CREATE TABLE "TB_COMP_SESIONES" ( 10 | "ID" VARCHAR2(64) NOT NULL, 11 | "F_MODIFICACION" NUMBER (20,0) NOT NULL, 12 | "SESION" BLOB, 13 | CONSTRAINT "TB_SESIONES_PK" PRIMARY KEY ("ID") 14 | ); 15 | 16 | -- Tabla para el guardado temporal de documentos en BD 17 | CREATE TABLE "TB_COMP_DOCUMENTOS" ( 18 | "ID" VARCHAR2(80) NOT NULL, 19 | "F_MODIFICACION" NUMBER (20,0) NOT NULL, 20 | "DATOS" BLOB, 21 | CONSTRAINT "TB_DOCUMENTOS_PK" PRIMARY KEY ("ID") 22 | ); 23 | -------------------------------------------------------------------------------- /fire-admin-persistence/src/main/java/es/gob/fire/persistence/validatordni/Nif.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.persistence.validatordni; 2 | 3 | import static java.lang.annotation.ElementType.ANNOTATION_TYPE; 4 | import static java.lang.annotation.ElementType.FIELD; 5 | import static java.lang.annotation.ElementType.METHOD; 6 | import static java.lang.annotation.RetentionPolicy.RUNTIME; 7 | 8 | import java.lang.annotation.Documented; 9 | import java.lang.annotation.Retention; 10 | import java.lang.annotation.Target; 11 | 12 | import javax.validation.Constraint; 13 | import javax.validation.Payload; 14 | 15 | @Target({ METHOD, FIELD, ANNOTATION_TYPE }) 16 | @Retention(RUNTIME) 17 | @Constraint(validatedBy = validatorDNI.class) 18 | @Documented 19 | public @interface Nif { 20 | 21 | String message() default "{com.autentia.core.persistentce.constraints.nif}"; 22 | 23 | Class[] groups() default {}; 24 | 25 | Class[] payload() default {}; 26 | 27 | } -------------------------------------------------------------------------------- /fire-client-dotnet/Examples_old/example_getlist.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="example_getlist.aspx.cs" Inherits="example_getlist" %> 2 | 3 | <%@ Register tagprefix="cf" Namespace="FIRe" %> 4 | 5 | 6 | 7 | 8 | Ejemplo de listado de certificados 9 | 10 | 11 |
12 |
13 | 14 | Certificado Base64: 15 | 16 |


17 | 18 |
19 | Emisor:
20 | Fecha caducidad:
21 | 22 |
23 |
24 | 25 | 26 | -------------------------------------------------------------------------------- /scripts/BBDD/MySQL/Opcional_sesiones_en_bd_ddl.sql: -------------------------------------------------------------------------------- 1 | -- ******************************************************** 2 | -- *** Tablas para el guardado de sesiones y documentos *** 3 | -- *** en base de datos. Solo necesarias si se activa *** 4 | -- *** esta opcion en el fichero de configuracion del *** 5 | -- *** componente central. *** 6 | -- ******************************************************** 7 | 8 | -- Tabla para el guardado temporal de sesiones en BD 9 | CREATE TABLE `tb_comp_sesiones` ( 10 | `id` varchar(64) NOT NULL, 11 | `f_modificacion` bigint(10) NOT NULL, 12 | `sesion` blob, 13 | PRIMARY KEY (`id`) 14 | ) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4; 15 | 16 | -- Tabla para el guardado temporal de documentos en BD 17 | CREATE TABLE `tb_comp_documentos` ( 18 | `id` varchar(80) NOT NULL, 19 | `f_modificacion` bigint(10) NOT NULL, 20 | `datos` longblob, 21 | PRIMARY KEY (`id`) 22 | ) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4; 23 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/java/es/gob/clavefirma/test/services/TestServiceParams.java: -------------------------------------------------------------------------------- 1 | package es.gob.clavefirma.test.services; 2 | 3 | /** 4 | * Clase con los identificadores de los distintos parametros que se utilizan en la 5 | * ejecución de las operaciones de Clave Firma. 6 | */ 7 | public class TestServiceParams { 8 | 9 | /** Parámetro usado en el envío de datos HTTP con el ID del usuario. */ 10 | public static final String HTTP_PARAM_SUBJECT_REF = "subjectref"; //$NON-NLS-1$ 11 | 12 | /** Parámetro usado en el envío de datos HTTP con el origen del certificado. */ 13 | public static final String HTTP_PARAM_CERT_ORIGIN = "certorigin"; //$NON-NLS-1$ 14 | 15 | /** Parámetro usado en el envío de datos HTTP que indica si se configuró el origen del certificado desde la aplicación cliente. */ 16 | public static final String HTTP_PARAM_CERT_ORIGIN_FORCED = "originforced"; //$NON-NLS-1$ 17 | 18 | } 19 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples_old/example_recovercert.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="example_recovercert.aspx.cs" Inherits="example_recovercert" %> 2 | 3 | <%@ Register tagprefix="cf" Namespace="FIRe" %> 4 | 5 | 6 | 7 | 8 | Ejemplo de recuperacion del certificado recien generado 9 | 10 | 11 |
12 |
13 | Certificado Base64: 14 | 15 |


16 | 17 |
18 | Emisor:
19 | Fecha caducidad:
20 |
21 |
22 | 23 | 24 | -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/Error/FileNotFound.jsp: -------------------------------------------------------------------------------- 1 | 2 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | FIRe 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | <% 18 | 19 | if (request.getParameter("file") != null){ //$NON-NLS-1$ 20 | %> 21 |

No se ha encontrado el fichero <%= request.getParameter("file") //$NON-NLS-1$ 22 | %>

23 |

Consulte con el administrador del sistema.

24 | <% 25 | } 26 | else{ 27 | response.sendRedirect("Login.jsp"); //$NON-NLS-1$ 28 | return; 29 | } 30 | %> 31 |
32 | 33 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples/example_fire_recover_batch_result.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" 2 | CodeFile="example_fire_recover_batch_result.aspx.cs" 3 | Inherits="example_fire_recover_batch_result" %> 4 | 5 | <%@ Register tagprefix="cf" Namespace="FIRe" %> 6 | 7 | 8 | 9 | 10 | Recuperar resultado de la firma del lote 11 | 12 | 13 |
14 |
15 | 16 |
Proveedor:
17 |
Certificado:
18 |
Resultado de firma:
19 |
Resultado de firma:
20 | 21 |
22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples/example_fire_recover_sign.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="example_fire_recover_sign.aspx.cs" Inherits="example_fire_recover_sign" %> 2 | 3 | <%@ Register tagprefix="cf" Namespace="FIRe" %> 4 | 5 | 6 | 7 | 8 | Recuperar documento firmado 9 | 10 | 11 |
12 |
13 |
Estado:
14 |
Proveedor:
15 |
Formato de actualizacion: 16 |
Certificado:
17 |
Firma:
18 |
19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /fire-log-handlers/src/main/java/es/gob/fire/logs/package-info.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2018 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | 11 | /** Este paquete y los subpaquetes que contiene almacenan varias clases extraídas de la 12 | * biblioteca "jboss-logmanager.jar". Estas clases han sido modificadas para reducir sus dependencias 13 | * y eliminar funciones innecesarias. Los autores, comentarios y licencias originales de las clases 14 | * se mantienen y respetan. */ 15 | package es.gob.fire.logs; 16 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/batch/BatchException.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | package es.gob.fire.server.services.batch; 11 | 12 | /** Error en el proceso de firma por lotes. 13 | * @author Tomás García-Merás. */ 14 | public final class BatchException extends Exception { 15 | 16 | private static final long serialVersionUID = 1L; 17 | 18 | BatchException(final String msg, final Throwable e) { 19 | super(msg, e); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/internal/FirePages.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.internal; 2 | 3 | /** 4 | * Clase con los nombres de las páginas del componente central. 5 | */ 6 | public class FirePages { 7 | 8 | /** Página JSP "ChooseCertificate.jsp"*/ 9 | public static final String PG_CHOOSE_CERTIFICATE="ChooseCertificate.jsp"; //$NON-NLS-1$ 10 | /** Página JSP "ChooseCertificateNoCerts.jsp"*/ 11 | public static final String PG_CHOOSE_CERTIFICATE_NOCERT="ChooseCertificateNoCerts.jsp"; //$NON-NLS-1$ 12 | /** Página JSP "ChooseCertificateOrigin.jsp"*/ 13 | public static final String PG_CHOOSE_CERTIFICATE_ORIGIN="ChooseCertificateOrigin.jsp"; //$NON-NLS-1$ 14 | /** Página JSP "MiniApplet.jsp"*/ 15 | public static final String PG_CLIENTE_AFIRMA="MiniApplet.jsp"; //$NON-NLS-1$ 16 | /** Página JSP "SignatureErrorPage.jsp"*/ 17 | public static final String PG_SIGNATURE_ERROR="SignatureErrorPage.jsp"; //$NON-NLS-1$ 18 | } 19 | -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/Error/SevereError.jsp: -------------------------------------------------------------------------------- 1 | 2 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | FIRe 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | <% 19 | if (request.getParameter("msg") != null){ //$NON-NLS-1$ 20 | %> 21 |

Ocurrió un error grave que impidió acceder a la aplicación: 22 | <%= 23 | request.getParameter("msg") //$NON-NLS-1$ 24 | %> 25 |

26 | <% 27 | } 28 | else{ 29 | response.sendRedirect("Login.jsp"); //$NON-NLS-1$ 30 | return; 31 | } 32 | %> 33 |
34 | 35 | -------------------------------------------------------------------------------- /fire-signature-common-libraries/src/main/java/es/gob/fire/signature/ProviderElements.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.signature; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class ProviderElements { 7 | 8 | private static final String VALUES_SEPARATOR = ","; //$NON-NLS-1$ 9 | 10 | public static ProviderElement[] parse(final String providers) { 11 | if (providers == null) { 12 | return new ProviderElement[0]; 13 | } 14 | 15 | final List providersList = new ArrayList<>(); 16 | final String[] providersTempList = providers.split(VALUES_SEPARATOR); 17 | for (final String provider : providersTempList) { 18 | if (provider != null && !provider.trim().isEmpty()) { 19 | final ProviderElement prov = new ProviderElement(provider); 20 | if (!providersList.contains(prov)) { 21 | providersList.add(prov); 22 | } 23 | } 24 | } 25 | return providersList.toArray(new ProviderElement[providersList.size()]); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /log-consumer-service/src/main/java/es/gob/log/consumer/LogConstants.java: -------------------------------------------------------------------------------- 1 | package es.gob.log.consumer; 2 | 3 | /** 4 | * Clase que define las constantes generales utilizadas en los servicios. 5 | * @author Adolfo.Navarro 6 | * 7 | */ 8 | public class LogConstants { 9 | 10 | 11 | /** Indica la extensión de lo ficheros de configuración de log*/ 12 | public static final String FILE_EXT_LOGINFO =".loginfo"; //$NON-NLS-1$ 13 | 14 | /** Indica la extensión de lo ficheros de log*/ 15 | public static final String FILE_EXT_LOG =".log"; //$NON-NLS-1$ 16 | 17 | /**Indica la extensión de lo ficheros de log en uso*/ 18 | public static final String FILE_EXT_LCK=".lck"; //$NON-NLS-1$ 19 | 20 | /** Indica la extensión de los ficheros comprimidos*/ 21 | public static final String FILE_EXT_ZIP = ".zip"; //$NON-NLS-1$ 22 | 23 | /** Indica el tamaño de las partes que se dividen los ficheros log en la lectura*/ 24 | public static final int PART_SIZE = 5120000; 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /fire-admin-core/src/test/java/es/gob/fire/report/common/ReportGeneratorTest.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.report.common; 2 | 3 | import static org.junit.Assert.*; 4 | 5 | import java.util.HashMap; 6 | import java.util.Map; 7 | 8 | import org.junit.Test; 9 | 10 | import es.gob.fire.report.petition.AuditReport; 11 | 12 | public class ReportGeneratorTest { 13 | 14 | @Test 15 | public void testGetAuditReport() { 16 | Map parameters = new HashMap<>(); 17 | parameters.put("parametro", "valor"); 18 | 19 | Report report = ReportGenerator.getReport("AUDIT", parameters); 20 | 21 | assertNotNull(report); 22 | assertTrue(report instanceof AuditReport); 23 | } 24 | 25 | @Test 26 | public void testGetNullReport() { 27 | Map parameters = new HashMap<>(); 28 | parameters.put("parametro", "valor"); 29 | 30 | Report report = ReportGenerator.getReport("NULL", parameters); 31 | 32 | assertNull(report); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /fire-signature-document/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 4.0.0 5 | es.gob.fire 6 | fire-signature-document 7 | jar 8 | 9 | fire-signature-document 10 | 11 | 12 | es.gob.fire 13 | fire-artifacts 14 | 2.4 15 | 16 | 17 | 18 | 19 | 20 | org.apache.maven.plugins 21 | maven-compiler-plugin 22 | ${maven-compiler-plugin.version} 23 | 24 | ${jdk.version} 25 | ${jdk.version} 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /fire-signature/src/main/resources/alarms_config.properties: -------------------------------------------------------------------------------- 1 | 2 | # Configuracion de las propiedades necesarias para el gestor de alarmas activo. 3 | # Este gestor es el que comunica las alarmas las sistema y se define en el 4 | # fichero "config.properties", a traves de la propiedad "alarms.notifier". El 5 | # uso de este gestor es opcional y, por defecto, no estara activo. 6 | # 7 | # Cada gestor de alarmas tiene sus propiedades de configuracion totalmente 8 | # independientes, pero siempre se configuraran a traves de este fichero. 9 | 10 | 11 | # ================================================================= 12 | # =============== NOTIFICACION DE ALARMAS A GRAYLOG =============== 13 | # ================================================================= 14 | # Acceso habilitado 15 | enabled=false 16 | 17 | # IP de acceso al servicio de GrayLog 18 | destination.host=127.0.0.1 19 | 20 | # Puerto de acceso al servicio de GrayLog 21 | destination.port=8080 22 | 23 | # Entorno en el que se encuentra desplegado el servicio (PRE, PRO, DESAROLLO, etc) 24 | field.entorno=LOCAL 25 | -------------------------------------------------------------------------------- /fire-alarms/src/main/java/es/gob/fire/alarms/InitializationException.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.alarms; 2 | 3 | /** 4 | * Excepción lanzada al producirse un error durante la inicialización 5 | * del notificador de alarmas. 6 | */ 7 | public class InitializationException extends Exception { 8 | 9 | /** Serial Id. */ 10 | private static final long serialVersionUID = 250831824085760980L; 11 | 12 | /** 13 | * Construye la excepción. 14 | */ 15 | public InitializationException() { 16 | super(); 17 | } 18 | 19 | /** 20 | * Construye un excepción. 21 | * @param message Mensage descriptivo de la excepción. 22 | */ 23 | public InitializationException(final String message) { 24 | super(message); 25 | } 26 | 27 | /** 28 | * Construye un excepción. 29 | * @param message Mensage descriptivo de la excepción. 30 | * @param cause Motivo por el que se lanza la excepción. 31 | */ 32 | public InitializationException(final String message, final Throwable cause) { 33 | super(message, cause); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /fire-admin-persistence/src/main/java/es/gob/fire/persistence/repository/CertificateRepository.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.persistence.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import es.gob.fire.persistence.entity.Certificate; 7 | 8 | 9 | @Repository 10 | public interface CertificateRepository extends JpaRepository{ 11 | 12 | 13 | /** 14 | * Method that obtains from the persistence a user identified by its primary key. 15 | * @param userId String that represents the primary key of the user in the persistence. 16 | * @return Object that represents a user from the persistence. 17 | */ 18 | Certificate findByIdCertificado(Long idCertificado); 19 | 20 | /** 21 | * Method that obtains from the persistence a user identified by its user name. 22 | * @param userName String that represents the userName used to log in. 23 | * @return Object that represents a user from the persistence. 24 | */ 25 | Certificate findByCertificateName(String nombre_cert); 26 | } 27 | -------------------------------------------------------------------------------- /fire-client-dotnet/FIRe/FIRe/ErrorResultJson.cs: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2022 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 04/11/2022 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | 11 | namespace FIRe 12 | { 13 | /// 14 | /// Clase para la serialización/deserialización de un error trasladado por el servicio. 15 | /// 16 | internal class ErrorResultJson 17 | { 18 | /// 19 | /// Código de error. 20 | /// 21 | public int c { get; set; } 22 | 23 | /// 24 | /// Mensaje de error. 25 | /// 26 | public string m { get; set; } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /fire-log-handlers/src/main/java/es/gob/fire/logs/handlers/FlushableCloseable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source. 3 | * 4 | * Copyright 2014 Red Hat, Inc., and individual contributors 5 | * as indicated by the @author tags. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | 20 | package es.gob.fire.logs.handlers; 21 | 22 | import java.io.Closeable; 23 | import java.io.Flushable; 24 | 25 | /** 26 | * A resource which is flushable and closeable. 27 | */ 28 | public interface FlushableCloseable extends Flushable, Closeable {} 29 | -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/fire-log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | [%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/js/datatables/i18n/spanish.json: -------------------------------------------------------------------------------- 1 | { 2 | "sProcessing": "Procesando...", 3 | "sLengthMenu": "Mostrar _MENU_ registros", 4 | "sZeroRecords": "No se encontraron resultados", 5 | "sEmptyTable": "Ningún dato disponible en esta tabla", 6 | "sInfo": "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros", 7 | "sInfoEmpty": "Mostrando registros del 0 al 0 de un total de 0 registros", 8 | "sInfoFiltered": "(filtrado de un total de _MAX_ registros)", 9 | "sInfoPostFix": "", 10 | "sSearch": "Buscar:", 11 | "sUrl": "", 12 | "sInfoThousands": ",", 13 | "sLoadingRecords": "Cargando...", 14 | "oPaginate": { 15 | "sFirst": "Primero", 16 | "sLast": "Último", 17 | "sNext": "Siguiente", 18 | "sPrevious": "Anterior" 19 | }, 20 | "oAria": { 21 | "sSortAscending": ": Activar para ordenar la columna de manera ascendente", 22 | "sSortDescending": ": Activar para ordenar la columna de manera descendente" 23 | } 24 | } -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/internal/ApplicationsDAOFactory.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.internal; 2 | 3 | import es.gob.fire.signature.ConfigManager; 4 | 5 | /** 6 | * Factoría para la obtención del objeto de acceso a datos para la obtención 7 | * de información de las aplicaciones. 8 | */ 9 | public class ApplicationsDAOFactory { 10 | 11 | private static ApplicationsDAO instance = null; 12 | 13 | /** 14 | * Obtiene el objeto activo para el acceso a datos de la información 15 | * de las aplicaciones registradas en el sistema. 16 | * @return Objeto para el acceso a la informacion de las aplicaciones. 17 | */ 18 | public static ApplicationsDAO getApplicationsDAO() { 19 | if (instance == null) { 20 | instance = loadDAOInstance(); 21 | } 22 | return instance; 23 | } 24 | 25 | private static ApplicationsDAO loadDAOInstance() { 26 | if (ConfigManager.getDatasourceJNDIName() != null && !ConfigManager.getDatasourceJNDIName().isEmpty()) { 27 | return new DBApplicationsDAO(); 28 | } 29 | return new ConfigFileApplicationsDAO(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /fire-client-php/fire_api_examples/example_fire_recover_batch_result_state.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Recuperar estado de procesamiento del lote de firmas 4 | 5 | 6 | getCode(), ": ", $e->getMessage(), "\n"; 24 | return; 25 | } 26 | 27 | // Mostramos los datos obtenidos 28 | echo "
Firma:
", $signatureB64; 29 | ?> 30 | 31 | -------------------------------------------------------------------------------- /fire-upgrade/src/main/java/es/gob/fire/upgrade/VerifyException.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | package es.gob.fire.upgrade; 11 | 12 | /** 13 | * Error relacionado con validación de firmas. 14 | * @author Tomás García-Merás. 15 | */ 16 | public class VerifyException extends Exception { 17 | 18 | /** Serial Id. */ 19 | private static final long serialVersionUID = 5344165604415563447L; 20 | 21 | public VerifyException(final String msg, final Throwable e) { 22 | super(msg, e); 23 | } 24 | 25 | public VerifyException(final String desc) { 26 | super(desc); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /fire-upgrade/src/main/resources/platform.properties: -------------------------------------------------------------------------------- 1 | # Timeout de conexion (-1 sin timeout) 2 | webservices.timeout=50000 3 | 4 | # URL del servicio Afirma. Debe tener la barra ("/") final 5 | webservices.endpoint=http://des-afirma.redsara.es/afirmaws/services/ 6 | 7 | webservices.service.signupgrade=DSSAfirmaVerify 8 | webservices.service.recoversignature=DSSAsyncRequestStatus 9 | 10 | # Almacen de confianza para conexiones seguras 11 | com.trustedstore.path = C:/Users/carlos.gamuci/Documents/FIRe/Ficheros_Despliegue/Afirma_Desarrollo/trust-pafirma.jks 12 | com.trustedstore.password = 1234 13 | com.trustedstore.type = JKS 14 | 15 | # Metodo de autenticacion 16 | webservices.authorization.method = BinarySecurityToken 17 | 18 | # Propiedades para el metodo BinarySecurityToken 19 | webservices.authorization.ks.path = C:/Users/carlos.gamuci/Documents/FIRe/Ficheros_Despliegue/Afirma_Desarrollo/pafirma_keystore.jks 20 | webservices.authorization.ks.type = JKS 21 | webservices.authorization.ks.password = 123456 22 | webservices.authorization.ks.cert.alias = alias 23 | webservices.authorization.ks.cert.password = 1234 24 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/SignOperation.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services; 2 | 3 | /** 4 | * Operación de firma. 5 | */ 6 | public enum SignOperation { 7 | 8 | /** Firma. */ 9 | SIGN("sign"), //$NON-NLS-1$ 10 | /** Cofirma. */ 11 | COSIGN("cosign"), //$NON-NLS-1$ 12 | /** Contrafirma. */ 13 | COUNTERSIGN("countersign"); //$NON-NLS-1$ 14 | 15 | private String op; 16 | 17 | SignOperation(final String op) { 18 | this.op = op; 19 | } 20 | 21 | /** 22 | * Devuelve la operación con el nombre señalado. 23 | * @param opName Nombre de la operación. 24 | * @return Operación de firma. 25 | */ 26 | public static SignOperation parse(final String opName) { 27 | if (opName != null) { 28 | for (final SignOperation signOperation : values()) { 29 | if (signOperation.toString().equalsIgnoreCase(opName)) { 30 | return signOperation; 31 | } 32 | } 33 | } 34 | return null; 35 | } 36 | 37 | /** 38 | * Obtiene el nombre de la operación de firma. 39 | */ 40 | @Override 41 | public String toString() { 42 | return this.op; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/internal/BatchRecoverException.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.internal; 2 | 3 | /** 4 | * Excepción lanzada al producirse un error durante la recuperación 5 | * de los datos resultantes de una firma batch. 6 | */ 7 | public class BatchRecoverException extends Exception { 8 | 9 | /** Serial Id. */ 10 | private static final long serialVersionUID = -8576751196938207048L; 11 | 12 | private final String resultState; 13 | 14 | public BatchRecoverException(final String resultState) { 15 | super(); 16 | this.resultState = resultState; 17 | } 18 | 19 | public BatchRecoverException(final String msg, final String resultState) { 20 | super(msg); 21 | this.resultState = resultState; 22 | } 23 | 24 | public BatchRecoverException(final String msg, final Throwable cause, final String resultState) { 25 | super(msg, cause); 26 | this.resultState = resultState; 27 | } 28 | 29 | /** 30 | * Estado resultante. 31 | * @return Estado. 32 | */ 33 | public String getResultState() { 34 | return this.resultState; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /fire-admin-web/src/main/java/es/gob/fire/web/controller/AppController.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.web.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Controller; 5 | import org.springframework.web.bind.annotation.GetMapping; 6 | 7 | import es.gob.fire.persistence.repository.UserRepository; 8 | 9 | @Controller 10 | public class AppController { 11 | 12 | @Autowired 13 | UserRepository userRepository; 14 | 15 | @GetMapping({"/"}) 16 | public String index() { 17 | return "login.html"; 18 | } 19 | 20 | @GetMapping("/inicio") 21 | public String inicio() { 22 | return "inicio.html"; 23 | } 24 | @GetMapping("/user-form") 25 | public String user() { 26 | return "user-form"; 27 | } 28 | 29 | @GetMapping("/application") 30 | public String application() { 31 | return "application"; 32 | } 33 | 34 | @GetMapping("/certificates") 35 | public String certificates() { 36 | return "certificates"; 37 | } 38 | 39 | @GetMapping("/mailpasswordrestoration") 40 | public String mailPasswordRestoration() { 41 | return "mailpasswordrestoration.html"; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/java/es/gob/clavefirma/test/services/Responser.java: -------------------------------------------------------------------------------- 1 | package es.gob.clavefirma.test.services; 2 | 3 | import java.io.PrintWriter; 4 | import java.util.logging.Level; 5 | import java.util.logging.Logger; 6 | 7 | import javax.servlet.http.HttpServletResponse; 8 | 9 | /** 10 | * Clase para el envío de una respuesta al cliente. 11 | */ 12 | class Responser { 13 | 14 | private static final Logger LOGGER = Logger.getLogger(Responser.class.getName()); 15 | 16 | /** 17 | * Envia al cliente una respuesta con un texto y el código de error interno (500). 18 | * @param response Respuesta a través de la que enviar el mensaje. 19 | * @param msg Mensaje que enviar. 20 | */ 21 | static void sendError(final HttpServletResponse response, final String msg) { 22 | 23 | response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); 24 | try (PrintWriter writer = response.getWriter()) { 25 | writer.print(msg); 26 | writer.close(); 27 | } 28 | catch (final Exception e) { 29 | LOGGER.log(Level.SEVERE, "No se pudo enviar la respuesta de error al cliente", e); //$NON-NLS-1$ 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /fire-signature-connector-clavefirma/src/test/java/es/gob/fire/signature/connector/principal/NoCertificatesException.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | package es.gob.fire.signature.connector.principal; 11 | 12 | /** 13 | * No se encontraron certificados. 14 | */ 15 | public class NoCertificatesException extends Exception { 16 | 17 | /** Serial Id. */ 18 | private static final long serialVersionUID = 2464905143989634556L; 19 | 20 | /** 21 | * Crea un error indicando que no se encontraron certificados. 22 | * @param msg Mensaje de error. 23 | */ 24 | public NoCertificatesException(final String msg) { 25 | super(msg); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /fire-signature/src/main/resources/docmanager.filesystem.properties: -------------------------------------------------------------------------------- 1 | 2 | # ============================================================================= 3 | # ESTE FICHERO DE CONFIGURACION SOLO ES NECESARIO CUANDO SE CONFIGURE EN EL 4 | # FICHERO "config.properties" LA PROPIEDAD: 5 | # docmanager.filesystem=es.gob.fire.server.services.document.FileSystemFIReDocumentManager 6 | # ============================================================================= 7 | 8 | # Directorio de entrada de donde se tomaran los datos a firmar. Se utilizaran 9 | # los identificadores de documento indicados como los nombres de los ficheros 10 | # que se leeran de este directorio. 11 | indir=C:/Users/carlos.gamuci/Desktop/Dir_Entrada 12 | 13 | # Directorio de salida en donde se guardaran las firmas generadas. Las firmas 14 | # se almacenaran usando como nombre el identificador de documento de entrada 15 | # mas la extension correspondiente al formato de firma usado. 16 | outdir=C:/Users/carlos.gamuci/Desktop/Dir_Salida 17 | 18 | # Consigura si deben sobreescribirse ficheros en el directorio de salida si 19 | # nos encontrasemos que ya existe. 20 | # Por defecto, false 21 | overwrite=true -------------------------------------------------------------------------------- /fire-client-java/src/test/resources/xml_with_ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Bloodroot 5 | Sanguinaria canadensis 6 | 4 7 | Mostly Shady 8 | $2.44 9 | 031599 10 | 11 | 12 | 13 | Columbine 14 | Aquilegia canadensis 15 | 3 16 | Mostly Shady 17 | $9.37 18 | 030699 19 | 20 | 21 | 22 | Marsh Marigold 23 | Caltha palustris 24 | 4 25 | Mostly Sunny 26 | $6.81 27 | 051799 28 | 29 | 30 | 31 | Cowslip 32 | Caltha palustris 33 | 4 34 | Mostly Shady 35 | $9.90 36 | 030699 37 | 38 | 39 | -------------------------------------------------------------------------------- /fire-admin-commons-util/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | es.gob.fire 7 | fire-artifacts 8 | 2.4 9 | 10 | fire-admin-commons-util 11 | fire-admin-commons-util 12 | http://maven.apache.org 13 | 14 | UTF-8 15 | 16 | 17 | 18 | junit 19 | junit 20 | test 21 | 22 | 23 | es.gob.fire 24 | fire-admin-i18n 25 | 26 | 27 | commons-codec 28 | commons-codec 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/java/es/gob/clavefirma/test/services/BlockedCertificateException.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | package es.gob.clavefirma.test.services; 11 | 12 | /** 13 | * Excepció para indicar que existen certificados bloqueados. 14 | */ 15 | public class BlockedCertificateException extends Exception { 16 | 17 | /** Serial Id. */ 18 | private static final long serialVersionUID = -5341612544379574862L; 19 | 20 | /** 21 | * Crea la excepción con un mensaje que describe el problema. 22 | * @param msg Mensaje descritivo. 23 | */ 24 | public BlockedCertificateException(final String msg) { 25 | super(msg); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /fire-signature-decipher/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 4.0.0 5 | es.gob.fire 6 | fire-signature-decipher 7 | jar 8 | 9 | fire-signature-decipher 10 | Modulo con la interfaz para la implementacion de clases para el uso de constrasenas cifradas en los ficheros de configuracion. 11 | 12 | 13 | es.gob.fire 14 | fire-artifacts 15 | 2.4 16 | 17 | 18 | 19 | 20 | 21 | org.apache.maven.plugins 22 | maven-compiler-plugin 23 | ${maven-compiler-plugin.version} 24 | 25 | ${jdk.version} 26 | ${jdk.version} 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /clavefirma-test-services/src/main/webapp/test_pages/TestCert2_files/ui-utils-ieshiv.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * angular-ui-utils - Swiss-Army-Knife of AngularJS tools (with no external dependencies!) 3 | * @version v0.1.1 - 2014-02-05 4 | * @link http://angular-ui.github.com 5 | * @license MIT License, http://www.opensource.org/licenses/MIT 6 | */ 7 | !function(a,b){"use strict";var c=["ngInclude","ngPluralize","ngView","ngSwitch","uiCurrency","uiCodemirror","uiDate","uiEvent","uiKeypress","uiKeyup","uiKeydown","uiMask","uiMapInfoWindow","uiMapMarker","uiMapPolyline","uiMapPolygon","uiMapRectangle","uiMapCircle","uiMapGroundOverlay","uiModal","uiReset","uiScrollfix","uiSelect2","uiShow","uiHide","uiToggle","uiSortable","uiTinymce"];a.myCustomTags=a.myCustomTags||[],c.push.apply(c,a.myCustomTags);for(var d=function(a){var b=[],c=a.replace(/([A-Z])/g,function(a){return" "+a.toLowerCase()}),d=c.split(" ");if(1===d.length){var e=d[0];b.push(e),b.push("x-"+e),b.push("data-"+e)}else{var f=d[0],g=d.slice(1).join("-");b.push(f+":"+g),b.push(f+"-"+g),b.push("x-"+f+"-"+g),b.push("data-"+f+"-"+g)}return b},e=0,f=c.length;f>e;e++)for(var g=d(c[e]),h=0,i=g.length;i>h;h++){var j=g[h];b.createElement(j)}}(window,document); -------------------------------------------------------------------------------- /fire-client-java/src/main/java/es/gob/fire/client/PasswordDecipher.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.client; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * Define los métodos para el descifrado de contraseñas. Esto permite que 7 | * se puedan utilizar contraseñas cifradas en los ficheros de configuracion. Estas 8 | * contraseñas se pasarán a un objeto de este tipo para descifrarlas antes 9 | * de utilizarlas. 10 | */ 11 | public interface PasswordDecipher { 12 | 13 | /** 14 | * Descifra los datos para usarlos como contraseña de los almacenes de claves que 15 | * se utilicen. Los datos que se proporcionan a este método son el resultado de 16 | * decodificar el base 64 indicado como contraseña en los ficheros de 17 | * configuración del componente distribuido. 18 | * @param cipheredData Datos cifrados. 19 | * @return Cadena de caracteres que se utilizará como contraseña. 20 | * @throws IOException Cuando no se puede descifrar la contraseña o se indicaron 21 | * datos no válidos. 22 | */ 23 | char[] decipher(byte[] cipheredData) throws IOException; 24 | } 25 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/internal/ClienteAfirmaPostSignBatchRecover.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.internal; 2 | 3 | /** 4 | * Clase para la recuperación de la firma generada en un proceso de firma de 5 | * lote con el Cliente @firma. 6 | */ 7 | public class ClienteAfirmaPostSignBatchRecover implements PostSignBatchRecover { 8 | 9 | private final String docId; 10 | private final BatchResult batchResult; 11 | 12 | public ClienteAfirmaPostSignBatchRecover(final String docId, final BatchResult batchResult) { 13 | this.docId = docId; 14 | this.batchResult = batchResult; 15 | } 16 | 17 | @Override 18 | public byte[] recoverSign() throws BatchRecoverException { 19 | 20 | final String docFilename = this.batchResult.getDocumentReference(this.docId); 21 | 22 | byte[] signature; 23 | try { 24 | signature = TempDocumentsManager.retrieveDocument(docFilename); 25 | } 26 | catch (final Exception e) { 27 | throw new BatchRecoverException("No se encuentra la firma", //$NON-NLS-1$ 28 | e, BatchResult.DATA_NOT_FOUND); 29 | } 30 | return signature; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /fire-client-php/fire_client_examples/example_fire_recover_batch_result_state.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Recuperar estado de procesamiento del lote de firmas 4 | 5 | 6 | recoverBatchResultState( 20 | $subjectId, // DNI de la persona 21 | $transactionId // Identificador de transaccion recuperado en la operacion sign() 22 | ); 23 | } 24 | catch(Exception $e) { 25 | echo "Error ", $e->getCode(), ": ", $e->getMessage(), "\n"; 26 | return; 27 | } 28 | 29 | // Mostramos los datos obtenidos 30 | echo "
Firma:
", $signatureB64; 31 | ?> 32 | 33 | -------------------------------------------------------------------------------- /fire-admin-persistence/src/main/java/es/gob/fire/persistence/repository/AuditSignatureRepository.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.persistence.repository; 2 | 3 | 4 | import java.util.List; 5 | 6 | import org.springframework.data.jpa.repository.JpaRepository; 7 | import org.springframework.stereotype.Repository; 8 | 9 | import es.gob.fire.persistence.entity.AuditSignature; 10 | 11 | 12 | @Repository 13 | public interface AuditSignatureRepository extends JpaRepository{ 14 | 15 | /** 16 | * Method that obtains from the persistence a petition identified by its primary key. 17 | * @param idAuditSignature Integer that represents the primary key of the application in the persistence. 18 | * @return Object that represents a petition from the persistence. 19 | */ 20 | AuditSignature findByIdAuditSignature(Integer idAuditSignature); 21 | 22 | /** 23 | * Method that obtains from the persistence a petition identified by its primary key. 24 | * @param idAuditSignature Integer that represents the primary key of the application in the persistence. 25 | * @return Object that represents a petition from the persistence. 26 | */ 27 | List findByIdTransaction(String idTransaction); 28 | } 29 | -------------------------------------------------------------------------------- /log-consumer-service/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | log-consumer-service 6 | 7 | 8 | Servicio de inicializacion ejecutado al levantarse el servidor 9 | SystemInitializer 10 | es.gob.log.consumer.service.SystemInitializer 11 | 1 12 | 13 | 14 | 15 | Servicio de consulta de logs 16 | LogService 17 | LogService 18 | es.gob.log.consumer.service.LogService 19 | 20 | 21 | 22 | 23 | LogService 24 | /logservice 25 | 26 | 27 | -------------------------------------------------------------------------------- /fire-admin-commons-util/src/main/java/es/gob/fire/commons/utils/FileUtilsDirectory.java: -------------------------------------------------------------------------------- 1 | /** 2 | * File:

es.gob.fire.commons.utils.FileUtilsDirectory.java.

3 | * Description:

Utility class to manage files.

4 | * Project:

Application for signing documents of @firma suite systems.

5 | * Date:

23/05/2020.

6 | * @version 1.0, 23/05/2020. 7 | */ 8 | package es.gob.fire.commons.utils; 9 | 10 | import java.io.File; 11 | 12 | /** 13 | *

Utility class to manage files.

14 | * Project:

Application for signing documents of @firma suite systems.

15 | * @version 23/05/2020. 16 | */ 17 | public final class FileUtilsDirectory { 18 | 19 | /** 20 | * Constructor method for the class FileUtilsDirectory.java. 21 | */ 22 | private FileUtilsDirectory() { 23 | 24 | } 25 | 26 | /** 27 | * Auxiliar method to create an absolute path to a file. 28 | * @param pathDir Directory absolute path that contains the file. 29 | * @param filename Name of the file. 30 | * @return Absolute path of the file. 31 | */ 32 | public static String createAbsolutePath(String pathDir, String filename) { 33 | return pathDir + File.separator + filename; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/internal/FireInternalException.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.internal; 2 | 3 | /** 4 | * Excepción que identifica un error genérico de FIRe. 5 | */ 6 | public class FireInternalException extends Exception { 7 | 8 | /** Serial Id. */ 9 | private static final long serialVersionUID = -2698722128712649014L; 10 | 11 | /** 12 | * Construye la excepción de error interno. 13 | */ 14 | public FireInternalException() { 15 | super(); 16 | } 17 | 18 | /** 19 | * Construye la excepción de error interno. 20 | * @param msg Descripción del error. 21 | */ 22 | public FireInternalException(final String msg) { 23 | super(msg); 24 | } 25 | 26 | /** 27 | * Construye la excepción de error interno. 28 | * @param cause Motivo del error. 29 | */ 30 | public FireInternalException(final Throwable cause) { 31 | super(cause); 32 | } 33 | 34 | /** 35 | * Construye la excepción de error interno. 36 | * @param msg Descripción del error. 37 | * @param cause Motivo del error. 38 | */ 39 | public FireInternalException(final String msg, final Throwable cause) { 40 | super(msg, cause); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /fire-client-php/fire_api_examples/example_fire_sign_batch.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Firmar lote de firmas 4 | 5 | 6 | getCode(), ": ", $e->getMessage(), "\n"; 26 | return; 27 | } 28 | 29 | echo "Id transaccion:
".$signatureB64->transactionId."


"; 30 | echo "URL de redireccion:
redirectUrl."\">".$signatureB64->redirectUrl."


"; 31 | ?> 32 | 33 | 34 | -------------------------------------------------------------------------------- /fire-upgrade/src/main/java/es/gob/fire/upgrade/ConnectionException.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.upgrade; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * Excepcion que identifica un error en la conexión con el servicio de actualización 7 | * y validación de firmas. 8 | */ 9 | public class ConnectionException extends IOException { 10 | 11 | /** Serial Id. */ 12 | private static final long serialVersionUID = 3160883336210013150L; 13 | 14 | /** 15 | * Crea la excepción de conexión con una descripción asociada. 16 | * @param desc Descripción del error. 17 | */ 18 | public ConnectionException(final String desc) { 19 | super(desc); 20 | } 21 | 22 | /** 23 | * Crea la excepción de conexión con el origen del error. 24 | * @param cause Origen del error. 25 | */ 26 | public ConnectionException(final Throwable cause) { 27 | super(cause); 28 | } 29 | 30 | /** 31 | * Crea la excepción de conexión con una descripción asociada. 32 | * @param desc Descripción del error. 33 | * @param cause Origen del error. 34 | */ 35 | public ConnectionException(final String desc, final Throwable cause) { 36 | super(desc, cause); 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /fire-signature-connector/src/main/java/es/gob/fire/server/connector/FIReConnectorException.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | package es.gob.fire.server.connector; 11 | 12 | /** 13 | * Excepción genérica del servicio. 14 | * 15 | * @author Tomás García-Merás. 16 | */ 17 | public abstract class FIReConnectorException extends Exception { 18 | private static final long serialVersionUID = -1075653592617420439L; 19 | 20 | protected FIReConnectorException(final String msg, final Throwable e) { 21 | super(msg, e); 22 | } 23 | 24 | protected FIReConnectorException(final String msg) { 25 | super(msg); 26 | } 27 | 28 | protected FIReConnectorException(final Throwable e) { 29 | super(e); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /fire-signature/src/main/resources/provider_clavefirma.properties: -------------------------------------------------------------------------------- 1 | 2 | # ------------------------------------------------------------------ 3 | # ------------ CONFIGURACION DEL PROVEEDOR CLAVE FIRMA ------------- 4 | # ----- Usar solo cuando se tenga acceso al servicio de la GISS ---- 5 | # ------------------------------------------------------------------ 6 | 7 | # Nombre de proveedor con el que se autenticara ante el servicio de 8 | # Cl@ve Firma. Comunmente, es el codigo numerico SIA que se incluye 9 | # en el campo "Procedimientos asociados" del formulario de alta de 10 | # aplicaciones. 11 | providerName=S2833002E_E04975701 12 | 13 | # Configura si el proveedor debe permitir emitir un certificado a los 14 | # usuarios dados de alta que no ya tengan uno valido. 15 | # Por defecto, true 16 | allowRequestNewCert=true 17 | 18 | # URL del servicio SIA de acceso 19 | URL_GATEWAY=https://clave-dninbrtws.dev.seg-social.gob.es:452/rss-gateway/HESS/OperationGateWayRSS 20 | 21 | # Ruta absoluta hacia el almacen PKCS12 para la autenticacion 22 | AUTH_STORE=C:/Users/carlos.gamuci/Documents/FIRe/GISS/Certificado_conexion/cert_conexion_2024/EMP_PUBLICO_DES_Carlos_Gamuci.p12 23 | 24 | # Contrasena del almacen y clave de acceso 25 | AUTH_STORE_PASS=GISSusr010 26 | 27 | # ============= 28 | -------------------------------------------------------------------------------- /fire-upgrade/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 4.0.0 6 | es.gob.fire 7 | fire-upgrade 8 | fire-upgrade 9 | 10 | 11 | es.gob.fire 12 | fire-artifacts 13 | 2.4 14 | 15 | 16 | 17 | 18 | 19 | org.apache.maven.plugins 20 | maven-compiler-plugin 21 | ${maven-compiler-plugin.version} 22 | 23 | ${jdk.version} 24 | ${jdk.version} 25 | 26 | 27 | 28 | 29 | 30 | src/main/resources 31 | 32 | *.properties 33 | *.jks 34 | *.p12 35 | 36 | false 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /fire-admin-core/src/test/java/es/gob/fire/report/common/ReportTest.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.report.common; 2 | 3 | import static org.junit.Assert.*; 4 | 5 | import java.util.HashMap; 6 | import java.util.Map; 7 | 8 | import org.junit.Before; 9 | import org.junit.Test; 10 | 11 | import es.gob.fire.report.petition.AuditReport; 12 | 13 | public class ReportTest { 14 | 15 | private Report report; 16 | private Map expectedParameters; 17 | 18 | @Before 19 | public void setUp() throws Exception { 20 | expectedParameters = new HashMap<>(); 21 | expectedParameters.put("parametro", "valor"); 22 | report = new AuditReport(expectedParameters); 23 | } 24 | 25 | @Test 26 | public void testGetParameters() { 27 | Map parameters = report.getParameters(); 28 | assertNotNull(parameters); 29 | assertEquals(expectedParameters, parameters); 30 | } 31 | 32 | @Test 33 | public void testSetParameters() { 34 | Map newParameters = new HashMap<>(); 35 | newParameters.put("parametro", "valor"); 36 | report.setParameters(newParameters); 37 | 38 | Map parameters = report.getParameters(); 39 | assertNotNull(parameters); 40 | assertEquals(newParameters, parameters); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /fire-admin-persistence/src/main/java/es/gob/fire/persistence/validatordni/validatorDNI.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.persistence.validatordni; 2 | 3 | import java.util.regex.Matcher; 4 | import java.util.regex.Pattern; 5 | 6 | import javax.validation.ConstraintValidator; 7 | import javax.validation.ConstraintValidatorContext; 8 | 9 | public class validatorDNI implements ConstraintValidator { 10 | 11 | private Pattern mask = Pattern.compile("[0-9]{8,8}[A-Z]"); 12 | 13 | @Override 14 | public void initialize(Nif constraintAnnotation) { 15 | } 16 | 17 | @Override 18 | public boolean isValid(String value, ConstraintValidatorContext context) { 19 | 20 | final Matcher matcher = mask.matcher(value); 21 | 22 | if(!matcher.matches()){ 23 | return false; 24 | } 25 | 26 | final String dni = value.substring(0,8); 27 | final String control = value.substring(8,9); 28 | final String letters = "TRWAGMYFPDXBNJZSQVHLCKE"; 29 | final int position = Integer.parseInt(dni)%23; 30 | 31 | final String controlCalculated = letters.substring(position,position+1); 32 | 33 | if(!control.equalsIgnoreCase(controlCalculated)){ 34 | return false; 35 | } 36 | return true; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/css/index.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background: url(../img/background.jpg) no-repeat center center fixed; 3 | background-size: cover; 4 | } 5 | 6 | .main-section{ 7 | margin:0 auto; 8 | margin-top:25%; 9 | padding: 0; 10 | } 11 | 12 | .modal-content{ 13 | background-color: #3b4652; 14 | opacity: .85; 15 | padding: 0 20px; 16 | box-shadow: 0px 0px 3px #848484; 17 | } 18 | .user-img{ 19 | margin-top: -50px; 20 | margin-bottom: 35px; 21 | } 22 | 23 | .user-img img{ 24 | width: 100xp; 25 | height: 100px; 26 | box-shadow: 0px 0px 3px #848484; 27 | border-radius: 50%; 28 | } 29 | 30 | .form-group input{ 31 | height: 42px; 32 | font-size: 18px; 33 | border:0; 34 | padding-left: 54px; 35 | border-radius: 5px; 36 | } 37 | 38 | .form-group::before{ 39 | font-family: "Font Awesome\ 5 Free"; 40 | position: absolute; 41 | left: 28px; 42 | font-size: 22px; 43 | padding-top:4px; 44 | } 45 | 46 | .form-group#user-group::before{ 47 | content: "\f007"; 48 | } 49 | 50 | .form-group#contrasena-group::before{ 51 | content: "\f023"; 52 | } 53 | 54 | button{ 55 | width: 60%; 56 | margin: 5px 0 25px; 57 | } 58 | 59 | .forgot{ 60 | padding: 5px 0; 61 | } 62 | 63 | .forgot a{ 64 | color: white; 65 | } -------------------------------------------------------------------------------- /fire-client-php/fire_client_examples/example_fire_sign_batch.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Firmar lote de firmas 4 | 5 | 6 | signBatch( 20 | $subjectId, // DNI de la persona 21 | $transactionId, // Identificador de la transaccion (recuperado de la operacion createBatch) 22 | false // Detener en caso de error 23 | ); 24 | } 25 | catch(Exception $e) { 26 | echo "Error ", $e->getCode(), ": ", $e->getMessage(), "\n"; 27 | return; 28 | } 29 | 30 | echo "Id transaccion:
".$signatureB64->transactionId."


"; 31 | echo "URL de redireccion:
redirectUrl."\">".$signatureB64->redirectUrl."


"; 32 | ?> 33 | 34 | 35 | -------------------------------------------------------------------------------- /fire-signature-connector/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 4.0.0 5 | fire-signature-connector 6 | jar 7 | 8 | fire-signature-connector 9 | Modulo base para la implementacion de conectores de firma. 10 | 11 | 12 | es.gob.fire 13 | fire-artifacts 14 | 2.4 15 | 16 | 17 | 18 | 19 | 20 | javax.json 21 | javax.json-api 22 | 23 | 24 | 25 | org.glassfish 26 | javax.json 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | org.apache.maven.plugins 35 | maven-compiler-plugin 36 | 37 | ${jdk.version} 38 | ${jdk.version} 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /fire-test-jsp/src/main/webapp/ErrorPage.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Prueba FIRe 6 | 7 | 8 | 9 | 10 | <% 11 | 12 | // Si no se indica nada, o el error se senala expresamente como fatal, 13 | // invalidamos la sesion 14 | if (session != null) { 15 | String fatalError = request.getParameter("fatal"); //$NON-NLS-1$ 16 | if (fatalError == null || Boolean.parseBoolean(fatalError)) { 17 | session.invalidate(); 18 | } 19 | } 20 | 21 | String message = request.getParameter("msg"); //$NON-NLS-1$ 22 | if (message != null) { 23 | message = message.toUpperCase(); 24 | } 25 | %> 26 | 29 |
30 |
31 |

32 | <%= message %> 33 |

34 |
35 |
36 |
37 |

38 | 39 |
40 |
41 |
42 | 43 | -------------------------------------------------------------------------------- /log-consumer-register/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | es.gob.logconsumer 4 | log-consumer-register 5 | ${log-consumer.version} 6 | jar 7 | 8 | log-consumer-register 9 | Modulo para el registro de servicios de consulta de logs 10 | 11 | 12 | es.gob.fire 13 | fire-artifacts 14 | 2.4 15 | 16 | 17 | 18 | 19 | 20 | 21 | junit 22 | junit 23 | test 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | maven-compiler-plugin 32 | ${maven-compiler-plugin.version} 33 | 34 | ${jdk.version} 35 | ${jdk.version} 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /fire-admin-jsp/src/main/webapp/resources/js/jquery.ui.datepicker-es.js: -------------------------------------------------------------------------------- 1 | /* Inicialización en español para la extensión 'UI date picker' para jQuery. */ 2 | /* Traducido por Vester (xvester@gmail.com). */ 3 | ( function( factory ) { 4 | if ( typeof define === "function" && define.amd ) { 5 | 6 | // AMD. Register as an anonymous module. 7 | define( [ "../widgets/datepicker" ], factory ); 8 | } else { 9 | 10 | // Browser globals 11 | factory( jQuery.datepicker ); 12 | } 13 | }( function( datepicker ) { 14 | 15 | datepicker.regional.es = { 16 | closeText: "Cerrar", 17 | prevText: "<Ant", 18 | nextText: "Sig>", 19 | currentText: "Hoy", 20 | monthNames: [ "enero","febrero","marzo","abril","mayo","junio", 21 | "julio","agosto","septiembre","octubre","noviembre","diciembre" ], 22 | monthNamesShort: [ "ene","feb","mar","abr","may","jun", 23 | "jul","ago","sep","oct","nov","dic" ], 24 | dayNames: [ "domingo","lunes","martes","miércoles","jueves","viernes","sábado" ], 25 | dayNamesShort: [ "dom","lun","mar","mié","jue","vie","sáb" ], 26 | dayNamesMin: [ "D","L","M","X","J","V","S" ], 27 | weekHeader: "Sm", 28 | dateFormat: "dd/mm/yy", 29 | firstDay: 1, 30 | isRTL: false, 31 | showMonthAfterYear: false, 32 | yearSuffix: "" }; 33 | datepicker.setDefaults( datepicker.regional.es ); 34 | 35 | return datepicker.regional.es; 36 | 37 | } ) ); -------------------------------------------------------------------------------- /fire-client-dotnet/FIRe/ConfigureException.cs: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | 11 | using System; 12 | 13 | namespace FIRe 14 | { 15 | /// 16 | /// Se utiliza para identificar un error en la configuración de la biblioteca. 17 | /// 18 | public class ConfigureException : HttpOperationException 19 | { 20 | /// 21 | /// Excepción sin parámetros que llama al constructor de la clase padre 22 | /// 23 | public ConfigureException():base() { 24 | } 25 | /// 26 | /// Excepción con un parámetro que llama al constructor de la clase padre 27 | /// 28 | /// Mensaje de la excepción 29 | public ConfigureException(String msg) : base(msg) { 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /log-consumer-service/src/main/java/es/gob/log/consumer/service/DataFragment.java: -------------------------------------------------------------------------------- 1 | package es.gob.log.consumer.service; 2 | 3 | /** 4 | * Datos que pueden estar fragmentados. 5 | */ 6 | public class DataFragment { 7 | 8 | private final byte[] data; 9 | private final boolean complete; 10 | 11 | /** 12 | * Crea un nuevo conjunto de datos. 13 | * @param data Datos del conjunto. 14 | * @param complete {@code true} si los datos estan completos, {@code false} si sólo 15 | * son un fragmento de los mismos. 16 | */ 17 | public DataFragment(final byte[] data, final boolean complete) { 18 | this.data = data; 19 | this.complete = complete; 20 | } 21 | 22 | /** 23 | * Crea un nuevo conjunto de datos completo. 24 | * @param data Datos del conjunto. 25 | */ 26 | public DataFragment(final byte[] data) { 27 | this.data = data; 28 | this.complete = true; 29 | } 30 | 31 | /** 32 | * Obtiene los datos. 33 | * @return Datos del objeto. 34 | */ 35 | public byte[] getData() { 36 | return this.data; 37 | } 38 | 39 | /** 40 | * Indica si los datos contenidos están completos o si son un fragmento de otro dato. 41 | * @return {@code true} si está completo, {@code false} en caso contrario. 42 | */ 43 | public boolean isComplete() { 44 | return this.complete; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /log-consumer-service/src/main/java/es/gob/log/consumer/service/RequestLoginManager.java: -------------------------------------------------------------------------------- 1 | package es.gob.log.consumer.service; 2 | 3 | import java.nio.charset.StandardCharsets; 4 | import java.security.SecureRandom; 5 | import java.util.Random; 6 | import java.util.UUID; 7 | 8 | import javax.json.Json; 9 | import javax.json.JsonObjectBuilder; 10 | import javax.servlet.http.HttpSession; 11 | 12 | public class RequestLoginManager { 13 | 14 | public static byte[] process(final HttpSession session) { 15 | 16 | // Generamos un token de inicio de sesion y lo almacenamos en la misma 17 | final byte[] uuid = UUID.randomUUID().toString().getBytes(StandardCharsets.UTF_8); 18 | final Random r = new SecureRandom(); 19 | final byte[] iv = new byte[16]; 20 | r.nextBytes(iv); 21 | 22 | session.setAttribute(SessionParams.TOKEN, uuid); 23 | session.setAttribute(SessionParams.IV, iv); 24 | 25 | return buildResult(uuid, session.getId(), iv); 26 | } 27 | 28 | private static byte[] buildResult(final byte[] uuid, final String sessionId, final byte[] iv) { 29 | 30 | final JsonObjectBuilder builder = Json.createObjectBuilder(); 31 | builder.add("tkn", Base64.encode(uuid)); //$NON-NLS-1$ 32 | builder.add("ss", sessionId); //$NON-NLS-1$ 33 | builder.add("iv", Base64.encode(iv)); //$NON-NLS-1$ 34 | 35 | return builder.build().toString().getBytes(); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /fire-signature/src/main/resources/provider_clavefirmatest.properties: -------------------------------------------------------------------------------- 1 | # ------------------------------------------------------------------ 2 | # ------------- CONFIGURACION DEL PROVEEDOR DE PRUEBAS ------------- 3 | # ----- Solo se usa cuando se habilita el backend de pruebas ------ 4 | # ------------------------------------------------------------------ 5 | 6 | # URL base del servicio de prueba. Si no se indica, se utiliza 7 | # la URL "https://127.0.0.1:8443/clavefirma-test-services" 8 | endpoint=https://clavefirmagiss:8443/clavefirma-test-services 9 | #endpoint=https://192.168.43.130:8443/clavefirma-test-services 10 | 11 | # Configura si el proveedor debe permitir emitir generar un nuevo certificado 12 | # a sus usuarios cuando no tengan uno valido. Esta opcion sirve para emular el 13 | # comportamiento de la propiedad homonima del conector de Cl@ve Firma. 14 | # Por defecto, true 15 | allowRequestNewCert=true 16 | 17 | # Certificado para autenticacion contra el servicio de pruebas 18 | ssl.keystore=C:/Users/carlos.gamuci/Documents/FIRe/Ficheros_Despliegue/client_ssl_new.jks 19 | ssl.keystorePass=12341234 20 | ssl.keystoreType=JKS 21 | 22 | # Almacen de confianza SSL para acceso al servicio de pruebas. Si se indica 23 | # el valor "all" como truststore, no se validara el certificado SSL del servidor. 24 | ssl.truststore=all 25 | #ssl.truststorePass= 26 | #ssl.truststoreType= 27 | -------------------------------------------------------------------------------- /fire-signature/src/main/resources/provider_clavefirmatest2.properties: -------------------------------------------------------------------------------- 1 | # ------------------------------------------------------------------ 2 | # ------------- CONFIGURACION DEL PROVEEDOR DE PRUEBAS ------------- 3 | # ----- Solo se usa cuando se habilita el backend de pruebas ------ 4 | # ------------------------------------------------------------------ 5 | 6 | # URL base del servicio de prueba. Si no se indica, se utiliza 7 | # la URL "https://127.0.0.1:8443/clavefirma-test-services" 8 | endpoint=https://clavefirmagiss:8443/clavefirma-test-services 9 | #endpoint=https://192.168.43.130:8443/clavefirma-test-services 10 | 11 | # Configura si el proveedor debe permitir emitir generar un nuevo certificado 12 | # a sus usuarios cuando no tengan uno valido. Esta opcion sirve para emular el 13 | # comportamiento de la propiedad homonima del conector de Cl@ve Firma. 14 | # Por defecto, true 15 | allowRequestNewCert=true 16 | 17 | # Certificado para autenticacion contra el servicio de pruebas 18 | ssl.keystore=C:/Users/carlos.gamuci/Documents/FIRe/Ficheros_Despliegue/client_ssl2.jks 19 | ssl.keystorePass=12341234 20 | ssl.keystoreType=JKS 21 | 22 | # Almacen de confianza SSL para acceso al servicio de pruebas. Si se indica 23 | # el valor "all" como truststore, no se validara el certificado SSL del servidor. 24 | ssl.truststore=all 25 | #ssl.truststorePass= 26 | #ssl.truststoreType= 27 | -------------------------------------------------------------------------------- /fire-signature/src/main/java/es/gob/fire/server/services/internal/InvalidSignatureException.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.server.services.internal; 2 | 3 | /** 4 | * Excepción utilizada cuando se detecta que una firma es inválida 5 | * durante un proceso de validación o actualización de firma. 6 | */ 7 | public class InvalidSignatureException extends Exception { 8 | 9 | /** Serial Id. */ 10 | private static final long serialVersionUID = -7171354776470760070L; 11 | 12 | /** 13 | * Construye la excepción de firma inválida. 14 | */ 15 | public InvalidSignatureException() { 16 | super(); 17 | } 18 | 19 | /** 20 | * Construye la excepción de firma inválida. 21 | * @param msg Descripción del error. 22 | */ 23 | public InvalidSignatureException(final String msg) { 24 | super(msg); 25 | } 26 | 27 | /** 28 | * Construye la excepción de firma inválida. 29 | * @param cause Motivo del error. 30 | */ 31 | public InvalidSignatureException(final Throwable cause) { 32 | super(cause); 33 | } 34 | 35 | /** 36 | * Construye la excepción de firma inválida. 37 | * @param msg Descripción del error. 38 | * @param cause Motivo del error. 39 | */ 40 | public InvalidSignatureException(final String msg, final Throwable cause) { 41 | super(msg, cause); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /log-consumer-register/src/main/java/es/gob/log/register/RegistrationException.java: -------------------------------------------------------------------------------- 1 | package es.gob.log.register; 2 | 3 | /** 4 | * Excepción que señala un problema al registrarse un nodo en el servicio de registro de logs. 5 | * @version 1.0, 19/06/2019. 6 | */ 7 | public class RegistrationException extends Exception { 8 | 9 | /** 10 | * Serial Id. 11 | */ 12 | private static final long serialVersionUID = 1L; 13 | 14 | /** 15 | * Construye la excepción. 16 | */ 17 | public RegistrationException() { 18 | super(); 19 | } 20 | 21 | /** 22 | * Construye la excepción con el mensaje asociado. 23 | * @param msg Mensaje que describe el error. 24 | */ 25 | public RegistrationException(final String msg) { 26 | super(msg); 27 | } 28 | 29 | /** 30 | * Construye la excepción con la causa que lo originó. 31 | * @param cause Motivo del error. 32 | */ 33 | public RegistrationException(final Throwable cause) { 34 | super(cause); 35 | } 36 | 37 | /** 38 | * Construye la excepción con el mensaje asociado y la causa que lo 39 | * originó. 40 | * @param msg Mensaje que describe el error. 41 | * @param cause Motivo del error. 42 | */ 43 | public RegistrationException(final String msg, final Throwable cause) { 44 | super(msg, cause); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/xml/validCertificate.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | true 10 | 11 | 12 | false 13 | false 14 | urn:oasis:names:tc:dss:1.0:reportdetail:allDetails 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /fire-admin-core/src/main/java/es/gob/fire/report/common/Report.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.report.common; 2 | 3 | import java.util.Map; 4 | 5 | /** 6 | *

Class that represents a report.

7 | * Project:

Horizontal platform of validation services of multiPKI 8 | * certificates and electronic signature.

9 | * @version 1.0 06/07/2023. 10 | */ 11 | public abstract class Report implements IReport{ 12 | 13 | /** 14 | * Attribute that represents the set of parameters of a report. 15 | */ 16 | private Map parameters = null; 17 | 18 | /** 19 | * Constructor method for the class Informe.java. 20 | * @param parametersParam Parameter that represents the set of parameters of a report. 21 | */ 22 | public Report(Map parametersParam) { 23 | super(); 24 | this.parameters = parametersParam; 25 | } 26 | 27 | /** 28 | * Gets the value of the attribute {@link #parameters}. 29 | * @return the value of the attribute {@link #parameters}. 30 | */ 31 | public final Map getParameters() { 32 | return parameters; 33 | } 34 | 35 | /** 36 | * Sets the value of the attribute {@link #parameters}. 37 | * @param parametersParam The value for the attribute {@link #parameters}. 38 | */ 39 | public final void setParameters(Map parametersParam) { 40 | this.parameters = parametersParam; 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /log-consumer-register/src/main/java/es/gob/log/register/LogServiceRegister.java: -------------------------------------------------------------------------------- 1 | package es.gob.log.register; 2 | 3 | import java.io.IOException; 4 | import java.util.Properties; 5 | 6 | /** 7 | * Conector para el registro de servicios de log en un sistema. 8 | * @version 1.0, 18/06/2019. 9 | */ 10 | public interface LogServiceRegister { 11 | 12 | /** 13 | * Configura el punto de entrada del servicio de registro. 14 | * 15 | * @param url URL del servicio de registro. 16 | */ 17 | void setServiceUrl(String url); 18 | 19 | /** 20 | * Configura la información para la autenticación en el servicio. 21 | * 22 | * @param authenticationInfo Información para la autenticación en el servicio. 23 | */ 24 | void setAuthenticationInfo(Object authenticationInfo); 25 | 26 | /** 27 | * Proporciona al conector todas las propiedades heredadas del servicio de registro. 28 | * 29 | * @param config Propiedades de configuración heredadas del servicio de registro. 30 | */ 31 | void setConfig(Properties config); 32 | 33 | /** 34 | * Registra el nodo en un servicio. 35 | * 36 | * @throws IOException Cuando ocurre algún error en la conexión con el servicio. 37 | * @throws RegistrationException Cuando el servidor rechaza el registro del servicio. 38 | */ 39 | void registry() 40 | throws IOException, RegistrationException; 41 | } 42 | -------------------------------------------------------------------------------- /fire-admin-web/src/main/resources/static/js/jquery/jquery.ui.datepicker-es.js: -------------------------------------------------------------------------------- 1 | /* Inicialización en español para la extensión 'UI date picker' para jQuery. */ 2 | /* Traducido por Vester (xvester@gmail.com). */ 3 | ( function( factory ) { 4 | if ( typeof define === "function" && define.amd ) { 5 | 6 | // AMD. Register as an anonymous module. 7 | define( [ "../widgets/datepicker" ], factory ); 8 | } else { 9 | 10 | // Browser globals 11 | factory( jQuery.datepicker ); 12 | } 13 | }( function( datepicker ) { 14 | 15 | datepicker.regional.es = { 16 | closeText: "Cerrar", 17 | prevText: "<Ant", 18 | nextText: "Sig>", 19 | currentText: "Hoy", 20 | monthNames: [ "enero","febrero","marzo","abril","mayo","junio", 21 | "julio","agosto","septiembre","octubre","noviembre","diciembre" ], 22 | monthNamesShort: [ "ene","feb","mar","abr","may","jun", 23 | "jul","ago","sep","oct","nov","dic" ], 24 | dayNames: [ "domingo","lunes","martes","miércoles","jueves","viernes","sábado" ], 25 | dayNamesShort: [ "dom","lun","mar","mié","jue","vie","sáb" ], 26 | dayNamesMin: [ "D","L","M","X","J","V","S" ], 27 | weekHeader: "Sm", 28 | dateFormat: "dd/mm/yy", 29 | firstDay: 1, 30 | isRTL: false, 31 | showMonthAfterYear: false, 32 | yearSuffix: "" }; 33 | datepicker.setDefaults( datepicker.regional.es ); 34 | 35 | return datepicker.regional.es; 36 | 37 | } ) ); -------------------------------------------------------------------------------- /fire-admin-persistence/src/main/java/es/gob/fire/persistence/repository/ApplicationResponsibleRepository.java: -------------------------------------------------------------------------------- 1 | package es.gob.fire.persistence.repository; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | import org.springframework.stereotype.Repository; 7 | 8 | import es.gob.fire.persistence.entity.ApplicationResponsible; 9 | import es.gob.fire.persistence.entity.ApplicationResponsiblePK; 10 | 11 | @Repository 12 | public interface ApplicationResponsibleRepository extends JpaRepository{ 13 | 14 | /** 15 | * Method that gets from persistence all ApplicationResponsible whose User identifier matches with userId. 16 | * @param userId USer identifier 17 | * @return List 18 | */ 19 | List findByResponsibleUserId(Long userId); 20 | 21 | /** 22 | * Method that gets from persistence all ApplicationResponsible whose User identifier matches with appId. 23 | * @param appId Application identifier 24 | * @return List 25 | */ 26 | List findByApplicationAppId(String appId); 27 | 28 | /** 29 | * Method that removes from persistence all ApplicationResponsible whose User identifier matches with appId. 30 | * @param appId Application identifier 31 | */ 32 | void deleteByApplicationAppId(String appId); 33 | } 34 | -------------------------------------------------------------------------------- /fire-client-dotnet/FIRe/GenerateCert/HttpCertificateAvailableException.cs: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | 11 | using System; 12 | 13 | namespace FIRe 14 | { 15 | /// El usuario ya tiene certificados de firma vigentes y no puede crear otros nuevos. 16 | public class HttpCertificateAvailableException : HttpOperationException 17 | { 18 | 19 | /// 20 | /// Se crea la excepción. 21 | /// 22 | public HttpCertificateAvailableException() : base() 23 | { 24 | } 25 | 26 | /// 27 | /// Se crea la excepción. 28 | /// 29 | /// Descripcion del error. 30 | /// Causa del error 31 | public HttpCertificateAvailableException(string msg, Exception e) : base(msg, e) 32 | { 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /fire-client-dotnet/Examples/example_fire_recover_batch_result_state.aspx.cs: -------------------------------------------------------------------------------- 1 | using FIRe; 2 | using System; 3 | 4 | public partial class example_fire_recover_batch_result_state : System.Web.UI.Page 5 | { 6 | protected void Page_Load(object sender, EventArgs e) 7 | { 8 | // Funcion del API de Clave Firma para cargar los datos a firmar 9 | float batchResult; 10 | string appId = "196647C3A40B"; // Identificador de la aplicacion (dada de alta previamente en el sistema) 11 | string transactionId = "e839c903-0dae-4ff9-9b52-d90f70069ce9"; 12 | try 13 | { 14 | batchResult = new FireClient(appId).recoverBatchResultState( 15 | transactionId, // Identificador de transaccion recuperado en la operacion createBatch() 16 | "00001" // Identificador del usuario 17 | ); 18 | /* 19 | batchResult = FireApi.recoverBatchResultState( 20 | appId, // Identificador de la aplicacion (dada de alta previamente en el sistema) 21 | transactionId // Identificador de transaccion recuperado en la operacion createBatch() 22 | ); 23 | */ 24 | } 25 | catch (Exception ex) 26 | { 27 | ProgressBatch.Text = ex.Message; 28 | return; 29 | } 30 | 31 | // Mostramos los datos obtenidos 32 | ProgressBatch.Text = "" + batchResult; 33 | 34 | } 35 | } -------------------------------------------------------------------------------- /fire-signature-common-libraries/src/main/java/es/gob/fire/signature/DBConnectionException.java: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2017 [Gobierno de Espana] 2 | * This file is part of FIRe. 3 | * FIRe is free software; you can redistribute it and/or modify it under the terms of: 4 | * - the GNU General Public License as published by the Free Software Foundation; 5 | * either version 2 of the License, or (at your option) any later version. 6 | * - or The European Software License; either version 1.1 or (at your option) any later version. 7 | * Date: 08/09/2017 8 | * You may contact the copyright holder at: soporte.afirma@correo.gob.es 9 | */ 10 | package es.gob.fire.signature; 11 | 12 | /** 13 | * Cuando no ha sido posible establecer la conecion con la base de datos. 14 | */ 15 | public class DBConnectionException extends Exception { 16 | 17 | /** Serial ID. */ 18 | private static final long serialVersionUID = 1057696375310201414L; 19 | 20 | /** 21 | * Error de conexión con la base de datos. 22 | * @param msg Mensaje descriptivo del error. 23 | */ 24 | public DBConnectionException(final String msg) { 25 | super(msg); 26 | } 27 | 28 | /** 29 | * Error de conexión con la base de datos. 30 | * @param msg Mensaje descriptivo del error. 31 | * @param cause Causa del error. 32 | */ 33 | public DBConnectionException(final String msg, final Throwable cause) { 34 | super(msg, cause); 35 | } 36 | } 37 | --------------------------------------------------------------------------------