diff --git a/README.adoc b/README.adoc index 257a726..bacd045 100644 --- a/README.adoc +++ b/README.adoc @@ -9,9 +9,9 @@ Los siguientes pasos le permitirán obtener una copia del proyecto para correrla === Pre-requisitos -- Open JDK 8 +- Open JDK 11 -- WildFly Application Server 20.- Para desplegar la aplicación se necesita un servidor de aplicaciones *Java EE 7* disponible en http://www.wildfly.org[wildfly.org] +- WildFly Application Server 26.1.1.- Para desplegar la aplicación se necesita un servidor de aplicaciones *Java EE 11* disponible en http://www.wildfly.org[wildfly.org] - Maven 3.- Para compilar y empaquetar se utiliza http://maven.apache.org[Apache Maven]. @@ -126,6 +126,11 @@ Usamos http://semver.org[SemVer] para versionar. https://alexjcm.github.io/firmadigital-servicio[Ver documentación] +== Autores + +* *Juan Diego Calle* - *Desarrollo inicial* - http://www.soportelibre.com[Soporte Libre] +* *Ricardo Arguello* - *Desarrollo* - http://www.soportelibre.com[Soporte Libre] +* *Misael Fernández* - *Desarrollo* - misael.fernandez.correa@gmail.com == Licencia diff --git a/docs/allclasses-frame.html b/docs/allclasses-frame.html deleted file mode 100644 index 3e82463..0000000 --- a/docs/allclasses-frame.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - -All Classes (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - -

All Classes

-
- -
- - diff --git a/docs/allclasses-index.html b/docs/allclasses-index.html new file mode 100644 index 0000000..e3ea9d1 --- /dev/null +++ b/docs/allclasses-index.html @@ -0,0 +1,495 @@ + + + + + +All Classes + + + + + + + + + + + + + + +
+ +
+
+
+

All Classes

+
+
+ +
+
+ + + diff --git a/docs/allclasses-noframe.html b/docs/allclasses.html similarity index 59% rename from docs/allclasses-noframe.html rename to docs/allclasses.html index 6235879..959eb32 100644 --- a/docs/allclasses-noframe.html +++ b/docs/allclasses.html @@ -1,17 +1,25 @@ - + - - -All Classes (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +All Classes + + + + + + + +

All Classes

-
+
-
+ diff --git a/docs/allpackages-index.html b/docs/allpackages-index.html new file mode 100644 index 0000000..82f98c8 --- /dev/null +++ b/docs/allpackages-index.html @@ -0,0 +1,204 @@ + + + + + +All Packages + + + + + + + + + + + + + + +
+ +
+
+
+

All Packages

+
+
+ +
+
+ + + diff --git a/docs/constant-values.html b/docs/constant-values.html index f0734ce..e2e7466 100644 --- a/docs/constant-values.html +++ b/docs/constant-values.html @@ -1,58 +1,68 @@ - + - - -Constant Field Values (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +Constant Field Values + + + + + + + + +var pathtoroot = "./"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
+ +
+

Constant Field Values

+

Contents

+
-
+
+

ec.gob.*

+
+
+ diff --git a/docs/deprecated-list.html b/docs/deprecated-list.html index 9cf14a5..64ead85 100644 --- a/docs/deprecated-list.html +++ b/docs/deprecated-list.html @@ -1,58 +1,68 @@ - + - - -Deprecated List (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +Deprecated List + + + + + + + + +var pathtoroot = "./"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
+ +
+

Deprecated API

Contents

+
+ diff --git a/docs/ec/gob/firmadigital/firmaec_app/exceptions/ProtocoloInvalidoException.html b/docs/ec/gob/firmadigital/firmaec_app/exceptions/ProtocoloInvalidoException.html new file mode 100644 index 0000000..6b66eb4 --- /dev/null +++ b/docs/ec/gob/firmadigital/firmaec_app/exceptions/ProtocoloInvalidoException.html @@ -0,0 +1,319 @@ + + + + + +ProtocoloInvalidoException + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ProtocoloInvalidoException

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    public class ProtocoloInvalidoException
    +extends java.lang.Exception
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ProtocoloInvalidoException

        +
        public ProtocoloInvalidoException​(java.lang.String message)
        +
      • +
      + + + +
        +
      • +

        ProtocoloInvalidoException

        +
        public ProtocoloInvalidoException​(java.lang.String message,
        +                                  java.net.URISyntaxException e)
        +
      • +
      + + + +
        +
      • +

        ProtocoloInvalidoException

        +
        public ProtocoloInvalidoException​(java.net.URISyntaxException e)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + diff --git a/docs/ec/gob/firmadigital/firmaec_app/exceptions/package-summary.html b/docs/ec/gob/firmadigital/firmaec_app/exceptions/package-summary.html new file mode 100644 index 0000000..3bc006a --- /dev/null +++ b/docs/ec/gob/firmadigital/firmaec_app/exceptions/package-summary.html @@ -0,0 +1,164 @@ + + + + + +ec.gob.firmadigital.firmaec_app.exceptions + + + + + + + + + + + + + + +
+ +
+
+
+

Package ec.gob.firmadigital.firmaec_app.exceptions

+
+
+ +
+
+ + + diff --git a/docs/ec/gob/firmadigital/firmaec_app/exceptions/package-tree.html b/docs/ec/gob/firmadigital/firmaec_app/exceptions/package-tree.html new file mode 100644 index 0000000..ef5b8f8 --- /dev/null +++ b/docs/ec/gob/firmadigital/firmaec_app/exceptions/package-tree.html @@ -0,0 +1,169 @@ + + + + + +ec.gob.firmadigital.firmaec_app.exceptions Class Hierarchy + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package ec.gob.firmadigital.firmaec_app.exceptions

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Throwable (implements java.io.Serializable) + +
    • +
    +
  • +
+
+
+
+ + + diff --git a/docs/ec/gob/firmadigital/servicio/ApiEstadisticaException.html b/docs/ec/gob/firmadigital/servicio/ApiEstadisticaException.html index 2d4f6d2..adffaaa 100644 --- a/docs/ec/gob/firmadigital/servicio/ApiEstadisticaException.html +++ b/docs/ec/gob/firmadigital/servicio/ApiEstadisticaException.html @@ -1,58 +1,68 @@ - + - - -ApiEstadisticaException (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ApiEstadisticaException + + + + + + + + +var pathtoroot = "../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
+ +
+
-
ec.gob.firmadigital.servicio
+

Class ApiEstadisticaException

@@ -182,12 +208,13 @@

Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -196,52 +223,47 @@

        ApiEstadisticaException

        public ApiEstadisticaException()
      - +
      • ApiEstadisticaException

        -
        public ApiEstadisticaException(String message)
        +
        public ApiEstadisticaException​(java.lang.String message)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/ApiUrlNoEncontradoException.html b/docs/ec/gob/firmadigital/servicio/ApiUrlNoEncontradoException.html index dacccb8..f5b53dd 100644 --- a/docs/ec/gob/firmadigital/servicio/ApiUrlNoEncontradoException.html +++ b/docs/ec/gob/firmadigital/servicio/ApiUrlNoEncontradoException.html @@ -1,58 +1,68 @@ - + - - -ApiUrlNoEncontradoException (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ApiUrlNoEncontradoException + + + + + + + + +var pathtoroot = "../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio
    +

    Class ApiUrlNoEncontradoException

    @@ -182,12 +208,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -196,52 +223,47 @@

        ApiUrlNoEncontradoException

        public ApiUrlNoEncontradoException()
      - +
      • ApiUrlNoEncontradoException

        -
        public ApiUrlNoEncontradoException(String message)
        +
        public ApiUrlNoEncontradoException​(java.lang.String message)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/CedulaInvalidaException.html b/docs/ec/gob/firmadigital/servicio/CedulaInvalidaException.html index 1336029..d7b8da9 100644 --- a/docs/ec/gob/firmadigital/servicio/CedulaInvalidaException.html +++ b/docs/ec/gob/firmadigital/servicio/CedulaInvalidaException.html @@ -1,58 +1,68 @@ - + - - -CedulaInvalidaException (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +CedulaInvalidaException + + + + + + + + +var pathtoroot = "../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio
    +

    Class CedulaInvalidaException

    @@ -183,12 +209,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -197,52 +224,47 @@

        CedulaInvalidaException

        public CedulaInvalidaException()
      - +
      • CedulaInvalidaException

        -
        public CedulaInvalidaException(String message)
        +
        public CedulaInvalidaException​(java.lang.String message)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/CertificadoRevocadoException.html b/docs/ec/gob/firmadigital/servicio/CertificadoRevocadoException.html index 254d43b..cbd9f21 100644 --- a/docs/ec/gob/firmadigital/servicio/CertificadoRevocadoException.html +++ b/docs/ec/gob/firmadigital/servicio/CertificadoRevocadoException.html @@ -1,58 +1,68 @@ - + - - -CertificadoRevocadoException (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +CertificadoRevocadoException + + + + + + + + +var pathtoroot = "../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio
    +

    Class CertificadoRevocadoException

    @@ -182,12 +208,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -196,52 +223,47 @@

        CertificadoRevocadoException

        public CertificadoRevocadoException()
      - +
      • CertificadoRevocadoException

        -
        public CertificadoRevocadoException(String message)
        +
        public CertificadoRevocadoException​(java.lang.String message)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/DocumentoNoExisteException.html b/docs/ec/gob/firmadigital/servicio/DocumentoNoExisteException.html index 0301d4e..e154a27 100644 --- a/docs/ec/gob/firmadigital/servicio/DocumentoNoExisteException.html +++ b/docs/ec/gob/firmadigital/servicio/DocumentoNoExisteException.html @@ -1,58 +1,68 @@ - + - - -DocumentoNoExisteException (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +DocumentoNoExisteException + + + + + + + + +var pathtoroot = "../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio
    +

    Class DocumentoNoExisteException

    @@ -190,12 +218,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -204,71 +233,66 @@

        DocumentoNoExisteException

        public DocumentoNoExisteException()
      - +
      • DocumentoNoExisteException

        -
        public DocumentoNoExisteException(String message)
        +
        public DocumentoNoExisteException​(java.lang.String message)
      - +
      • DocumentoNoExisteException

        -
        public DocumentoNoExisteException(String message,
        -                                  Throwable cause)
        +
        public DocumentoNoExisteException​(java.lang.String message,
        +                                  java.lang.Throwable cause)
      - +
      • DocumentoNoExisteException

        -
        public DocumentoNoExisteException(Throwable cause)
        +
        public DocumentoNoExisteException​(java.lang.Throwable cause)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/ServicioApiUrl.html b/docs/ec/gob/firmadigital/servicio/ServicioApiUrl.html index 0ff65e0..87dbe7e 100644 --- a/docs/ec/gob/firmadigital/servicio/ServicioApiUrl.html +++ b/docs/ec/gob/firmadigital/servicio/ServicioApiUrl.html @@ -1,64 +1,74 @@ - + - - -ServicioApiUrl (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioApiUrl + + + + + + + + +var pathtoroot = "../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio
    +

    Class ServicioApiUrl

    @@ -126,51 +143,59 @@

    Class ServicioApiUrl

    @@ -178,12 +203,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -194,23 +220,25 @@

        ServicioApiUrl

    +
    +
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/ServicioAppFirmarDocumento.html b/docs/ec/gob/firmadigital/servicio/ServicioAppFirmarDocumento.html new file mode 100644 index 0000000..1deb083 --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/ServicioAppFirmarDocumento.html @@ -0,0 +1,327 @@ + + + + + +ServicioAppFirmarDocumento + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class ServicioAppFirmarDocumento

    +
    +
    + +
    +
      +
    • +
      +
      public class ServicioAppFirmarDocumento
      +extends java.lang.Object
      +
    • +
    +
    +
    +
      +
    • + +
      + +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethodDescription
        java.lang.StringfirmarDocumento​(@NotNull java.lang.String pkcs12, + @NotNull java.lang.String password, + @NotNull java.lang.String documentoBase64, + java.lang.String versionFirmaEC, + java.lang.String formatoDocumento, + java.lang.String llx, + java.lang.String lly, + java.lang.String pagina, + java.lang.String tipoEstampado, + java.lang.String razon, + java.lang.String base64) 
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          ServicioAppFirmarDocumento

          +
          public ServicioAppFirmarDocumento()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          firmarDocumento

          +
          public java.lang.String firmarDocumento​(@NotNull
          +                                        @NotNull java.lang.String pkcs12,
          +                                        @NotNull
          +                                        @NotNull java.lang.String password,
          +                                        @NotNull
          +                                        @NotNull java.lang.String documentoBase64,
          +                                        java.lang.String versionFirmaEC,
          +                                        java.lang.String formatoDocumento,
          +                                        java.lang.String llx,
          +                                        java.lang.String lly,
          +                                        java.lang.String pagina,
          +                                        java.lang.String tipoEstampado,
          +                                        java.lang.String razon,
          +                                        java.lang.String base64)
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/ServicioAppFirmarDocumentoTransversal.html b/docs/ec/gob/firmadigital/servicio/ServicioAppFirmarDocumentoTransversal.html new file mode 100644 index 0000000..8dadfc8 --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/ServicioAppFirmarDocumentoTransversal.html @@ -0,0 +1,342 @@ + + + + + +ServicioAppFirmarDocumentoTransversal + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class ServicioAppFirmarDocumentoTransversal

    +
    +
    + +
    +
      +
    • +
      +
      public class ServicioAppFirmarDocumentoTransversal
      +extends java.lang.Object
      +
      Buscar en una lista de URLs permitidos para utilizar como API. Esto permite + federar la utilización de FirmaEC sobre otra infraestructura, consultando en + una lista de servidores permitidos.
      +
    • +
    +
    +
    +
      +
    • + +
      + +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethodDescription
        java.lang.StringfirmarTransversal​(java.lang.String pkcs12, + java.lang.String password, + java.lang.String sistema, + java.lang.String operacion, + java.lang.String url, + java.lang.String versionFirmaEC, + java.lang.String formatoDocumento, + java.lang.String tokenJwt, + java.lang.String llx, + java.lang.String lly, + java.lang.String pagina, + java.lang.String tipoEstampado, + java.lang.String razon, + boolean pre, + boolean des, + java.lang.String base64) 
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          ServicioAppFirmarDocumentoTransversal

          +
          public ServicioAppFirmarDocumentoTransversal()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          firmarTransversal

          +
          public java.lang.String firmarTransversal​(java.lang.String pkcs12,
          +                                          java.lang.String password,
          +                                          java.lang.String sistema,
          +                                          java.lang.String operacion,
          +                                          java.lang.String url,
          +                                          java.lang.String versionFirmaEC,
          +                                          java.lang.String formatoDocumento,
          +                                          java.lang.String tokenJwt,
          +                                          java.lang.String llx,
          +                                          java.lang.String lly,
          +                                          java.lang.String pagina,
          +                                          java.lang.String tipoEstampado,
          +                                          java.lang.String razon,
          +                                          boolean pre,
          +                                          boolean des,
          +                                          java.lang.String base64)
          +                                   throws java.lang.Exception
          +
          +
          Throws:
          +
          java.lang.Exception
          +
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/ServicioAppValidarCertificadoDigital.html b/docs/ec/gob/firmadigital/servicio/ServicioAppValidarCertificadoDigital.html new file mode 100644 index 0000000..5deabec --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/ServicioAppValidarCertificadoDigital.html @@ -0,0 +1,325 @@ + + + + + +ServicioAppValidarCertificadoDigital + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class ServicioAppValidarCertificadoDigital

    +
    +
    + +
    +
      +
    • +
      +
      public class ServicioAppValidarCertificadoDigital
      +extends java.lang.Object
      +
      Buscar en una lista de URLs permitidos para utilizar como API. Esto permite + federar la utilización de FirmaEC sobre otra infraestructura, consultando en + una lista de servidores permitidos.
      +
    • +
    +
    +
    +
      +
    • + +
      + +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethodDescription
        java.lang.StringappValidarCertificadoDigital​(@NotNull java.lang.String pkcs12, + @NotNull java.lang.String password, + @NotNull java.lang.String base64) +
        Busca un ApiUrl por URL.
        +
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          ServicioAppValidarCertificadoDigital

          +
          public ServicioAppValidarCertificadoDigital()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          appValidarCertificadoDigital

          +
          public java.lang.String appValidarCertificadoDigital​(@NotNull
          +                                                     @NotNull java.lang.String pkcs12,
          +                                                     @NotNull
          +                                                     @NotNull java.lang.String password,
          +                                                     @NotNull
          +                                                     @NotNull java.lang.String base64)
          +
          Busca un ApiUrl por URL.
          +
          +
          Parameters:
          +
          pkcs12 -
          +
          password -
          +
          base64 -
          +
          Returns:
          +
          json
          +
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/ServicioAppVerificarDocumento.html b/docs/ec/gob/firmadigital/servicio/ServicioAppVerificarDocumento.html new file mode 100644 index 0000000..e79746c --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/ServicioAppVerificarDocumento.html @@ -0,0 +1,308 @@ + + + + + +ServicioAppVerificarDocumento + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class ServicioAppVerificarDocumento

    +
    +
    + +
    +
      +
    • +
      +
      public class ServicioAppVerificarDocumento
      +extends java.lang.Object
      +
    • +
    +
    +
    +
      +
    • + +
      + +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethodDescription
        java.lang.StringverificarDocumento​(@NotNull java.lang.String base64Documento, + @NotNull java.lang.String base64) 
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          ServicioAppVerificarDocumento

          +
          public ServicioAppVerificarDocumento()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          verificarDocumento

          +
          public java.lang.String verificarDocumento​(@NotNull
          +                                           @NotNull java.lang.String base64Documento,
          +                                           @NotNull
          +                                           @NotNull java.lang.String base64)
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/ServicioDocumento.html b/docs/ec/gob/firmadigital/servicio/ServicioDocumento.html index 94aef56..d38b027 100644 --- a/docs/ec/gob/firmadigital/servicio/ServicioDocumento.html +++ b/docs/ec/gob/firmadigital/servicio/ServicioDocumento.html @@ -1,64 +1,74 @@ - + - - -ServicioDocumento (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioDocumento + + + + + + + + +var pathtoroot = "../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio
    +

    Class ServicioDocumento

    @@ -125,64 +142,75 @@

    Class ServicioDocumento

    @@ -190,12 +218,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -206,25 +235,27 @@

        ServicioDocumento

    +
    +
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/ServicioEliminacionDocumento.html b/docs/ec/gob/firmadigital/servicio/ServicioEliminacionDocumento.html index 2d4864e..7da153d 100644 --- a/docs/ec/gob/firmadigital/servicio/ServicioEliminacionDocumento.html +++ b/docs/ec/gob/firmadigital/servicio/ServicioEliminacionDocumento.html @@ -1,64 +1,74 @@ - + - - -ServicioEliminacionDocumento (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioEliminacionDocumento + + + + + + + + +var pathtoroot = "../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio
    +

    Class ServicioEliminacionDocumento

    @@ -125,52 +142,61 @@

    Class ServicioElimi @@ -178,12 +204,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -194,68 +221,65 @@

        ServicioEliminacionDocumento

    +
    +
      -
    • +
    • Method Detail

      - + - +
      • borrarDocumentos

        -
        public void borrarDocumentos()
        +
        public void borrarDocumentos()
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/ServicioEstadisticaDocumentosFirmados.html b/docs/ec/gob/firmadigital/servicio/ServicioEstadisticaDocumentosFirmados.html index 464227c..f0a411b 100644 --- a/docs/ec/gob/firmadigital/servicio/ServicioEstadisticaDocumentosFirmados.html +++ b/docs/ec/gob/firmadigital/servicio/ServicioEstadisticaDocumentosFirmados.html @@ -1,64 +1,74 @@ - + - - -ServicioEstadisticaDocumentosFirmados (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioEstadisticaDocumentosFirmados + + + + + + + + +var pathtoroot = "../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio
    +

    Class ServicioEstadisticaDocumentosFirmados

    @@ -126,52 +143,60 @@

    Class Serv @@ -179,12 +204,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -195,25 +221,27 @@

        ServicioEstadisticaDocumentosFirmados

    +
    +
      -
    • +
    • Method Detail

      - +
      • buscarPorFechaDesdeFechaHasta

        -
        public String buscarPorFechaDesdeFechaHasta(@NotNull
        -                                            @NotNull String sistema,
        -                                            @NotNull
        -                                            @NotNull String fechaDesde,
        -                                            @NotNull
        -                                            @NotNull String fechaHasta)
        -                                     throws ApiEstadisticaException
        +
        public java.lang.String buscarPorFechaDesdeFechaHasta​(@NotNull
        +                                                      @NotNull java.lang.String sistema,
        +                                                      @NotNull
        +                                                      @NotNull java.lang.String fechaDesde,
        +                                                      @NotNull
        +                                                      @NotNull java.lang.String fechaHasta)
        +                                               throws ApiEstadisticaException
        Busca un ApiUrl por URL.
        Parameters:
        @@ -222,47 +250,42 @@

        buscarPorFechaDesdeFechaHasta

        fechaHasta -
        Returns:
        Throws:
        -
        ApiEstadisticaException
        +
        ApiEstadisticaException
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/ServicioEstadisticaUsuarios.html b/docs/ec/gob/firmadigital/servicio/ServicioEstadisticaUsuarios.html index 38ed414..0af42a9 100644 --- a/docs/ec/gob/firmadigital/servicio/ServicioEstadisticaUsuarios.html +++ b/docs/ec/gob/firmadigital/servicio/ServicioEstadisticaUsuarios.html @@ -1,64 +1,74 @@ - + - - -ServicioEstadisticaUsuarios (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioEstadisticaUsuarios + + + + + + + + +var pathtoroot = "../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio
    +

    Class ServicioEstadisticaUsuarios

    @@ -126,52 +143,60 @@

    Class ServicioEstadi @@ -179,12 +204,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -195,25 +221,27 @@

        ServicioEstadisticaUsuarios

    +
    +
      -
    • +
    • Method Detail

      - +
      • buscarPorFechaDesdeFechaHasta

        -
        public String buscarPorFechaDesdeFechaHasta(@NotNull
        -                                            @NotNull String sistema,
        -                                            @NotNull
        -                                            @NotNull String fechaDesde,
        -                                            @NotNull
        -                                            @NotNull String fechaHasta)
        -                                     throws ApiEstadisticaException
        +
        public java.lang.String buscarPorFechaDesdeFechaHasta​(@NotNull
        +                                                      @NotNull java.lang.String sistema,
        +                                                      @NotNull
        +                                                      @NotNull java.lang.String fechaDesde,
        +                                                      @NotNull
        +                                                      @NotNull java.lang.String fechaHasta)
        +                                               throws ApiEstadisticaException
        Busca un ApiUrl por URL.
        Parameters:
        @@ -222,47 +250,42 @@

        buscarPorFechaDesdeFechaHasta

        fechaHasta -
        Returns:
        Throws:
        -
        ApiEstadisticaException
        +
        ApiEstadisticaException
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/ServicioLog.html b/docs/ec/gob/firmadigital/servicio/ServicioLog.html index 6524407..47d1c0e 100644 --- a/docs/ec/gob/firmadigital/servicio/ServicioLog.html +++ b/docs/ec/gob/firmadigital/servicio/ServicioLog.html @@ -1,64 +1,74 @@ - + - - -ServicioLog (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioLog + + + + + + + + +var pathtoroot = "../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio
    +

    Class ServicioLog

    @@ -125,65 +142,76 @@

    Class ServicioLog

    @@ -191,12 +219,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -207,90 +236,87 @@

        ServicioLog

    +
    +
      -
    • +
    • Method Detail

      - +
      • log

        -
        public void log(Log.Severidad severidad,
        -                String categoria,
        -                String descripcion)
        +
        public void log​(Log.Severidad severidad,
        +                java.lang.String categoria,
        +                java.lang.String descripcion)
      - +
      • info

        -
        public void info(String categoria,
        -                 String descripcion)
        +
        public void info​(java.lang.String categoria,
        +                 java.lang.String descripcion)
      - +
      • warning

        -
        public void warning(String categoria,
        -                    String descripcion)
        +
        public void warning​(java.lang.String categoria,
        +                    java.lang.String descripcion)
      - +
      • error

        -
        public void error(String categoria,
        -                  String descripcion)
        +
        public void error​(java.lang.String categoria,
        +                  java.lang.String descripcion)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/ServicioSistemaTransversal.html b/docs/ec/gob/firmadigital/servicio/ServicioSistemaTransversal.html index 69733a3..933d435 100644 --- a/docs/ec/gob/firmadigital/servicio/ServicioSistemaTransversal.html +++ b/docs/ec/gob/firmadigital/servicio/ServicioSistemaTransversal.html @@ -1,64 +1,74 @@ - + - - -ServicioSistemaTransversal (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioSistemaTransversal + + + + + + + + +var pathtoroot = "../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio
    +

    Class ServicioSistemaTransversal

    @@ -125,94 +142,105 @@

    Class ServicioSistema @@ -220,12 +248,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -236,38 +265,40 @@

        ServicioSistemaTransversal

    +
    +
      -
    • +
    • Method Detail

      - + - +
      • buscarUrlSistema

        -
        public URL buscarUrlSistema(String nombre)
        -                     throws IllegalArgumentException
        +
        public java.net.URL buscarUrlSistema​(java.lang.String nombre)
        +                              throws java.lang.IllegalArgumentException
        Obtiene el URL del Web Service de un sistema transversal, para devolver el documento firmado por el usuario.
        @@ -276,18 +307,18 @@

        buscarUrlSistema

        Returns:
        el URL del sistema traansversal
        Throws:
        -
        IllegalArgumentException - si no se encuentra ese nombre de sistema +
        java.lang.IllegalArgumentException - si no se encuentra ese nombre de sistema transversal
      - +
      • buscarApiKeyRest

        -
        public String buscarApiKeyRest(String nombre)
        +
        public java.lang.String buscarApiKeyRest​(java.lang.String nombre)
        Obtiene el ApiKey del Web Service de un sistema transversal, para devolver el documento firmado por el usuario.
        @@ -298,49 +329,46 @@

        buscarApiKeyRest

      - +
      • almacenarDocumentoREST

        -
        public void almacenarDocumentoREST(String cedula,
        -                                   String nombreDocumento,
        -                                   String archivoBase64,
        -                                   String nombreApellidoFirmante,
        -                                   URL url,
        -                                   String apiKeyRest,
        -                                   X509Certificate certificate)
        -                            throws SistemaTransversalException
        +
        public void almacenarDocumentoREST​(io.rubrica.certificate.to.Documento documento,
        +                                   java.lang.String cedula,
        +                                   java.lang.String nombreDocumento,
        +                                   java.lang.String archivoBase64,
        +                                   java.net.URL url,
        +                                   java.lang.String apiKeyRest)
        +                            throws SistemaTransversalException
        Almacena el documento firmado en el sistema tranversarl, mediante la invocación de un Web Service (SOAP).
        Parameters:
        +
        documento -
        cedula -
        nombreDocumento -
        archivoBase64 -
        -
        nombreApellidoFirmante -
        url -
        apiKeyRest -
        -
        certificate -
        Throws:
        -
        SistemaTransversalException
        +
        SistemaTransversalException
      - + - +
      • verificarApiKey

        -
        public boolean verificarApiKey(String nombre,
        -                               String apiKey)
        +
        public boolean verificarApiKey​(java.lang.String nombre,
        +                               java.lang.String apiKey)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/ServicioVersion.html b/docs/ec/gob/firmadigital/servicio/ServicioVersion.html new file mode 100644 index 0000000..c4dd215 --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/ServicioVersion.html @@ -0,0 +1,330 @@ + + + + + +ServicioVersion + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class ServicioVersion

    +
    +
    + +
    +
      +
    • +
      +
      public class ServicioVersion
      +extends java.lang.Object
      +
      Buscar en una lista de versiones. Esto permite tener el control de los + dispositivos que utilizan FirmaEC.
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Summary

        + + + + + + + + + + +
        Constructors 
        ConstructorDescription
        ServicioVersion() 
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethodDescription
        java.lang.StringvalidarVersion​(@NotNull java.lang.String sistemaOperativo, + @NotNull java.lang.String aplicacion, + @NotNull java.lang.String versionApp, + @NotNull java.lang.String sha) +
        Busca una versión, para ello se utiliza el sha con la versión 256
        +
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          ServicioVersion

          +
          public ServicioVersion()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          validarVersion

          +
          public java.lang.String validarVersion​(@NotNull
          +                                       @NotNull java.lang.String sistemaOperativo,
          +                                       @NotNull
          +                                       @NotNull java.lang.String aplicacion,
          +                                       @NotNull
          +                                       @NotNull java.lang.String versionApp,
          +                                       @NotNull
          +                                       @NotNull java.lang.String sha)
          +                                throws VersionException
          +
          Busca una versión, para ello se utiliza el sha con la versión 256
          +
          +
          Parameters:
          +
          sistemaOperativo -
          +
          aplicacion -
          +
          versionApp -
          +
          sha -
          +
          Returns:
          +
          Throws:
          +
          VersionException
          +
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/SistemaTransversalException.html b/docs/ec/gob/firmadigital/servicio/SistemaTransversalException.html index 8e681ea..2f9f938 100644 --- a/docs/ec/gob/firmadigital/servicio/SistemaTransversalException.html +++ b/docs/ec/gob/firmadigital/servicio/SistemaTransversalException.html @@ -1,58 +1,68 @@ - + - - -SistemaTransversalException (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +SistemaTransversalException + + + + + + + + +var pathtoroot = "../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio
    +

    Class SistemaTransversalException

    @@ -190,12 +218,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -204,71 +233,66 @@

        SistemaTransversalException

        public SistemaTransversalException()
      - +
      • SistemaTransversalException

        -
        public SistemaTransversalException(String message)
        +
        public SistemaTransversalException​(java.lang.String message)
      - +
      • SistemaTransversalException

        -
        public SistemaTransversalException(String message,
        -                                   Throwable cause)
        +
        public SistemaTransversalException​(java.lang.String message,
        +                                   java.lang.Throwable cause)
      - +
      • SistemaTransversalException

        -
        public SistemaTransversalException(Throwable cause)
        +
        public SistemaTransversalException​(java.lang.Throwable cause)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/VersionException.html b/docs/ec/gob/firmadigital/servicio/VersionException.html new file mode 100644 index 0000000..455b82b --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/VersionException.html @@ -0,0 +1,305 @@ + + + + + +VersionException + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class VersionException

    +
    +
    + +
    +
      +
    • +
      +
      All Implemented Interfaces:
      +
      java.io.Serializable
      +
      +
      +
      public class VersionException
      +extends java.lang.Exception
      +
      Excepcion lanzada en caso de problemas en la versión.
      +
      +
      See Also:
      +
      Serialized Form
      +
      +
    • +
    +
    +
    +
      +
    • + +
      + +
      + +
      +
        +
      • + + +

        Method Summary

        +
          +
        • + + +

          Methods inherited from class java.lang.Throwable

          +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
        • +
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          VersionException

          +
          public VersionException()
          +
        • +
        + + + +
          +
        • +

          VersionException

          +
          public VersionException​(java.lang.String message)
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/class-use/ApiEstadisticaException.html b/docs/ec/gob/firmadigital/servicio/class-use/ApiEstadisticaException.html deleted file mode 100644 index 5c8d72c..0000000 --- a/docs/ec/gob/firmadigital/servicio/class-use/ApiEstadisticaException.html +++ /dev/null @@ -1,178 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.ApiEstadisticaException (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.ApiEstadisticaException

    -
    -
    - -
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/class-use/ApiUrlNoEncontradoException.html b/docs/ec/gob/firmadigital/servicio/class-use/ApiUrlNoEncontradoException.html deleted file mode 100644 index baf7fc6..0000000 --- a/docs/ec/gob/firmadigital/servicio/class-use/ApiUrlNoEncontradoException.html +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.ApiUrlNoEncontradoException (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.ApiUrlNoEncontradoException

    -
    -
    - -
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/class-use/CedulaInvalidaException.html b/docs/ec/gob/firmadigital/servicio/class-use/CedulaInvalidaException.html deleted file mode 100644 index 6385500..0000000 --- a/docs/ec/gob/firmadigital/servicio/class-use/CedulaInvalidaException.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.CedulaInvalidaException (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.CedulaInvalidaException

    -
    -
    - -
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/class-use/CertificadoRevocadoException.html b/docs/ec/gob/firmadigital/servicio/class-use/CertificadoRevocadoException.html deleted file mode 100644 index 0c7dd50..0000000 --- a/docs/ec/gob/firmadigital/servicio/class-use/CertificadoRevocadoException.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.CertificadoRevocadoException (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.CertificadoRevocadoException

    -
    -
    - -
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/class-use/DocumentoNoExisteException.html b/docs/ec/gob/firmadigital/servicio/class-use/DocumentoNoExisteException.html deleted file mode 100644 index 1adb4ab..0000000 --- a/docs/ec/gob/firmadigital/servicio/class-use/DocumentoNoExisteException.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.DocumentoNoExisteException (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.DocumentoNoExisteException

    -
    -
    - -
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/class-use/ServicioApiUrl.html b/docs/ec/gob/firmadigital/servicio/class-use/ServicioApiUrl.html deleted file mode 100644 index 994abf6..0000000 --- a/docs/ec/gob/firmadigital/servicio/class-use/ServicioApiUrl.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.ServicioApiUrl (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.ServicioApiUrl

    -
    -
    No usage of ec.gob.firmadigital.servicio.ServicioApiUrl
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/class-use/ServicioDocumento.html b/docs/ec/gob/firmadigital/servicio/class-use/ServicioDocumento.html deleted file mode 100644 index d396f8e..0000000 --- a/docs/ec/gob/firmadigital/servicio/class-use/ServicioDocumento.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.ServicioDocumento (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.ServicioDocumento

    -
    -
    No usage of ec.gob.firmadigital.servicio.ServicioDocumento
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/class-use/ServicioEliminacionDocumento.html b/docs/ec/gob/firmadigital/servicio/class-use/ServicioEliminacionDocumento.html deleted file mode 100644 index d6b55e3..0000000 --- a/docs/ec/gob/firmadigital/servicio/class-use/ServicioEliminacionDocumento.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.ServicioEliminacionDocumento (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.ServicioEliminacionDocumento

    -
    -
    No usage of ec.gob.firmadigital.servicio.ServicioEliminacionDocumento
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/class-use/ServicioEstadisticaDocumentosFirmados.html b/docs/ec/gob/firmadigital/servicio/class-use/ServicioEstadisticaDocumentosFirmados.html deleted file mode 100644 index 212180d..0000000 --- a/docs/ec/gob/firmadigital/servicio/class-use/ServicioEstadisticaDocumentosFirmados.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.ServicioEstadisticaDocumentosFirmados (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.ServicioEstadisticaDocumentosFirmados

    -
    -
    No usage of ec.gob.firmadigital.servicio.ServicioEstadisticaDocumentosFirmados
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/class-use/ServicioEstadisticaUsuarios.html b/docs/ec/gob/firmadigital/servicio/class-use/ServicioEstadisticaUsuarios.html deleted file mode 100644 index 2acada7..0000000 --- a/docs/ec/gob/firmadigital/servicio/class-use/ServicioEstadisticaUsuarios.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.ServicioEstadisticaUsuarios (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.ServicioEstadisticaUsuarios

    -
    -
    No usage of ec.gob.firmadigital.servicio.ServicioEstadisticaUsuarios
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/class-use/ServicioLog.html b/docs/ec/gob/firmadigital/servicio/class-use/ServicioLog.html deleted file mode 100644 index 2bd88b7..0000000 --- a/docs/ec/gob/firmadigital/servicio/class-use/ServicioLog.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.ServicioLog (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.ServicioLog

    -
    -
    No usage of ec.gob.firmadigital.servicio.ServicioLog
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/class-use/ServicioSistemaTransversal.html b/docs/ec/gob/firmadigital/servicio/class-use/ServicioSistemaTransversal.html deleted file mode 100644 index 9d25fc0..0000000 --- a/docs/ec/gob/firmadigital/servicio/class-use/ServicioSistemaTransversal.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.ServicioSistemaTransversal (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.ServicioSistemaTransversal

    -
    -
    No usage of ec.gob.firmadigital.servicio.ServicioSistemaTransversal
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/class-use/SistemaTransversalException.html b/docs/ec/gob/firmadigital/servicio/class-use/SistemaTransversalException.html deleted file mode 100644 index da8c598..0000000 --- a/docs/ec/gob/firmadigital/servicio/class-use/SistemaTransversalException.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.SistemaTransversalException (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.SistemaTransversalException

    -
    -
    - -
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/cms/ServicioValidacionCms.html b/docs/ec/gob/firmadigital/servicio/cms/ServicioValidacionCms.html index 0c35137..7014d65 100644 --- a/docs/ec/gob/firmadigital/servicio/cms/ServicioValidacionCms.html +++ b/docs/ec/gob/firmadigital/servicio/cms/ServicioValidacionCms.html @@ -1,64 +1,74 @@ - + - - -ServicioValidacionCms (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioValidacionCms + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.cms
    +

    Class ServicioValidacionCms

    @@ -125,48 +142,56 @@

    Class ServicioValidacionCm @@ -174,12 +199,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -190,23 +216,25 @@

        ServicioValidacionCms

    +
    +
      -
    • +
    • Method Detail

      - +
      • verificarCms

        -
        @POST
        - @Consumes(value="text/plain")
        - @Produces(value="application/json")
        -public javax.ws.rs.core.Response verificarCms(String archivoBase64)
        -                                                                                                                 throws io.rubrica.exceptions.SignatureVerificationException
        +
        @POST
        +@Consumes("text/plain")
        +@Produces("application/json")
        +public javax.ws.rs.core.Response verificarCms​(java.lang.String archivoBase64)
        +                                       throws io.rubrica.exceptions.SignatureVerificationException
        Throws:
        io.rubrica.exceptions.SignatureVerificationException
        @@ -215,41 +243,36 @@

        verificarCms

    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/cms/class-use/ServicioValidacionCms.html b/docs/ec/gob/firmadigital/servicio/cms/class-use/ServicioValidacionCms.html deleted file mode 100644 index f34b05c..0000000 --- a/docs/ec/gob/firmadigital/servicio/cms/class-use/ServicioValidacionCms.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.cms.ServicioValidacionCms (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.cms.ServicioValidacionCms

    -
    -
    No usage of ec.gob.firmadigital.servicio.cms.ServicioValidacionCms
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/cms/package-frame.html b/docs/ec/gob/firmadigital/servicio/cms/package-frame.html deleted file mode 100644 index cba6a0f..0000000 --- a/docs/ec/gob/firmadigital/servicio/cms/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -ec.gob.firmadigital.servicio.cms (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - -

    ec.gob.firmadigital.servicio.cms

    -
    -

    Classes

    - -
    - - diff --git a/docs/ec/gob/firmadigital/servicio/cms/package-summary.html b/docs/ec/gob/firmadigital/servicio/cms/package-summary.html index b483fa9..bbeada9 100644 --- a/docs/ec/gob/firmadigital/servicio/cms/package-summary.html +++ b/docs/ec/gob/firmadigital/servicio/cms/package-summary.html @@ -1,58 +1,68 @@ - + - - -ec.gob.firmadigital.servicio.cms (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ec.gob.firmadigital.servicio.cms + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +

    Package ec.gob.firmadigital.servicio.cms

    + +
    +
    @@ -177,12 +203,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -193,67 +220,64 @@

        ServicioConsultaCrl

    +
    +
      -
    • +
    • Method Detail

      - +
      • isRevocado

        -
        public boolean isRevocado(BigInteger serial)
        +
        public boolean isRevocado​(java.math.BigInteger serial)
      - +
      • fechaRevocado

        -
        public String fechaRevocado(BigInteger serial)
        +
        public java.lang.String fechaRevocado​(java.math.BigInteger serial)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/crl/ServicioDescargaCrl.html b/docs/ec/gob/firmadigital/servicio/crl/ServicioDescargaCrl.html index a050f38..c9aca74 100644 --- a/docs/ec/gob/firmadigital/servicio/crl/ServicioDescargaCrl.html +++ b/docs/ec/gob/firmadigital/servicio/crl/ServicioDescargaCrl.html @@ -1,64 +1,74 @@ - + - - -ServicioDescargaCrl (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioDescargaCrl + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.crl
    +

    Class ServicioDescargaCrl

    @@ -124,54 +141,63 @@

    Class ServicioDescargaCrl
  • +
    +
    +
    +
  • @@ -179,12 +205,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -195,69 +222,66 @@

        ServicioDescargaCrl

    +
    +
      -
    • +
    • Method Detail

      - + - +
      • importarCrls

        -
        public void importarCrls()
        +
        public void importarCrls()
        To run on every Monday at 9 am
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/crl/class-use/ServicioConsultaCrl.html b/docs/ec/gob/firmadigital/servicio/crl/class-use/ServicioConsultaCrl.html deleted file mode 100644 index b484375..0000000 --- a/docs/ec/gob/firmadigital/servicio/crl/class-use/ServicioConsultaCrl.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.crl.ServicioConsultaCrl (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.crl.ServicioConsultaCrl

    -
    -
    No usage of ec.gob.firmadigital.servicio.crl.ServicioConsultaCrl
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/crl/class-use/ServicioDescargaCrl.html b/docs/ec/gob/firmadigital/servicio/crl/class-use/ServicioDescargaCrl.html deleted file mode 100644 index 2a6f2d1..0000000 --- a/docs/ec/gob/firmadigital/servicio/crl/class-use/ServicioDescargaCrl.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.crl.ServicioDescargaCrl (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.crl.ServicioDescargaCrl

    -
    -
    No usage of ec.gob.firmadigital.servicio.crl.ServicioDescargaCrl
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/crl/package-frame.html b/docs/ec/gob/firmadigital/servicio/crl/package-frame.html deleted file mode 100644 index 5c4bda7..0000000 --- a/docs/ec/gob/firmadigital/servicio/crl/package-frame.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - -ec.gob.firmadigital.servicio.crl (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - -

    ec.gob.firmadigital.servicio.crl

    -
    -

    Classes

    - -
    - - diff --git a/docs/ec/gob/firmadigital/servicio/crl/package-summary.html b/docs/ec/gob/firmadigital/servicio/crl/package-summary.html index 069db1a..0d66e27 100644 --- a/docs/ec/gob/firmadigital/servicio/crl/package-summary.html +++ b/docs/ec/gob/firmadigital/servicio/crl/package-summary.html @@ -1,58 +1,68 @@ - + - - -ec.gob.firmadigital.servicio.crl (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ec.gob.firmadigital.servicio.crl + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +

    Package ec.gob.firmadigital.servicio.crl

    + + +
    +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Throwable

        +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    + + +
    +
    + +
    + +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/exception/package-summary.html b/docs/ec/gob/firmadigital/servicio/exception/package-summary.html new file mode 100644 index 0000000..3433319 --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/exception/package-summary.html @@ -0,0 +1,167 @@ + + + + + +ec.gob.firmadigital.servicio.exception + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Package ec.gob.firmadigital.servicio.exception

    +
    +
    + +
    +
    + + + diff --git a/docs/ec/gob/firmadigital/servicio/exception/package-tree.html b/docs/ec/gob/firmadigital/servicio/exception/package-tree.html new file mode 100644 index 0000000..6f5b417 --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/exception/package-tree.html @@ -0,0 +1,169 @@ + + + + + +ec.gob.firmadigital.servicio.exception Class Hierarchy + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Hierarchy For Package ec.gob.firmadigital.servicio.exception

    +Package Hierarchies: + +
    +
    +
    +

    Class Hierarchy

    + +
    +
    +
    + + + diff --git a/docs/ec/gob/firmadigital/servicio/model/ApiUrl.html b/docs/ec/gob/firmadigital/servicio/model/ApiUrl.html index a19bb57..6c85076 100644 --- a/docs/ec/gob/firmadigital/servicio/model/ApiUrl.html +++ b/docs/ec/gob/firmadigital/servicio/model/ApiUrl.html @@ -1,64 +1,74 @@ - + - - -ApiUrl (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ApiUrl + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.model
    +

    Class ApiUrl

    @@ -217,12 +253,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -231,146 +268,143 @@

        ApiUrl

        public ApiUrl()
      - +
      • ApiUrl

        -
        public ApiUrl(String nombre,
        -              String url)
        +
        public ApiUrl​(java.lang.String nombre,
        +              java.lang.String url)
    +
    +
      -
    • +
    • Method Detail

      - +
      • getId

        -
        public Long getId()
        +
        public java.lang.Long getId()
      - +
      • setId

        -
        public void setId(Long id)
        +
        public void setId​(java.lang.Long id)
      - +
      • getNombre

        -
        public String getNombre()
        +
        public java.lang.String getNombre()
      - +
      • setNombre

        -
        public void setNombre(String nombre)
        +
        public void setNombre​(java.lang.String nombre)
      - +
      • getUrl

        -
        public String getUrl()
        +
        public java.lang.String getUrl()
      - +
      • setUrl

        -
        public void setUrl(String url)
        +
        public void setUrl​(java.lang.String url)
      - +
      • getStatus

        -
        public Boolean getStatus()
        +
        public java.lang.Boolean getStatus()
      - +
      • setStatus

        -
        public void setStatus(Boolean status)
        +
        public void setStatus​(java.lang.Boolean status)
      - +
      • toString

        -
        public String toString()
        +
        public java.lang.String toString()
        Overrides:
        -
        toString in class Object
        +
        toString in class java.lang.Object
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/model/Documento.html b/docs/ec/gob/firmadigital/servicio/model/Documento.html index 6730ada..2804e69 100644 --- a/docs/ec/gob/firmadigital/servicio/model/Documento.html +++ b/docs/ec/gob/firmadigital/servicio/model/Documento.html @@ -1,64 +1,74 @@ - + - - -Documento (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +Documento + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.model
    +

    Class Documento

    @@ -236,12 +276,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -250,185 +291,182 @@

        Documento

        public Documento()
      - +
      • Documento

        -
        public Documento(String cedula,
        -                 String nombre,
        -                 Date fecha,
        -                 String sistema,
        +
        public Documento​(java.lang.String cedula,
        +                 java.lang.String nombre,
        +                 java.util.Date fecha,
        +                 java.lang.String sistema,
                          byte[] archivo)
    +
    +
      -
    • +
    • Method Detail

      - +
      • getId

        -
        public Long getId()
        +
        public java.lang.Long getId()
      - +
      • setId

        -
        public void setId(Long id)
        +
        public void setId​(java.lang.Long id)
      - +
      • getCedula

        -
        public String getCedula()
        +
        public java.lang.String getCedula()
      - +
      • setCedula

        -
        public void setCedula(String cedula)
        +
        public void setCedula​(java.lang.String cedula)
      - +
      • getNombre

        -
        public String getNombre()
        +
        public java.lang.String getNombre()
      - +
      • setNombre

        -
        public void setNombre(String nombre)
        +
        public void setNombre​(java.lang.String nombre)
      - +
      • getFecha

        -
        public Date getFecha()
        +
        public java.util.Date getFecha()
      - +
      • setFecha

        -
        public void setFecha(Date fecha)
        +
        public void setFecha​(java.util.Date fecha)
      - +
      • getSistema

        -
        public String getSistema()
        +
        public java.lang.String getSistema()
      - +
      • setSistema

        -
        public void setSistema(String sistema)
        +
        public void setSistema​(java.lang.String sistema)
      - +
      • getArchivo

        -
        public byte[] getArchivo()
        +
        public byte[] getArchivo()
      - +
      • setArchivo

        -
        public void setArchivo(byte[] archivo)
        +
        public void setArchivo​(byte[] archivo)
      - +
      • toString

        -
        public String toString()
        +
        public java.lang.String toString()
        Overrides:
        -
        toString in class Object
        +
        toString in class java.lang.Object
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/model/Log.Severidad.html b/docs/ec/gob/firmadigital/servicio/model/Log.Severidad.html index 3ff273b..5c5bb75 100644 --- a/docs/ec/gob/firmadigital/servicio/model/Log.Severidad.html +++ b/docs/ec/gob/firmadigital/servicio/model/Log.Severidad.html @@ -1,64 +1,74 @@ - + - - -Log.Severidad (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +Log.Severidad + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.model
    +

    Enum Log.Severidad

    @@ -204,55 +236,58 @@

    Methods inherited from class java.lang.
  • +
    +
    +
      -
    • +
    • Method Detail

      - +
      • values

        -
        public static Log.Severidad[] values()
        +
        public static Log.Severidad[] values()
        Returns an array containing the constants of this enum type, in -the order they are declared. This method may be used to iterate +the order they are declared. This method may be used to iterate over the constants as follows:
         for (Log.Severidad c : Log.Severidad.values())
        @@ -264,13 +299,13 @@ 

        values

      - +
      • valueOf

        -
        public static Log.Severidad valueOf(String name)
        +
        public static Log.Severidad valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are @@ -281,48 +316,43 @@

        valueOf

        Returns:
        the enum constant with the specified name
        Throws:
        -
        IllegalArgumentException - if this enum type has no constant with the specified name
        -
        NullPointerException - if the argument is null
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/model/Log.html b/docs/ec/gob/firmadigital/servicio/model/Log.html index 4131412..497eaba 100644 --- a/docs/ec/gob/firmadigital/servicio/model/Log.html +++ b/docs/ec/gob/firmadigital/servicio/model/Log.html @@ -1,64 +1,74 @@ - + - - -Log (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +Log + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.model
    +

    Class Log

    @@ -266,12 +312,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -280,201 +327,198 @@

        Log

        public Log()
      - +
      • Log

        -
        public Log(Log.Severidad severidad,
        -           String categoria,
        -           String descripcion)
        +
        public Log​(Log.Severidad severidad,
        +           java.lang.String categoria,
        +           java.lang.String descripcion)
      - +
      • Log

        -
        public Log(Log.Severidad severidad,
        -           String categoria,
        -           String descripcion,
        -           String sistema,
        -           String cedula)
        +
        public Log​(Log.Severidad severidad,
        +           java.lang.String categoria,
        +           java.lang.String descripcion,
        +           java.lang.String sistema,
        +           java.lang.String cedula)
    +
    +
      -
    • +
    • Method Detail

      - +
      • getId

        -
        public long getId()
        +
        public long getId()
      - +
      • setId

        -
        public void setId(long id)
        +
        public void setId​(long id)
      - +
      • getFecha

        -
        public Date getFecha()
        +
        public java.util.Date getFecha()
      - +
      • setFecha

        -
        public void setFecha(Date fecha)
        +
        public void setFecha​(java.util.Date fecha)
      - + - + - +
      • getCategoria

        -
        public String getCategoria()
        +
        public java.lang.String getCategoria()
      - +
      • setCategoria

        -
        public void setCategoria(String categoria)
        +
        public void setCategoria​(java.lang.String categoria)
      - +
      • getDescripcion

        -
        public String getDescripcion()
        +
        public java.lang.String getDescripcion()
      - +
      • setDescripcion

        -
        public void setDescripcion(String descripcion)
        +
        public void setDescripcion​(java.lang.String descripcion)
      - +
      • getCedula

        -
        public String getCedula()
        +
        public java.lang.String getCedula()
      - +
      • setCedula

        -
        public void setCedula(String cedula)
        +
        public void setCedula​(java.lang.String cedula)
      - +
      • getSistema

        -
        public String getSistema()
        +
        public java.lang.String getSistema()
      - +
      • setSistema

        -
        public void setSistema(String sistema)
        +
        public void setSistema​(java.lang.String sistema)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/model/Sistema.html b/docs/ec/gob/firmadigital/servicio/model/Sistema.html index 1e1c8d2..eeca6bd 100644 --- a/docs/ec/gob/firmadigital/servicio/model/Sistema.html +++ b/docs/ec/gob/firmadigital/servicio/model/Sistema.html @@ -1,64 +1,74 @@ - + - - -Sistema (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +Sistema + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.model
    +

    Class Sistema

    @@ -225,12 +263,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -241,157 +280,154 @@

        Sistema

    +
    +
      -
    • +
    • Method Detail

      - +
      • getId

        -
        public long getId()
        +
        public long getId()
      - +
      • setId

        -
        public void setId(long id)
        +
        public void setId​(long id)
      - +
      • getNombre

        -
        public String getNombre()
        +
        public java.lang.String getNombre()
      - +
      • setNombre

        -
        public void setNombre(String nombre)
        +
        public void setNombre​(java.lang.String nombre)
      - +
      • getDescripcion

        -
        public String getDescripcion()
        +
        public java.lang.String getDescripcion()
      - +
      • setDescripcion

        -
        public void setDescripcion(String descripcion)
        +
        public void setDescripcion​(java.lang.String descripcion)
      - +
      • getURL

        -
        public String getURL()
        +
        public java.lang.String getURL()
      - +
      • setURL

        -
        public void setURL(String uRL)
        +
        public void setURL​(java.lang.String uRL)
      - +
      • getApiKey

        -
        public String getApiKey()
        +
        public java.lang.String getApiKey()
      - +
      • setApiKey

        -
        public void setApiKey(String apiKey)
        +
        public void setApiKey​(java.lang.String apiKey)
      - +
      • getApiKeyRest

        -
        public String getApiKeyRest()
        +
        public java.lang.String getApiKeyRest()
      - +
      • setApiKeyRest

        -
        public void setApiKeyRest(String apiKeyRest)
        +
        public void setApiKeyRest​(java.lang.String apiKeyRest)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/model/Version.html b/docs/ec/gob/firmadigital/servicio/model/Version.html new file mode 100644 index 0000000..f5d3cb5 --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/model/Version.html @@ -0,0 +1,571 @@ + + + + + +Version + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class Version

    +
    +
    + +
    +
      +
    • +
      +
      All Implemented Interfaces:
      +
      java.io.Serializable
      +
      +
      +
      @Entity
      +public class Version
      +extends java.lang.Object
      +implements java.io.Serializable
      +
      Representa un sistema transversal.
      +
      +
      See Also:
      +
      Serialized Form
      +
      +
    • +
    +
    +
    + +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          Version

          +
          public Version()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          getId

          +
          public long getId()
          +
        • +
        + + + +
          +
        • +

          setId

          +
          public void setId​(long id)
          +
        • +
        + + + +
          +
        • +

          getSistemaOperativo

          +
          public java.lang.String getSistemaOperativo()
          +
        • +
        + + + +
          +
        • +

          setSistemaOperativo

          +
          public void setSistemaOperativo​(java.lang.String sistemaOperativo)
          +
        • +
        + + + +
          +
        • +

          getAplicacion

          +
          public java.lang.String getAplicacion()
          +
        • +
        + + + +
          +
        • +

          setAplicacion

          +
          public void setAplicacion​(java.lang.String aplicacion)
          +
        • +
        + + + +
          +
        • +

          getVersion

          +
          public java.lang.String getVersion()
          +
        • +
        + + + +
          +
        • +

          setVersion

          +
          public void setVersion​(java.lang.String version)
          +
        • +
        + + + +
          +
        • +

          getSha

          +
          public java.lang.String getSha()
          +
        • +
        + + + +
          +
        • +

          setSha

          +
          public void setSha​(java.lang.String sha)
          +
        • +
        + + + +
          +
        • +

          getStatus

          +
          public java.lang.Boolean getStatus()
          +
        • +
        + + + +
          +
        • +

          setStatus

          +
          public void setStatus​(java.lang.Boolean status)
          +
        • +
        + + + +
          +
        • +

          getDescripcion

          +
          public java.lang.String getDescripcion()
          +
        • +
        + + + +
          +
        • +

          setDescripcion

          +
          public void setDescripcion​(java.lang.String descripcion)
          +
        • +
        + + + +
          +
        • +

          getFechaLiberacion

          +
          public java.util.Date getFechaLiberacion()
          +
        • +
        + + + +
          +
        • +

          setFechaLiberacion

          +
          public void setFechaLiberacion​(java.util.Date fechaLiberacion)
          +
        • +
        + + + +
          +
        • +

          getFechaObsoleto

          +
          public java.util.Date getFechaObsoleto()
          +
        • +
        + + + +
          +
        • +

          setFechaObsoleto

          +
          public void setFechaObsoleto​(java.util.Date fechaObsoleto)
          +
        • +
        + + + +
          +
        • +

          toString

          +
          public java.lang.String toString()
          +
          +
          Overrides:
          +
          toString in class java.lang.Object
          +
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/model/class-use/ApiUrl.html b/docs/ec/gob/firmadigital/servicio/model/class-use/ApiUrl.html deleted file mode 100644 index adeb0f5..0000000 --- a/docs/ec/gob/firmadigital/servicio/model/class-use/ApiUrl.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.model.ApiUrl (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.model.ApiUrl

    -
    -
    No usage of ec.gob.firmadigital.servicio.model.ApiUrl
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/model/class-use/Documento.html b/docs/ec/gob/firmadigital/servicio/model/class-use/Documento.html deleted file mode 100644 index 9f1bb09..0000000 --- a/docs/ec/gob/firmadigital/servicio/model/class-use/Documento.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.model.Documento (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.model.Documento

    -
    -
    No usage of ec.gob.firmadigital.servicio.model.Documento
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/model/class-use/Log.Severidad.html b/docs/ec/gob/firmadigital/servicio/model/class-use/Log.Severidad.html deleted file mode 100644 index d205405..0000000 --- a/docs/ec/gob/firmadigital/servicio/model/class-use/Log.Severidad.html +++ /dev/null @@ -1,236 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.model.Log.Severidad (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.model.Log.Severidad

    -
    -
    - -
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/model/class-use/Log.html b/docs/ec/gob/firmadigital/servicio/model/class-use/Log.html deleted file mode 100644 index 041c933..0000000 --- a/docs/ec/gob/firmadigital/servicio/model/class-use/Log.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.model.Log (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.model.Log

    -
    -
    No usage of ec.gob.firmadigital.servicio.model.Log
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/model/class-use/Sistema.html b/docs/ec/gob/firmadigital/servicio/model/class-use/Sistema.html deleted file mode 100644 index ae71528..0000000 --- a/docs/ec/gob/firmadigital/servicio/model/class-use/Sistema.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.model.Sistema (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - -
    Skip navigation links
    - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.model.Sistema

    -
    -
    - -
    - -
    - - -
    Skip navigation links
    - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/model/package-frame.html b/docs/ec/gob/firmadigital/servicio/model/package-frame.html deleted file mode 100644 index 61d8337..0000000 --- a/docs/ec/gob/firmadigital/servicio/model/package-frame.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - -ec.gob.firmadigital.servicio.model (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - -

    ec.gob.firmadigital.servicio.model

    -
    -

    Classes

    - -

    Enums

    - -
    - - diff --git a/docs/ec/gob/firmadigital/servicio/model/package-summary.html b/docs/ec/gob/firmadigital/servicio/model/package-summary.html index 43cd3fc..71b5065 100644 --- a/docs/ec/gob/firmadigital/servicio/model/package-summary.html +++ b/docs/ec/gob/firmadigital/servicio/model/package-summary.html @@ -1,58 +1,68 @@ - + - - -ec.gob.firmadigital.servicio.model (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ec.gob.firmadigital.servicio.model + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +

    Package ec.gob.firmadigital.servicio.model

    -
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/package-frame.html b/docs/ec/gob/firmadigital/servicio/package-frame.html deleted file mode 100644 index f88fa5e..0000000 --- a/docs/ec/gob/firmadigital/servicio/package-frame.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - -ec.gob.firmadigital.servicio (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - -

    ec.gob.firmadigital.servicio

    -
    -

    Classes

    - -

    Exceptions

    - -
    - - diff --git a/docs/ec/gob/firmadigital/servicio/package-summary.html b/docs/ec/gob/firmadigital/servicio/package-summary.html index 2b788f9..b06bc67 100644 --- a/docs/ec/gob/firmadigital/servicio/package-summary.html +++ b/docs/ec/gob/firmadigital/servicio/package-summary.html @@ -1,58 +1,68 @@ - + - - -ec.gob.firmadigital.servicio (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ec.gob.firmadigital.servicio + + + + + + + + +var pathtoroot = "../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +

    Package ec.gob.firmadigital.servicio

    +
    + diff --git a/docs/ec/gob/firmadigital/servicio/package-tree.html b/docs/ec/gob/firmadigital/servicio/package-tree.html index 201e30e..dd9d560 100644 --- a/docs/ec/gob/firmadigital/servicio/package-tree.html +++ b/docs/ec/gob/firmadigital/servicio/package-tree.html @@ -1,58 +1,68 @@ - + - - -ec.gob.firmadigital.servicio Class Hierarchy (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ec.gob.firmadigital.servicio Class Hierarchy + + + + + + + + +var pathtoroot = "../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +

    Hierarchy For Package ec.gob.firmadigital.servicio

    Package Hierarchies: @@ -78,27 +100,34 @@

    Hierarchy For Package ec.gob.firmadigital.servicio

    +

    Class Hierarchy

    +
    +
    + diff --git a/docs/ec/gob/firmadigital/servicio/package-use.html b/docs/ec/gob/firmadigital/servicio/package-use.html deleted file mode 100644 index 5d386ae..0000000 --- a/docs/ec/gob/firmadigital/servicio/package-use.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - -Uses of Package ec.gob.firmadigital.servicio (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - - - - - - -
    - - -
    -

    Uses of Package
    ec.gob.firmadigital.servicio

    -
    -
    - -
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/pdf/ServicioValidacionPdf.html b/docs/ec/gob/firmadigital/servicio/pdf/ServicioValidacionPdf.html index 7003a36..e7b879f 100644 --- a/docs/ec/gob/firmadigital/servicio/pdf/ServicioValidacionPdf.html +++ b/docs/ec/gob/firmadigital/servicio/pdf/ServicioValidacionPdf.html @@ -1,64 +1,74 @@ - + - - -ServicioValidacionPdf (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioValidacionPdf + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.pdf
    +

    Class ServicioValidacionPdf

      -
    • java.lang.Object
    • +
    • java.lang.Object
      • ec.gob.firmadigital.servicio.pdf.ServicioValidacionPdf
      • @@ -109,15 +131,10 @@

        Class ServicioValidacionPd

        • -
          -
          @Path(value="/validacionpdf")
          +
          @Path("/validacionpdf")
           public class ServicioValidacionPdf
          -extends Object
          +extends java.lang.Object
          Servicio de verificacion de archivos PDF.
          -
          -
          Author:
          -
          Ricardo Arguello
          -

    @@ -125,52 +142,61 @@

    Class ServicioValidacionPd @@ -178,12 +204,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -194,88 +221,85 @@

        ServicioValidacionPdf

    +
    +
      -
    • +
    • Method Detail

      - + - +
      • verificarPdf

        -
        @POST
        - @Consumes(value="text/plain")
        - @Produces(value="application/json")
        -public javax.ws.rs.core.Response verificarPdf(String archivoBase64)
        -                                                                                                                 throws KeyStoreException,
        -                                                                                                                        SignatureException,
        -                                                                                                                        io.rubrica.exceptions.OcspValidationException
        +
        @POST
        +@Consumes("text/plain")
        +@Produces("application/json")
        +public javax.ws.rs.core.Response verificarPdf​(java.lang.String archivoBase64)
        +                                       throws java.security.KeyStoreException,
        +                                              java.security.SignatureException,
        +                                              io.rubrica.exceptions.OcspValidationException
        Throws:
        -
        KeyStoreException
        -
        SignatureException
        +
        java.security.KeyStoreException
        +
        java.security.SignatureException
        io.rubrica.exceptions.OcspValidationException
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/pdf/class-use/ServicioValidacionPdf.html b/docs/ec/gob/firmadigital/servicio/pdf/class-use/ServicioValidacionPdf.html deleted file mode 100644 index 0a16b97..0000000 --- a/docs/ec/gob/firmadigital/servicio/pdf/class-use/ServicioValidacionPdf.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.pdf.ServicioValidacionPdf (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - - - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.pdf.ServicioValidacionPdf

    -
    -
    No usage of ec.gob.firmadigital.servicio.pdf.ServicioValidacionPdf
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/pdf/package-frame.html b/docs/ec/gob/firmadigital/servicio/pdf/package-frame.html deleted file mode 100644 index 8c02758..0000000 --- a/docs/ec/gob/firmadigital/servicio/pdf/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -ec.gob.firmadigital.servicio.pdf (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - -

    ec.gob.firmadigital.servicio.pdf

    -
    -

    Classes

    - -
    - - diff --git a/docs/ec/gob/firmadigital/servicio/pdf/package-summary.html b/docs/ec/gob/firmadigital/servicio/pdf/package-summary.html index ed53643..1724ccf 100644 --- a/docs/ec/gob/firmadigital/servicio/pdf/package-summary.html +++ b/docs/ec/gob/firmadigital/servicio/pdf/package-summary.html @@ -1,58 +1,68 @@ - + - - -ec.gob.firmadigital.servicio.pdf (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ec.gob.firmadigital.servicio.pdf + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +

    Package ec.gob.firmadigital.servicio.pdf

    • - +
      @@ -84,7 +106,7 @@

      Package ec.gob.firmadigital.servicio.pdf<

      - + @@ -94,36 +116,30 @@

      Package ec.gob.firmadigital.servicio.pdf< + + diff --git a/docs/ec/gob/firmadigital/servicio/pdf/package-tree.html b/docs/ec/gob/firmadigital/servicio/pdf/package-tree.html index 61a3690..eba2f68 100644 --- a/docs/ec/gob/firmadigital/servicio/pdf/package-tree.html +++ b/docs/ec/gob/firmadigital/servicio/pdf/package-tree.html @@ -1,58 +1,68 @@ - + - - -ec.gob.firmadigital.servicio.pdf Class Hierarchy (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ec.gob.firmadigital.servicio.pdf Class Hierarchy + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
      + +
      +

      Hierarchy For Package ec.gob.firmadigital.servicio.pdf

      Package Hierarchies: @@ -78,45 +100,41 @@

      Hierarchy For Package ec.gob.firmadigital.servicio.pdf

      +

      Class Hierarchy

      +
      +
      + diff --git a/docs/ec/gob/firmadigital/servicio/pdf/package-use.html b/docs/ec/gob/firmadigital/servicio/pdf/package-use.html deleted file mode 100644 index 56227ac..0000000 --- a/docs/ec/gob/firmadigital/servicio/pdf/package-use.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Package ec.gob.firmadigital.servicio.pdf (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - - - - -
      -

      Uses of Package
      ec.gob.firmadigital.servicio.pdf

      -
      -
      No usage of ec.gob.firmadigital.servicio.pdf
      - - - - -

      Copyright © 2021. All rights reserved.

      - - diff --git a/docs/ec/gob/firmadigital/servicio/rest/JAXRSConfiguration.html b/docs/ec/gob/firmadigital/servicio/rest/JAXRSConfiguration.html index 788a04f..d6ad64d 100644 --- a/docs/ec/gob/firmadigital/servicio/rest/JAXRSConfiguration.html +++ b/docs/ec/gob/firmadigital/servicio/rest/JAXRSConfiguration.html @@ -1,58 +1,68 @@ - + - - -JAXRSConfiguration (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +JAXRSConfiguration + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
      + +
      +
      -
      ec.gob.firmadigital.servicio.rest
      +

      Class JAXRSConfiguration

        -
      • java.lang.Object
      • +
      • java.lang.Object
        • javax.ws.rs.core.Application
        • @@ -108,15 +130,10 @@

          Class JAXRSConfiguration


          • -
            -
            @ApplicationPath(value="")
            +
            @ApplicationPath("")
             public class JAXRSConfiguration
             extends javax.ws.rs.core.Application
            Configuración de la aplicacion REST
            -
            -
            Author:
            -
            Ricardo Arguello
            -
      @@ -124,44 +141,50 @@

      Class JAXRSConfiguration

      • +
          -
        • +
        • Constructor Summary

          -

      Class Summary 
      Class
      ServicioValidacionPdfServicioValidacionPdf
      Servicio de verificacion de archivos PDF.
      +
      - + + - + +
      Constructors 
      Constructor and DescriptionConstructorDescription
      JAXRSConfiguration() JAXRSConfiguration() 
    + +
    +
    @@ -169,12 +192,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -185,41 +209,36 @@

        JAXRSConfiguration

    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/rest/ServicioApiUrlRest.html b/docs/ec/gob/firmadigital/servicio/rest/ServicioApiUrlRest.html index cb99ce0..63855e9 100644 --- a/docs/ec/gob/firmadigital/servicio/rest/ServicioApiUrlRest.html +++ b/docs/ec/gob/firmadigital/servicio/rest/ServicioApiUrlRest.html @@ -1,64 +1,74 @@ - + - - -ServicioApiUrlRest (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioApiUrlRest + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.rest
    +

    Class ServicioApiUrlRest

      -
    • java.lang.Object
    • +
    • java.lang.Object
      • ec.gob.firmadigital.servicio.rest.ServicioApiUrlRest
      • @@ -109,15 +131,10 @@

        Class ServicioApiUrlRest


        • -
          -
          @Path(value="/apiurl")
          +
          @Path("/apiurl")
           public class ServicioApiUrlRest
          -extends Object
          +extends java.lang.Object
          Servicio REST para verificar si existe un API URL.
          -
          -
          Author:
          -
          Ricardo Arguello
          -
    @@ -125,48 +142,56 @@

    Class ServicioApiUrlRest

    @@ -174,12 +199,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -190,62 +216,59 @@

        ServicioApiUrlRest

    +
    +
      -
    • +
    • Method Detail

      - +
      • buscarUrl

        -
        @GET
        - @Path(value="{base64}")
        - @Produces(value="text/plain")
        -public String buscarUrl(@PathParam(value="base64")
        -                                                                                     String base64)
        +
        @GET
        +@Path("{base64}")
        +@Produces("text/plain")
        +public java.lang.String buscarUrl​(@PathParam("base64")
        +                                  java.lang.String base64)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/rest/ServicioAppFirmarDocumentoRest.html b/docs/ec/gob/firmadigital/servicio/rest/ServicioAppFirmarDocumentoRest.html new file mode 100644 index 0000000..a2bd1ee --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/rest/ServicioAppFirmarDocumentoRest.html @@ -0,0 +1,327 @@ + + + + + +ServicioAppFirmarDocumentoRest + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class ServicioAppFirmarDocumentoRest

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • ec.gob.firmadigital.servicio.rest.ServicioAppFirmarDocumentoRest
      • +
      +
    • +
    +
    +
      +
    • +
      +
      @Path("/appfirmardocumento")
      +public class ServicioAppFirmarDocumentoRest
      +extends java.lang.Object
      +
      REST Web Service
      +
    • +
    +
    +
    +
      +
    • + +
      + +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethodDescription
        java.lang.StringfirmarDocumento​(java.lang.String pkcs12, + java.lang.String password, + java.lang.String documento, + java.lang.String json, + java.lang.String base64) 
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          ServicioAppFirmarDocumentoRest

          +
          public ServicioAppFirmarDocumentoRest()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          firmarDocumento

          +
          @POST
          +@Produces("text/plain")
          +@Consumes("application/x-www-form-urlencoded")
          +public java.lang.String firmarDocumento​(@FormParam("pkcs12")
          +                                        java.lang.String pkcs12,
          +                                        @FormParam("password")
          +                                        java.lang.String password,
          +                                        @FormParam("documento")
          +                                        java.lang.String documento,
          +                                        @FormParam("json")
          +                                        java.lang.String json,
          +                                        @FormParam("base64")
          +                                        java.lang.String base64)
          +                                 throws java.lang.Exception
          +
          +
          Throws:
          +
          java.lang.Exception
          +
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/rest/ServicioAppFirmarDocumentoTransversalRest.html b/docs/ec/gob/firmadigital/servicio/rest/ServicioAppFirmarDocumentoTransversalRest.html new file mode 100644 index 0000000..90f4f11 --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/rest/ServicioAppFirmarDocumentoTransversalRest.html @@ -0,0 +1,324 @@ + + + + + +ServicioAppFirmarDocumentoTransversalRest + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class ServicioAppFirmarDocumentoTransversalRest

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • ec.gob.firmadigital.servicio.rest.ServicioAppFirmarDocumentoTransversalRest
      • +
      +
    • +
    +
    +
      +
    • +
      +
      @Path("/appfirmardocumentotransversal")
      +public class ServicioAppFirmarDocumentoTransversalRest
      +extends java.lang.Object
      +
      REST Web Service
      +
    • +
    +
    +
    +
      +
    • + +
      + +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethodDescription
        java.lang.StringfirmarDocumentoTransversal​(java.lang.String pkcs12, + java.lang.String password, + java.lang.String json, + java.lang.String base64) 
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          ServicioAppFirmarDocumentoTransversalRest

          +
          public ServicioAppFirmarDocumentoTransversalRest()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          firmarDocumentoTransversal

          +
          @POST
          +@Produces("text/plain")
          +@Consumes("application/x-www-form-urlencoded")
          +public java.lang.String firmarDocumentoTransversal​(@FormParam("pkcs12")
          +                                                   java.lang.String pkcs12,
          +                                                   @FormParam("password")
          +                                                   java.lang.String password,
          +                                                   @FormParam("json")
          +                                                   java.lang.String json,
          +                                                   @FormParam("base64")
          +                                                   java.lang.String base64)
          +                                            throws java.lang.Exception
          +
          +
          Throws:
          +
          java.lang.Exception
          +
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/rest/ServicioAppValidarCertificadoDigitalRest.html b/docs/ec/gob/firmadigital/servicio/rest/ServicioAppValidarCertificadoDigitalRest.html new file mode 100644 index 0000000..3353331 --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/rest/ServicioAppValidarCertificadoDigitalRest.html @@ -0,0 +1,316 @@ + + + + + +ServicioAppValidarCertificadoDigitalRest + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class ServicioAppValidarCertificadoDigitalRest

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • ec.gob.firmadigital.servicio.rest.ServicioAppValidarCertificadoDigitalRest
      • +
      +
    • +
    +
    +
      +
    • +
      +
      @Path("/appvalidarcertificadodigital")
      +public class ServicioAppValidarCertificadoDigitalRest
      +extends java.lang.Object
      +
      REST Web Service
      +
    • +
    +
    +
    +
      +
    • + +
      + +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethodDescription
        java.lang.StringvalidarCertificadoDigital​(java.lang.String pkcs12, + java.lang.String password, + java.lang.String base64) 
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          ServicioAppValidarCertificadoDigitalRest

          +
          public ServicioAppValidarCertificadoDigitalRest()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          validarCertificadoDigital

          +
          @POST
          +@Produces("application/json")
          +@Consumes("application/x-www-form-urlencoded")
          +public java.lang.String validarCertificadoDigital​(@FormParam("pkcs12")
          +                                                  java.lang.String pkcs12,
          +                                                  @FormParam("password")
          +                                                  java.lang.String password,
          +                                                  @FormParam("base64")
          +                                                  java.lang.String base64)
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/rest/ServicioAppVerificarDocumentoRest.html b/docs/ec/gob/firmadigital/servicio/rest/ServicioAppVerificarDocumentoRest.html new file mode 100644 index 0000000..c113a81 --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/rest/ServicioAppVerificarDocumentoRest.html @@ -0,0 +1,318 @@ + + + + + +ServicioAppVerificarDocumentoRest + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class ServicioAppVerificarDocumentoRest

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • ec.gob.firmadigital.servicio.rest.ServicioAppVerificarDocumentoRest
      • +
      +
    • +
    +
    +
      +
    • +
      +
      @Path("/appverificardocumento")
      +public class ServicioAppVerificarDocumentoRest
      +extends java.lang.Object
      +
      REST Web Service
      +
    • +
    +
    +
    +
      +
    • + +
      + +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethodDescription
        java.lang.StringvalidarDocumento​(java.lang.String documento, + java.lang.String base64) 
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          ServicioAppVerificarDocumentoRest

          +
          public ServicioAppVerificarDocumentoRest()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          validarDocumento

          +
          @POST
          +@Produces("text/plain")
          +@Consumes("application/x-www-form-urlencoded")
          +public java.lang.String validarDocumento​(@FormParam("documento")
          +                                         java.lang.String documento,
          +                                         @FormParam("base64")
          +                                         java.lang.String base64)
          +                                  throws java.lang.Exception
          +
          +
          Throws:
          +
          java.lang.Exception
          +
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/rest/ServicioCertificadoRest.html b/docs/ec/gob/firmadigital/servicio/rest/ServicioCertificadoRest.html index e445207..b6e0580 100644 --- a/docs/ec/gob/firmadigital/servicio/rest/ServicioCertificadoRest.html +++ b/docs/ec/gob/firmadigital/servicio/rest/ServicioCertificadoRest.html @@ -1,64 +1,74 @@ - + - - -ServicioCertificadoRest (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioCertificadoRest + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.rest
    +

    Class ServicioCertificadoRest

      -
    • java.lang.Object
    • +
    • java.lang.Object
      • ec.gob.firmadigital.servicio.rest.ServicioCertificadoRest
      • @@ -109,15 +131,10 @@

        Class ServicioCertificad

        • -
          -
          @Path(value="/certificado")
          +
          @Path("/certificado")
           public class ServicioCertificadoRest
          -extends Object
          +extends java.lang.Object
          Este servicio permite verificar si un certificado está revocado.
          -
          -
          Author:
          -
          Ricardo Arguello
          -

    @@ -125,52 +142,61 @@

    Class ServicioCertificad @@ -178,12 +204,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -194,75 +221,72 @@

        ServicioCertificadoRest

    +
    +
      -
    • +
    • Method Detail

      - +
      • validarCertificado

        -
        @GET
        - @Path(value="/revocado/{serial}")
        - @Produces(value="text/plain")
        -public String validarCertificado(@PathParam(value="serial")
        -                                                                                                        BigInteger serial)
        +
        @GET
        +@Path("/revocado/{serial}")
        +@Produces("text/plain")
        +public java.lang.String validarCertificado​(@PathParam("serial")
        +                                           java.math.BigInteger serial)
      - +
      • validarFechaRevocado

        -
        @GET
        - @Path(value="/fechaRevocado/{serial}")
        - @Produces(value="text/plain")
        -public String validarFechaRevocado(@PathParam(value="serial")
        -                                                                                                               BigInteger serial)
        +
        @GET
        +@Path("/fechaRevocado/{serial}")
        +@Produces("text/plain")
        +public java.lang.String validarFechaRevocado​(@PathParam("serial")
        +                                             java.math.BigInteger serial)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/rest/ServicioDocumentoRest.html b/docs/ec/gob/firmadigital/servicio/rest/ServicioDocumentoRest.html index 4cc0dc5..180cf1c 100644 --- a/docs/ec/gob/firmadigital/servicio/rest/ServicioDocumentoRest.html +++ b/docs/ec/gob/firmadigital/servicio/rest/ServicioDocumentoRest.html @@ -1,64 +1,74 @@ - + - - -ServicioDocumentoRest (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioDocumentoRest + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.rest
    +

    Class ServicioDocumentoRest

      -
    • java.lang.Object
    • +
    • java.lang.Object
      • ec.gob.firmadigital.servicio.rest.ServicioDocumentoRest
      • @@ -109,16 +131,11 @@

        Class ServicioDocumentoRes

        • -
          -
          @Path(value="/documentos")
          +
          @Path("/documentos")
           public class ServicioDocumentoRest
          -extends Object
          +extends java.lang.Object
          Servicio REST para almacenar, actualizar y obtener documentos desde los sistemas transversales y comunicarse con aplicación firmadigital-api
          -
          -
          Author:
          -
          Ricardo Arguello
          -

    @@ -126,62 +143,73 @@

    Class ServicioDocumentoRes @@ -189,12 +217,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -205,24 +234,26 @@

        ServicioDocumentoRest

    +
    +
      -
    • +
    • Method Detail

      - +
      • crearDocumentos

        -
        @POST
        - @Consumes(value="application/json")
        - @Produces(value="text/plain")
        -public javax.ws.rs.core.Response crearDocumentos(@HeaderParam(value="X-API-KEY")
        -                                                                                                                           String apiKey,
        -                                                                                                                           String jsonParameter)
        +
        @POST
        +@Consumes("application/json")
        +@Produces("text/plain")
        +public javax.ws.rs.core.Response crearDocumentos​(@HeaderParam("X-API-KEY")
        +                                                 java.lang.String apiKey,
        +                                                 java.lang.String jsonParameter)
        Almacena varios documentos desde un Sistema Transversal. Ejemplo: @@ -237,17 +268,17 @@

        crearDocumentos

      - +
      • obtenerDocumentos

        -
        @GET
        - @Path(value="{token}")
        - @Produces(value="application/json")
        -public javax.ws.rs.core.Response obtenerDocumentos(@PathParam(value="token")
        -                                                                                                                     String token)
        +
        @GET
        +@Path("{token}")
        +@Produces("application/json")
        +public javax.ws.rs.core.Response obtenerDocumentos​(@PathParam("token")
        +                                                   java.lang.String token)
        Obtiene documentos mediante un token JWT.
        Parameters:
        @@ -257,57 +288,55 @@

        obtenerDocumentos

      - +
      • actualizarDocumentos

        -
        @PUT
        - @Path(value="{token}")
        - @Consumes(value="application/json")
        -public javax.ws.rs.core.Response actualizarDocumentos(@PathParam(value="token")
        -                                                                                                                        String token,
        -                                                                                                                        javax.json.JsonObject json)
        +
        @PUT
        +@Path("{token}")
        +@Consumes("application/x-www-form-urlencoded")
        +public javax.ws.rs.core.Response actualizarDocumentos​(@PathParam("token")
        +                                                      java.lang.String token,
        +                                                      @FormParam("json")
        +                                                      java.lang.String json,
        +                                                      @FormParam("base64")
        +                                                      java.lang.String base64)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/rest/ServicioEstadisticaDocumentosFirmadosRest.html b/docs/ec/gob/firmadigital/servicio/rest/ServicioEstadisticaDocumentosFirmadosRest.html index 27bbfde..64486c3 100644 --- a/docs/ec/gob/firmadigital/servicio/rest/ServicioEstadisticaDocumentosFirmadosRest.html +++ b/docs/ec/gob/firmadigital/servicio/rest/ServicioEstadisticaDocumentosFirmadosRest.html @@ -1,64 +1,74 @@ - + - - -ServicioEstadisticaDocumentosFirmadosRest (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioEstadisticaDocumentosFirmadosRest + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.rest
    +

    Class ServicioEstadisticaDocumentosFirmadosRest

      -
    • java.lang.Object
    • +
    • java.lang.Object
      • ec.gob.firmadigital.servicio.rest.ServicioEstadisticaDocumentosFirmadosRest
      • @@ -109,17 +131,12 @@

        Class

        • -
          -
          @Path(value="/estadisticadocumentosfirmados")
          +
          @Path("/estadisticadocumentosfirmados")
           public class ServicioEstadisticaDocumentosFirmadosRest
          -extends Object
          +extends java.lang.Object
          Buscar en una lista de URLs permitidos para utilizar como API. Esto permite federar la utilización de FirmaEC sobre otra infraestructura, consultando en una lista de servidores permitidos.
          -
          -
          Author:
          -
          Ricardo Arguello
          -

    @@ -127,48 +144,56 @@

    Class @@ -176,12 +201,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -192,63 +218,60 @@

        ServicioEstadisticaDocumentosFirmadosRest

    +
    +
      -
    • +
    • Method Detail

      - +
      • buscarPorFechaDesdeFechaHasta

        -
        @GET
        - @Path(value="{json}")
        - @Consumes(value="application/json")
        - @Produces(value="text/plain")
        -public String buscarPorFechaDesdeFechaHasta(@PathParam(value="json")
        -                                                                                                                                            String jsonParameter)
        +
        @GET
        +@Path("{json}")
        +@Consumes("application/json")
        +@Produces("text/plain")
        +public java.lang.String buscarPorFechaDesdeFechaHasta​(@PathParam("json")
        +                                                      java.lang.String jsonParameter)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/rest/ServicioEstadisticaUsuariosRest.html b/docs/ec/gob/firmadigital/servicio/rest/ServicioEstadisticaUsuariosRest.html index bc18465..64b36d4 100644 --- a/docs/ec/gob/firmadigital/servicio/rest/ServicioEstadisticaUsuariosRest.html +++ b/docs/ec/gob/firmadigital/servicio/rest/ServicioEstadisticaUsuariosRest.html @@ -1,64 +1,74 @@ - + - - -ServicioEstadisticaUsuariosRest (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioEstadisticaUsuariosRest + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.rest
    +

    Class ServicioEstadisticaUsuariosRest

      -
    • java.lang.Object
    • +
    • java.lang.Object
      • ec.gob.firmadigital.servicio.rest.ServicioEstadisticaUsuariosRest
      • @@ -109,17 +131,12 @@

        Class ServicioEs

        • -
          -
          @Path(value="/estadisticausuarios")
          +
          @Path("/estadisticausuarios")
           public class ServicioEstadisticaUsuariosRest
          -extends Object
          +extends java.lang.Object
          Buscar en una lista de URLs permitidos para utilizar como API. Esto permite federar la utilización de FirmaEC sobre otra infraestructura, consultando en una lista de servidores permitidos.
          -
          -
          Author:
          -
          Ricardo Arguello
          -

    @@ -127,48 +144,56 @@

    Class ServicioEs @@ -176,12 +201,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -192,63 +218,60 @@

        ServicioEstadisticaUsuariosRest

    +
    +
      -
    • +
    • Method Detail

      - +
      • buscarPorFechaDesdeFechaHasta

        -
        @GET
        - @Path(value="{json}")
        - @Consumes(value="application/json")
        - @Produces(value="text/plain")
        -public String buscarPorFechaDesdeFechaHasta(@PathParam(value="json")
        -                                                                                                                                            String jsonParameter)
        +
        @GET
        +@Path("{json}")
        +@Consumes("application/json")
        +@Produces("text/plain")
        +public java.lang.String buscarPorFechaDesdeFechaHasta​(@PathParam("json")
        +                                                      java.lang.String jsonParameter)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/rest/ServicioValidacionPdfRest.html b/docs/ec/gob/firmadigital/servicio/rest/ServicioValidacionPdfRest.html index 8fb194e..c5e832a 100644 --- a/docs/ec/gob/firmadigital/servicio/rest/ServicioValidacionPdfRest.html +++ b/docs/ec/gob/firmadigital/servicio/rest/ServicioValidacionPdfRest.html @@ -1,64 +1,74 @@ - + - - -ServicioValidacionPdfRest (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioValidacionPdfRest + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.rest
    +

    Class ServicioValidacionPdfRest

      -
    • java.lang.Object
    • +
    • java.lang.Object
      • ec.gob.firmadigital.servicio.rest.ServicioValidacionPdfRest
      • @@ -109,10 +131,9 @@

        Class ServicioValidaci

        • -
          -
          @Path(value="/validacionavanzadapdf")
          +
          @Path("/validacionavanzadapdf")
           public class ServicioValidacionPdfRest
          -extends Object
          +extends java.lang.Object

    @@ -120,48 +141,56 @@

    Class ServicioValidaci @@ -169,12 +198,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -185,66 +215,63 @@

        ServicioValidacionPdfRest

    +
    +
      -
    • +
    • Method Detail

      - +
      • verificarPdf

        -
        @POST
        - @Consumes(value="text/plain")
        - @Produces(value="application/json")
        -public javax.ws.rs.core.Response verificarPdf(String archivoBase64)
        -                                                                                                                 throws Exception
        +
        @POST
        +@Consumes("text/plain")
        +@Produces("application/json")
        +public javax.ws.rs.core.Response verificarPdf​(java.lang.String archivoBase64)
        +                                       throws java.lang.Exception
        Throws:
        -
        Exception
        +
        java.lang.Exception
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/rest/ServicioVersionRest.html b/docs/ec/gob/firmadigital/servicio/rest/ServicioVersionRest.html new file mode 100644 index 0000000..9116504 --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/rest/ServicioVersionRest.html @@ -0,0 +1,310 @@ + + + + + +ServicioVersionRest + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class ServicioVersionRest

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • ec.gob.firmadigital.servicio.rest.ServicioVersionRest
      • +
      +
    • +
    +
    +
      +
    • +
      +
      @Path("/version")
      +public class ServicioVersionRest
      +extends java.lang.Object
      +
      Servicio REST para verificar Versión.
      +
    • +
    +
    +
    +
      +
    • + +
      + +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethodDescription
        java.lang.StringbuscarVersion​(java.lang.String base64) 
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          ServicioVersionRest

          +
          public ServicioVersionRest()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          buscarVersion

          +
          @POST
          +@Consumes("application/x-www-form-urlencoded")
          +@Produces("text/plain")
          +public java.lang.String buscarVersion​(@FormParam("base64")
          +                                      java.lang.String base64)
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/rest/class-use/JAXRSConfiguration.html b/docs/ec/gob/firmadigital/servicio/rest/class-use/JAXRSConfiguration.html deleted file mode 100644 index 3e25e8b..0000000 --- a/docs/ec/gob/firmadigital/servicio/rest/class-use/JAXRSConfiguration.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.rest.JAXRSConfiguration (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - - - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.rest.JAXRSConfiguration

    -
    -
    No usage of ec.gob.firmadigital.servicio.rest.JAXRSConfiguration
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioApiUrlRest.html b/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioApiUrlRest.html deleted file mode 100644 index a7ae1db..0000000 --- a/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioApiUrlRest.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.rest.ServicioApiUrlRest (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - - - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.rest.ServicioApiUrlRest

    -
    -
    No usage of ec.gob.firmadigital.servicio.rest.ServicioApiUrlRest
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioCertificadoRest.html b/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioCertificadoRest.html deleted file mode 100644 index 7b2cedd..0000000 --- a/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioCertificadoRest.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.rest.ServicioCertificadoRest (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - - - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.rest.ServicioCertificadoRest

    -
    -
    No usage of ec.gob.firmadigital.servicio.rest.ServicioCertificadoRest
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioDocumentoRest.html b/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioDocumentoRest.html deleted file mode 100644 index 4c67bf7..0000000 --- a/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioDocumentoRest.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.rest.ServicioDocumentoRest (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - - - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.rest.ServicioDocumentoRest

    -
    -
    No usage of ec.gob.firmadigital.servicio.rest.ServicioDocumentoRest
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioEstadisticaDocumentosFirmadosRest.html b/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioEstadisticaDocumentosFirmadosRest.html deleted file mode 100644 index d255343..0000000 --- a/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioEstadisticaDocumentosFirmadosRest.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.rest.ServicioEstadisticaDocumentosFirmadosRest (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - - - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.rest.ServicioEstadisticaDocumentosFirmadosRest

    -
    -
    No usage of ec.gob.firmadigital.servicio.rest.ServicioEstadisticaDocumentosFirmadosRest
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioEstadisticaUsuariosRest.html b/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioEstadisticaUsuariosRest.html deleted file mode 100644 index 31ccf95..0000000 --- a/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioEstadisticaUsuariosRest.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.rest.ServicioEstadisticaUsuariosRest (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - - - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.rest.ServicioEstadisticaUsuariosRest

    -
    -
    No usage of ec.gob.firmadigital.servicio.rest.ServicioEstadisticaUsuariosRest
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioValidacionPdfRest.html b/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioValidacionPdfRest.html deleted file mode 100644 index 165d926..0000000 --- a/docs/ec/gob/firmadigital/servicio/rest/class-use/ServicioValidacionPdfRest.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.rest.ServicioValidacionPdfRest (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - - - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.rest.ServicioValidacionPdfRest

    -
    -
    No usage of ec.gob.firmadigital.servicio.rest.ServicioValidacionPdfRest
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/rest/package-frame.html b/docs/ec/gob/firmadigital/servicio/rest/package-frame.html deleted file mode 100644 index 98271f4..0000000 --- a/docs/ec/gob/firmadigital/servicio/rest/package-frame.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - -ec.gob.firmadigital.servicio.rest (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - -

    ec.gob.firmadigital.servicio.rest

    -
    -

    Classes

    - -
    - - diff --git a/docs/ec/gob/firmadigital/servicio/rest/package-summary.html b/docs/ec/gob/firmadigital/servicio/rest/package-summary.html index 8ffc682..6a99eac 100644 --- a/docs/ec/gob/firmadigital/servicio/rest/package-summary.html +++ b/docs/ec/gob/firmadigital/servicio/rest/package-summary.html @@ -1,58 +1,68 @@ - + - - -ec.gob.firmadigital.servicio.rest (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ec.gob.firmadigital.servicio.rest + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +

    Package ec.gob.firmadigital.servicio.rest

    +
    + diff --git a/docs/ec/gob/firmadigital/servicio/rest/package-tree.html b/docs/ec/gob/firmadigital/servicio/rest/package-tree.html index 4dc3c77..e1507a2 100644 --- a/docs/ec/gob/firmadigital/servicio/rest/package-tree.html +++ b/docs/ec/gob/firmadigital/servicio/rest/package-tree.html @@ -1,58 +1,68 @@ - + - - -ec.gob.firmadigital.servicio.rest Class Hierarchy (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ec.gob.firmadigital.servicio.rest Class Hierarchy + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +

    Hierarchy For Package ec.gob.firmadigital.servicio.rest

    Package Hierarchies: @@ -78,55 +100,56 @@

    Hierarchy For Package ec.gob.firmadigital.servicio.rest

    +

    Class Hierarchy

    +
    +
    + diff --git a/docs/ec/gob/firmadigital/servicio/rest/package-use.html b/docs/ec/gob/firmadigital/servicio/rest/package-use.html deleted file mode 100644 index c79a644..0000000 --- a/docs/ec/gob/firmadigital/servicio/rest/package-use.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Package ec.gob.firmadigital.servicio.rest (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - - - - - - -
    - - -
    -

    Uses of Package
    ec.gob.firmadigital.servicio.rest

    -
    -
    No usage of ec.gob.firmadigital.servicio.rest
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/token/ServicioToken.html b/docs/ec/gob/firmadigital/servicio/token/ServicioToken.html index 341ec53..6f44e56 100644 --- a/docs/ec/gob/firmadigital/servicio/token/ServicioToken.html +++ b/docs/ec/gob/firmadigital/servicio/token/ServicioToken.html @@ -1,64 +1,74 @@ - + - - -ServicioToken (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioToken + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.token
    +

    Interface ServicioToken

    @@ -102,17 +124,12 @@

    Interface ServicioToken

  • All Known Implementing Classes:
    -
    ServicioTokenJwt
    +
    ServicioTokenJwt

    -
    public interface ServicioToken
    Servicio para gestionar tokens que permiten una comunicación confiable con una aplicación externa.
    -
    -
    Author:
    -
    Ricardo Arguello
    -
  • @@ -120,33 +137,38 @@

    Interface ServicioToken

    @@ -161,18 +184,19 @@

    Method Summary

    +
    + diff --git a/docs/ec/gob/firmadigital/servicio/token/TokenExpiradoException.html b/docs/ec/gob/firmadigital/servicio/token/TokenExpiradoException.html index 9a4682d..227ca4a 100644 --- a/docs/ec/gob/firmadigital/servicio/token/TokenExpiradoException.html +++ b/docs/ec/gob/firmadigital/servicio/token/TokenExpiradoException.html @@ -1,58 +1,68 @@ - + - - -TokenExpiradoException (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +TokenExpiradoException + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.token
    +

    Class TokenExpiradoException

    @@ -189,12 +217,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -203,71 +232,66 @@

        TokenExpiradoException

        public TokenExpiradoException()
      - +
      • TokenExpiradoException

        -
        public TokenExpiradoException(String message)
        +
        public TokenExpiradoException​(java.lang.String message)
      - +
      • TokenExpiradoException

        -
        public TokenExpiradoException(String message,
        -                              Throwable cause)
        +
        public TokenExpiradoException​(java.lang.String message,
        +                              java.lang.Throwable cause)
      - +
      • TokenExpiradoException

        -
        public TokenExpiradoException(Throwable cause)
        +
        public TokenExpiradoException​(java.lang.Throwable cause)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/token/TokenInvalidoException.html b/docs/ec/gob/firmadigital/servicio/token/TokenInvalidoException.html index 4177fb8..5406d3e 100644 --- a/docs/ec/gob/firmadigital/servicio/token/TokenInvalidoException.html +++ b/docs/ec/gob/firmadigital/servicio/token/TokenInvalidoException.html @@ -1,58 +1,68 @@ - + - - -TokenInvalidoException (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +TokenInvalidoException + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.token
    +

    Class TokenInvalidoException

    @@ -189,12 +217,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -203,71 +232,66 @@

        TokenInvalidoException

        public TokenInvalidoException()
      - +
      • TokenInvalidoException

        -
        public TokenInvalidoException(String message)
        +
        public TokenInvalidoException​(java.lang.String message)
      - +
      • TokenInvalidoException

        -
        public TokenInvalidoException(String message,
        -                              Throwable cause)
        +
        public TokenInvalidoException​(java.lang.String message,
        +                              java.lang.Throwable cause)
      - +
      • TokenInvalidoException

        -
        public TokenInvalidoException(Throwable cause)
        +
        public TokenInvalidoException​(java.lang.Throwable cause)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/token/TokenTimeout.html b/docs/ec/gob/firmadigital/servicio/token/TokenTimeout.html index 735eeda..bcdc997 100644 --- a/docs/ec/gob/firmadigital/servicio/token/TokenTimeout.html +++ b/docs/ec/gob/firmadigital/servicio/token/TokenTimeout.html @@ -1,64 +1,74 @@ - + - - -TokenTimeout (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +TokenTimeout + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.token
    +

    Class TokenTimeout

      -
    • java.lang.Object
    • +
    • java.lang.Object
      • ec.gob.firmadigital.servicio.token.TokenTimeout
      • @@ -109,14 +131,9 @@

        Class TokenTimeout


        • -
          public class TokenTimeout
          -extends Object
          +extends java.lang.Object
          Timeout para un token.
          -
          -
          Author:
          -
          Ricardo Arguello
          -
    @@ -124,85 +141,106 @@

    Class TokenTimeout

    @@ -210,48 +248,68 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Field Detail

      - +
      • -

        DEFAULT_TIMEOUT

        -
        public static final int DEFAULT_TIMEOUT
        -
        Minutos antes de que el Token expire.
        +

        DEFAULT_TIMEOUT_MINUTES

        +
        public static final int DEFAULT_TIMEOUT_MINUTES
        +
        Minutos antes de que el Token expire. 5 minutos. También representa el número de munutos que + pasan antes de que se eliminen los documentos que no han sido firmados de la BD por 5 + minutos.
        See Also:
        -
        Constant Field Values
        +
        Constant Field Values
      - + -
        +
        • DEFAULT_TIMEOUT_HOURS

          public static final int DEFAULT_TIMEOUT_HOURS
          -
          Horas antes de que el Token expire.
          +
          Horas antes de que el Token expire. 336 horas == 2 semanas. También representa el número de + horas que pasan antes de que se eliminen los documentos que no han sido firmados de la BD por + n horas.
          See Also:
          Constant Field Values
        + + + +
          +
        • +

          IS_PRODUCTION

          +
          public static final java.lang.Boolean IS_PRODUCTION
          +
          Indica si es el ambiente de producción o de pruebas. Es utilizado par definir el tiempo en + que se elimina documentos sin firmar y para establecer el tiempo de expiración del token. + true = es ambiente produccion + false = es ambiente de pruebas
          +
        • +
      +
    +
      -
    • +
    • Constructor Detail

      - +
        @@ -262,20 +320,22 @@

        TokenTimeout

    +
    +
      -
    • +
    • Method Detail

      - +
      • addMinutes

        -
        public static Date addMinutes(Date date,
        -                              int minutes)
        +
        public static java.util.Date addMinutes​(java.util.Date date,
        +                                        int minutes)
        Agregar una cantidad de minutos a una hora dada.
        Parameters:
        @@ -285,14 +345,14 @@

        addMinutes

      - +
      • addHours

        -
        public static Date addHours(Date date,
        -                            int hours)
        +
        public static java.util.Date addHours​(java.util.Date date,
        +                                      int hours)
        Agregar una cantidad de horas a una hora dada.
        Parameters:
        @@ -304,41 +364,36 @@

        addHours

    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/token/class-use/ServicioToken.html b/docs/ec/gob/firmadigital/servicio/token/class-use/ServicioToken.html deleted file mode 100644 index b4eecd1..0000000 --- a/docs/ec/gob/firmadigital/servicio/token/class-use/ServicioToken.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - -Uses of Interface ec.gob.firmadigital.servicio.token.ServicioToken (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - - - - - - -
    - - -
    -

    Uses of Interface
    ec.gob.firmadigital.servicio.token.ServicioToken

    -
    -
    - -
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/token/class-use/TokenExpiradoException.html b/docs/ec/gob/firmadigital/servicio/token/class-use/TokenExpiradoException.html deleted file mode 100644 index 93ff18e..0000000 --- a/docs/ec/gob/firmadigital/servicio/token/class-use/TokenExpiradoException.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.token.TokenExpiradoException (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - - - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.token.TokenExpiradoException

    -
    -
    - -
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/token/class-use/TokenInvalidoException.html b/docs/ec/gob/firmadigital/servicio/token/class-use/TokenInvalidoException.html deleted file mode 100644 index 1e2a148..0000000 --- a/docs/ec/gob/firmadigital/servicio/token/class-use/TokenInvalidoException.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.token.TokenInvalidoException (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - - - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.token.TokenInvalidoException

    -
    -
    - -
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/token/class-use/TokenTimeout.html b/docs/ec/gob/firmadigital/servicio/token/class-use/TokenTimeout.html deleted file mode 100644 index f26b970..0000000 --- a/docs/ec/gob/firmadigital/servicio/token/class-use/TokenTimeout.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.token.TokenTimeout (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - - - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.token.TokenTimeout

    -
    -
    No usage of ec.gob.firmadigital.servicio.token.TokenTimeout
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/token/jwt/ServicioTokenJwt.html b/docs/ec/gob/firmadigital/servicio/token/jwt/ServicioTokenJwt.html index f6263d3..16101c2 100644 --- a/docs/ec/gob/firmadigital/servicio/token/jwt/ServicioTokenJwt.html +++ b/docs/ec/gob/firmadigital/servicio/token/jwt/ServicioTokenJwt.html @@ -1,64 +1,74 @@ - + - - -ServicioTokenJwt (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ServicioTokenJwt + + + + + + + + +var pathtoroot = "../../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.token.jwt
    +

    Class ServicioTokenJwt

      -
    • java.lang.Object
    • +
    • java.lang.Object
      • ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      • @@ -110,13 +132,12 @@

        Class ServicioTokenJwt

      • All Implemented Interfaces:
        -
        ServicioToken
        +
        ServicioToken

        -
        public class ServicioTokenJwt
        -extends Object
        -implements ServicioToken
        +extends java.lang.Object +implements ServicioToken
        Servicio para trabajar con tokens tipo JWT (https://jwt.io). La llave secreta para firmar los tokens se genera al iniciar la aplicacion. @@ -125,13 +146,9 @@

        Class ServicioTokenJwt

            
        -     
        +     
            
          
        -
        -
        Author:
        -
        Ricardo Arguello
        -
    @@ -139,91 +156,106 @@

    Class ServicioTokenJwt

    @@ -231,12 +263,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -247,34 +280,36 @@

        ServicioTokenJwt

    +
    +
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/token/jwt/class-use/ServicioTokenJwt.html b/docs/ec/gob/firmadigital/servicio/token/jwt/class-use/ServicioTokenJwt.html deleted file mode 100644 index 671c8ea..0000000 --- a/docs/ec/gob/firmadigital/servicio/token/jwt/class-use/ServicioTokenJwt.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
    - - - - - - - -
    - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt

    -
    -
    No usage of ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
    - -
    - - - - - - - -
    - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/token/jwt/package-frame.html b/docs/ec/gob/firmadigital/servicio/token/jwt/package-frame.html deleted file mode 100644 index 053114a..0000000 --- a/docs/ec/gob/firmadigital/servicio/token/jwt/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -ec.gob.firmadigital.servicio.token.jwt (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - -

    ec.gob.firmadigital.servicio.token.jwt

    -
    -

    Classes

    - -
    - - diff --git a/docs/ec/gob/firmadigital/servicio/token/jwt/package-summary.html b/docs/ec/gob/firmadigital/servicio/token/jwt/package-summary.html index 6a29877..e79ccee 100644 --- a/docs/ec/gob/firmadigital/servicio/token/jwt/package-summary.html +++ b/docs/ec/gob/firmadigital/servicio/token/jwt/package-summary.html @@ -1,58 +1,68 @@ - + - - -ec.gob.firmadigital.servicio.token.jwt (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ec.gob.firmadigital.servicio.token.jwt + + + + + + + + +var pathtoroot = "../../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +

    Package ec.gob.firmadigital.servicio.token.jwt

    • - +
      @@ -84,7 +106,7 @@

      Package ec.gob.firmadigital.servicio.toke

      - + @@ -94,36 +116,30 @@

      Package ec.gob.firmadigital.servicio.toke + + diff --git a/docs/ec/gob/firmadigital/servicio/token/jwt/package-tree.html b/docs/ec/gob/firmadigital/servicio/token/jwt/package-tree.html index f53954f..ddc05da 100644 --- a/docs/ec/gob/firmadigital/servicio/token/jwt/package-tree.html +++ b/docs/ec/gob/firmadigital/servicio/token/jwt/package-tree.html @@ -1,58 +1,68 @@ - + - - -ec.gob.firmadigital.servicio.token.jwt Class Hierarchy (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ec.gob.firmadigital.servicio.token.jwt Class Hierarchy + + + + + + + + +var pathtoroot = "../../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
      + +
      +

      Hierarchy For Package ec.gob.firmadigital.servicio.token.jwt

      Package Hierarchies: @@ -78,45 +100,41 @@

      Hierarchy For Package ec.gob.firmadigital.servicio.token.jwt

      +

      Class Hierarchy

      +
      +
      + diff --git a/docs/ec/gob/firmadigital/servicio/token/jwt/package-use.html b/docs/ec/gob/firmadigital/servicio/token/jwt/package-use.html deleted file mode 100644 index c480305..0000000 --- a/docs/ec/gob/firmadigital/servicio/token/jwt/package-use.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Package ec.gob.firmadigital.servicio.token.jwt (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - - - - -
      -

      Uses of Package
      ec.gob.firmadigital.servicio.token.jwt

      -
      -
      No usage of ec.gob.firmadigital.servicio.token.jwt
      - - - - -

      Copyright © 2021. All rights reserved.

      - - diff --git a/docs/ec/gob/firmadigital/servicio/token/package-frame.html b/docs/ec/gob/firmadigital/servicio/token/package-frame.html deleted file mode 100644 index f90ef8e..0000000 --- a/docs/ec/gob/firmadigital/servicio/token/package-frame.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - -ec.gob.firmadigital.servicio.token (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - -

      ec.gob.firmadigital.servicio.token

      -
      -

      Interfaces

      - -

      Classes

      - -

      Exceptions

      - -
      - - diff --git a/docs/ec/gob/firmadigital/servicio/token/package-summary.html b/docs/ec/gob/firmadigital/servicio/token/package-summary.html index 7874296..b1c0263 100644 --- a/docs/ec/gob/firmadigital/servicio/token/package-summary.html +++ b/docs/ec/gob/firmadigital/servicio/token/package-summary.html @@ -1,58 +1,68 @@ - + - - -ec.gob.firmadigital.servicio.token (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ec.gob.firmadigital.servicio.token + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
      + +
      +

      Package ec.gob.firmadigital.servicio.token

      • -
      Class Summary 
      Class
      ServicioTokenJwtServicioTokenJwt
      Servicio para trabajar con tokens tipo JWT (https://jwt.io).
      +
      @@ -84,7 +106,7 @@

      Package ec.gob.firmadigital.servicio.toke

      - +
      Interface Summary 
      Interface
      ServicioTokenServicioToken
      Servicio para gestionar tokens que permiten una comunicación confiable con una aplicación externa.
      @@ -94,7 +116,7 @@

      Package ec.gob.firmadigital.servicio.toke

    • - +
      @@ -102,7 +124,7 @@

      Package ec.gob.firmadigital.servicio.toke

      - + @@ -111,7 +133,7 @@

      Package ec.gob.firmadigital.servicio.toke

      Class Summary 
      Class
      TokenTimeoutTokenTimeout
      Timeout para un token.
    • - +
      @@ -119,13 +141,13 @@

      Package ec.gob.firmadigital.servicio.toke

      - + - + @@ -135,36 +157,30 @@

      Package ec.gob.firmadigital.servicio.toke + + diff --git a/docs/ec/gob/firmadigital/servicio/token/package-tree.html b/docs/ec/gob/firmadigital/servicio/token/package-tree.html index 62417e1..d2cee55 100644 --- a/docs/ec/gob/firmadigital/servicio/token/package-tree.html +++ b/docs/ec/gob/firmadigital/servicio/token/package-tree.html @@ -1,58 +1,68 @@ - + - - -ec.gob.firmadigital.servicio.token Class Hierarchy (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ec.gob.firmadigital.servicio.token Class Hierarchy + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
      + +
      +

      Hierarchy For Package ec.gob.firmadigital.servicio.token

      Package Hierarchies: @@ -78,59 +100,57 @@

      Hierarchy For Package ec.gob.firmadigital.servicio.token

      +

      Class Hierarchy

      +
      +

      Interface Hierarchy

      +
      +
      + diff --git a/docs/ec/gob/firmadigital/servicio/token/package-use.html b/docs/ec/gob/firmadigital/servicio/token/package-use.html deleted file mode 100644 index 212c9ec..0000000 --- a/docs/ec/gob/firmadigital/servicio/token/package-use.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - -Uses of Package ec.gob.firmadigital.servicio.token (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - - - - -
      -

      Uses of Package
      ec.gob.firmadigital.servicio.token

      -
      -
      -
        -
      • -

      Exception Summary 
      Exception
      TokenExpiradoExceptionTokenExpiradoException
      Excepcion lanzada en caso de que el token haya expirado.
      TokenInvalidoExceptionTokenInvalidoException
      Excepcion lanzada en caso de que el token no sea valido.
      - - - - - - - - - - - - - - - - - - - -
      Packages that use ec.gob.firmadigital.servicio.token 
      PackageDescription
      ec.gob.firmadigital.servicio 
      ec.gob.firmadigital.servicio.token 
      ec.gob.firmadigital.servicio.token.jwt 
      -
    • -
    • - - - - - - - - - - - - - - - -
      Classes in ec.gob.firmadigital.servicio.token used by ec.gob.firmadigital.servicio 
      Class and Description
      TokenExpiradoException -
      Excepcion lanzada en caso de que el token haya expirado.
      -
      TokenInvalidoException -
      Excepcion lanzada en caso de que el token no sea valido.
      -
      -
    • -
    • - - - - - - - - - - - - - - - -
      Classes in ec.gob.firmadigital.servicio.token used by ec.gob.firmadigital.servicio.token 
      Class and Description
      TokenExpiradoException -
      Excepcion lanzada en caso de que el token haya expirado.
      -
      TokenInvalidoException -
      Excepcion lanzada en caso de que el token no sea valido.
      -
      -
    • -
    • - - - - - - - - - - - - - - - - - - -
      Classes in ec.gob.firmadigital.servicio.token used by ec.gob.firmadigital.servicio.token.jwt 
      Class and Description
      ServicioToken -
      Servicio para gestionar tokens que permiten una comunicación confiable con - una aplicación externa.
      -
      TokenExpiradoException -
      Excepcion lanzada en caso de que el token haya expirado.
      -
      TokenInvalidoException -
      Excepcion lanzada en caso de que el token no sea valido.
      -
      -
    • -
    -
    - - - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/util/Base64InvalidoException.html b/docs/ec/gob/firmadigital/servicio/util/Base64InvalidoException.html index c6e44a6..660ed48 100644 --- a/docs/ec/gob/firmadigital/servicio/util/Base64InvalidoException.html +++ b/docs/ec/gob/firmadigital/servicio/util/Base64InvalidoException.html @@ -1,58 +1,68 @@ - + - - -Base64InvalidoException (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +Base64InvalidoException + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.util
    +

    Class Base64InvalidoException

    @@ -180,57 +205,53 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
      • Base64InvalidoException

        -
        public Base64InvalidoException(IllegalArgumentException cause)
        +
        public Base64InvalidoException​(java.lang.IllegalArgumentException cause)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/util/Base64Util.html b/docs/ec/gob/firmadigital/servicio/util/Base64Util.html index 3632b00..fe68cf3 100644 --- a/docs/ec/gob/firmadigital/servicio/util/Base64Util.html +++ b/docs/ec/gob/firmadigital/servicio/util/Base64Util.html @@ -1,64 +1,74 @@ - + - - -Base64Util (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +Base64Util + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.util
    +

    Class Base64Util

      -
    • java.lang.Object
    • +
    • java.lang.Object
      • ec.gob.firmadigital.servicio.util.Base64Util
      • @@ -109,14 +131,9 @@

        Class Base64Util


        • -
          public class Base64Util
          -extends Object
          +extends java.lang.Object
          Clase utilitaria para procesar formato Base64.
          -
          -
          Author:
          -
          Ricardo Arguello
          -
    @@ -124,52 +141,61 @@

    Class Base64Util

    @@ -177,12 +203,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -193,72 +220,69 @@

        Base64Util

    +
    +
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/util/FileUtil.html b/docs/ec/gob/firmadigital/servicio/util/FileUtil.html index 0c96a5b..bca9108 100644 --- a/docs/ec/gob/firmadigital/servicio/util/FileUtil.html +++ b/docs/ec/gob/firmadigital/servicio/util/FileUtil.html @@ -1,64 +1,74 @@ - + - - -FileUtil (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +FileUtil + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +
    -
    ec.gob.firmadigital.servicio.util
    +

    Class FileUtil

      -
    • java.lang.Object
    • +
    • java.lang.Object
      • ec.gob.firmadigital.servicio.util.FileUtil
      • @@ -109,13 +131,8 @@

        Class FileUtil


        • -
          public class FileUtil
          -extends Object
          -
          -
          Author:
          -
          bolivar.murillo msp
          -
          +extends java.lang.Object
    @@ -123,52 +140,61 @@

    Class FileUtil

    @@ -176,12 +202,13 @@

    Methods inherited from class java.lang.
  • +
      -
    • +
    • Constructor Detail

      - +
        @@ -192,67 +219,64 @@

        FileUtil

    +
    +
      -
    • +
    • Method Detail

      - +
      • getMimeType

        -
        public static String getMimeType(byte[] data)
        +
        public static java.lang.String getMimeType​(byte[] data)
      - +
      • hashMD5

        -
        public static String hashMD5(String texto)
        +
        public static java.lang.String hashMD5​(java.lang.String texto)
    +
  • +

    + diff --git a/docs/ec/gob/firmadigital/servicio/util/FirmaDigital.html b/docs/ec/gob/firmadigital/servicio/util/FirmaDigital.html new file mode 100644 index 0000000..9379047 --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/util/FirmaDigital.html @@ -0,0 +1,412 @@ + + + + + +FirmaDigital + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class FirmaDigital

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • ec.gob.firmadigital.servicio.util.FirmaDigital
      • +
      +
    • +
    +
    +
      +
    • +
      +
      public class FirmaDigital
      +extends java.lang.Object
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Summary

        + + + + + + + + + + +
        Constructors 
        ConstructorDescription
        FirmaDigital() 
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethodDescription
        byte[]firmarPDF​(java.security.KeyStore keyStore, + java.lang.String alias, + byte[] docByteArry, + char[] keyStorePassword, + java.util.Properties properties, + java.lang.String api, + java.lang.String base64) 
        byte[]firmarXML​(java.security.KeyStore keyStore, + java.lang.String alias, + byte[] docByteArry, + char[] keyStorePassword, + java.util.Properties properties, + java.lang.String api, + java.lang.String base64) +
        Firmar un documento XML usando un KeyStore y una clave.
        +
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          FirmaDigital

          +
          public FirmaDigital()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          firmarPDF

          +
          public byte[] firmarPDF​(java.security.KeyStore keyStore,
          +                        java.lang.String alias,
          +                        byte[] docByteArry,
          +                        char[] keyStorePassword,
          +                        java.util.Properties properties,
          +                        java.lang.String api,
          +                        java.lang.String base64)
          +                 throws com.itextpdf.kernel.crypto.BadPasswordException,
          +                        java.security.InvalidKeyException,
          +                        io.rubrica.exceptions.EntidadCertificadoraNoValidaException,
          +                        io.rubrica.exceptions.HoraServidorException,
          +                        java.security.UnrecoverableKeyException,
          +                        java.security.KeyStoreException,
          +                        io.rubrica.exceptions.CertificadoInvalidoException,
          +                        java.io.IOException,
          +                        java.security.NoSuchAlgorithmException,
          +                        io.rubrica.exceptions.RubricaException,
          +                        io.rubrica.exceptions.CertificadoInvalidoException,
          +                        io.rubrica.exceptions.SignatureVerificationException,
          +                        io.rubrica.exceptions.DocumentoException,
          +                        io.rubrica.exceptions.ConexionException
          +
          +
          Throws:
          +
          com.itextpdf.kernel.crypto.BadPasswordException
          +
          java.security.InvalidKeyException
          +
          io.rubrica.exceptions.EntidadCertificadoraNoValidaException
          +
          io.rubrica.exceptions.HoraServidorException
          +
          java.security.UnrecoverableKeyException
          +
          java.security.KeyStoreException
          +
          io.rubrica.exceptions.CertificadoInvalidoException
          +
          java.io.IOException
          +
          java.security.NoSuchAlgorithmException
          +
          io.rubrica.exceptions.RubricaException
          +
          io.rubrica.exceptions.SignatureVerificationException
          +
          io.rubrica.exceptions.DocumentoException
          +
          io.rubrica.exceptions.ConexionException
          +
          +
        • +
        + + + +
          +
        • +

          firmarXML

          +
          public byte[] firmarXML​(java.security.KeyStore keyStore,
          +                        java.lang.String alias,
          +                        byte[] docByteArry,
          +                        char[] keyStorePassword,
          +                        java.util.Properties properties,
          +                        java.lang.String api,
          +                        java.lang.String base64)
          +                 throws com.itextpdf.kernel.crypto.BadPasswordException,
          +                        java.security.InvalidKeyException,
          +                        io.rubrica.exceptions.EntidadCertificadoraNoValidaException,
          +                        io.rubrica.exceptions.HoraServidorException,
          +                        java.security.UnrecoverableKeyException,
          +                        java.security.KeyStoreException,
          +                        io.rubrica.exceptions.CertificadoInvalidoException,
          +                        java.io.IOException,
          +                        java.security.NoSuchAlgorithmException,
          +                        io.rubrica.exceptions.RubricaException,
          +                        io.rubrica.exceptions.CertificadoInvalidoException,
          +                        io.rubrica.exceptions.SignatureVerificationException,
          +                        io.rubrica.exceptions.ConexionException
          +
          Firmar un documento XML usando un KeyStore y una clave.
          +
          +
          Parameters:
          +
          keyStore -
          +
          alias -
          +
          docByteArry -
          +
          keyStorePassword -
          +
          properties -
          +
          api -
          +
          base64 -
          +
          Returns:
          +
          Throws:
          +
          java.security.InvalidKeyException
          +
          io.rubrica.exceptions.EntidadCertificadoraNoValidaException
          +
          io.rubrica.exceptions.HoraServidorException
          +
          java.security.UnrecoverableKeyException
          +
          java.security.KeyStoreException
          +
          io.rubrica.exceptions.CertificadoInvalidoException
          +
          java.io.IOException
          +
          java.security.NoSuchAlgorithmException
          +
          io.rubrica.exceptions.RubricaException
          +
          io.rubrica.exceptions.SignatureVerificationException
          +
          com.itextpdf.kernel.crypto.BadPasswordException
          +
          io.rubrica.exceptions.ConexionException
          +
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/util/JsonProcessor.html b/docs/ec/gob/firmadigital/servicio/util/JsonProcessor.html new file mode 100644 index 0000000..8b724c0 --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/util/JsonProcessor.html @@ -0,0 +1,375 @@ + + + + + +JsonProcessor + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class JsonProcessor

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • ec.gob.firmadigital.servicio.util.JsonProcessor
      • +
      +
    • +
    +
    +
      +
    • +
      +
      public class JsonProcessor
      +extends java.lang.Object
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Summary

        + + + + + + + + + + +
        Constructors 
        ConstructorDescription
        JsonProcessor() 
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        All Methods Static Methods Concrete Methods 
        Modifier and TypeMethodDescription
        static java.lang.StringbuildJson​(java.util.Map<java.lang.Long,​byte[]> documentos, + java.lang.String cedula) +
        Crear una cadena de texto JSON para representar documentos en Base 64.
        +
        static java.lang.StringbuildJsonApi​(java.lang.String sistema, + java.lang.String url) +
        Crear una cadena de texto JSON con información del API para autorizar.
        +
        static java.lang.StringparseJsonDocumentoFirmado​(java.lang.String json) 
        static java.util.Map<java.lang.Long,​byte[]>parseJsonDocumentos​(java.lang.String json) +
        Transforma una cadena de texto JSON con documentos en Base 64 en un Map + de archivos binarios.
        +
        static java.lang.StringparseJsonFechaHora​(java.lang.String json) 
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          JsonProcessor

          +
          public JsonProcessor()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          parseJsonDocumentos

          +
          public static java.util.Map<java.lang.Long,​byte[]> parseJsonDocumentos​(java.lang.String json)
          +
          Transforma una cadena de texto JSON con documentos en Base 64 en un Map + de archivos binarios.
          +
        • +
        + + + +
          +
        • +

          parseJsonFechaHora

          +
          public static java.lang.String parseJsonFechaHora​(java.lang.String json)
          +
        • +
        + + + +
          +
        • +

          parseJsonDocumentoFirmado

          +
          public static java.lang.String parseJsonDocumentoFirmado​(java.lang.String json)
          +
        • +
        + + + +
          +
        • +

          buildJson

          +
          public static java.lang.String buildJson​(java.util.Map<java.lang.Long,​byte[]> documentos,
          +                                         java.lang.String cedula)
          +
          Crear una cadena de texto JSON para representar documentos en Base 64.
          +
        • +
        + + + +
          +
        • +

          buildJsonApi

          +
          public static java.lang.String buildJsonApi​(java.lang.String sistema,
          +                                            java.lang.String url)
          +
          Crear una cadena de texto JSON con información del API para autorizar.
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/util/Pkcs12.html b/docs/ec/gob/firmadigital/servicio/util/Pkcs12.html new file mode 100644 index 0000000..0433611 --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/util/Pkcs12.html @@ -0,0 +1,325 @@ + + + + + +Pkcs12 + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class Pkcs12

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • ec.gob.firmadigital.servicio.util.Pkcs12
      • +
      +
    • +
    +
    +
      +
    • +
      +
      public class Pkcs12
      +extends java.lang.Object
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Summary

        + + + + + + + + + + +
        Constructors 
        ConstructorDescription
        Pkcs12() 
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + + + + + + +
        All Methods Static Methods Concrete Methods 
        Modifier and TypeMethodDescription
        static java.lang.StringgetAlias​(java.security.KeyStore keyStore) 
        static java.security.KeyStoregetKeyStore​(java.lang.String pkcs12, + java.lang.String password) 
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          Pkcs12

          +
          public Pkcs12()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          getKeyStore

          +
          public static java.security.KeyStore getKeyStore​(java.lang.String pkcs12,
          +                                                 java.lang.String password)
          +                                          throws java.security.KeyStoreException
          +
          +
          Throws:
          +
          java.security.KeyStoreException
          +
          +
        • +
        + + + +
          +
        • +

          getAlias

          +
          public static java.lang.String getAlias​(java.security.KeyStore keyStore)
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/util/PropertiesUtils.html b/docs/ec/gob/firmadigital/servicio/util/PropertiesUtils.html new file mode 100644 index 0000000..4c6bf3b --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/util/PropertiesUtils.html @@ -0,0 +1,318 @@ + + + + + +PropertiesUtils + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class PropertiesUtils

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • ec.gob.firmadigital.servicio.util.PropertiesUtils
      • +
      +
    • +
    +
    +
      +
    • +
      +
      public class PropertiesUtils
      +extends java.lang.Object
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Summary

        + + + + + + + + + + +
        Constructors 
        ConstructorDescription
        PropertiesUtils() 
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + + + + + + +
        All Methods Static Methods Concrete Methods 
        Modifier and TypeMethodDescription
        static java.util.PropertiesgetConfig() 
        static java.lang.StringgetDocumentoKB() 
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          PropertiesUtils

          +
          public PropertiesUtils()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          getConfig

          +
          public static java.util.Properties getConfig()
          +
        • +
        + + + +
          +
        • +

          getDocumentoKB

          +
          public static java.lang.String getDocumentoKB()
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/util/Propiedades.html b/docs/ec/gob/firmadigital/servicio/util/Propiedades.html new file mode 100644 index 0000000..76b1ef2 --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/util/Propiedades.html @@ -0,0 +1,327 @@ + + + + + +Propiedades + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class Propiedades

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • ec.gob.firmadigital.servicio.util.Propiedades
      • +
      +
    • +
    +
    +
      +
    • +
      +
      public class Propiedades
      +extends java.lang.Object
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Summary

        + + + + + + + + + + +
        Constructors 
        ConstructorDescription
        Propiedades() 
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + +
        All Methods Static Methods Concrete Methods 
        Modifier and TypeMethodDescription
        static java.util.Propertiespropiedades​(java.lang.String version, + java.lang.String llx, + java.lang.String lly, + java.lang.String pagina, + java.lang.String tipoEstampa, + java.lang.String razon, + java.lang.String url, + java.lang.String fechaHora, + java.lang.String base64) 
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          Propiedades

          +
          public Propiedades()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          propiedades

          +
          public static java.util.Properties propiedades​(java.lang.String version,
          +                                               java.lang.String llx,
          +                                               java.lang.String lly,
          +                                               java.lang.String pagina,
          +                                               java.lang.String tipoEstampa,
          +                                               java.lang.String razon,
          +                                               java.lang.String url,
          +                                               java.lang.String fechaHora,
          +                                               java.lang.String base64)
          +                                        throws java.io.IOException,
          +                                               io.rubrica.exceptions.HoraServidorException
          +
          +
          Throws:
          +
          java.io.IOException
          +
          io.rubrica.exceptions.HoraServidorException
          +
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/util/ProtocoloFirmaDigital.html b/docs/ec/gob/firmadigital/servicio/util/ProtocoloFirmaDigital.html new file mode 100644 index 0000000..ef355ad --- /dev/null +++ b/docs/ec/gob/firmadigital/servicio/util/ProtocoloFirmaDigital.html @@ -0,0 +1,337 @@ + + + + + +ProtocoloFirmaDigital + + + + + + + + + + + + + + +
    + +
    + +
    +
    + +

    Class ProtocoloFirmaDigital

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • ec.gob.firmadigital.servicio.util.ProtocoloFirmaDigital
      • +
      +
    • +
    +
    +
      +
    • +
      +
      public class ProtocoloFirmaDigital
      +extends java.lang.Object
      +
    • +
    +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Summary

        + + + + + + + + + + +
        Constructors 
        ConstructorDescription
        ProtocoloFirmaDigital​(java.lang.String str) 
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethodDescription
        java.lang.StringgetOperacion() 
        java.util.Map<java.lang.String,​java.lang.String>getParametros() 
        java.lang.StringgetSistema() 
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
      +
    • + +
      + +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          getSistema

          +
          public java.lang.String getSistema()
          +
        • +
        + + + +
          +
        • +

          getOperacion

          +
          public java.lang.String getOperacion()
          +
        • +
        + + + +
          +
        • +

          getParametros

          +
          public java.util.Map<java.lang.String,​java.lang.String> getParametros()
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/docs/ec/gob/firmadigital/servicio/util/class-use/Base64InvalidoException.html b/docs/ec/gob/firmadigital/servicio/util/class-use/Base64InvalidoException.html deleted file mode 100644 index a0d3404..0000000 --- a/docs/ec/gob/firmadigital/servicio/util/class-use/Base64InvalidoException.html +++ /dev/null @@ -1,222 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.util.Base64InvalidoException (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - - - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.util.Base64InvalidoException

    -
    -
    - -
    - - - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/util/class-use/Base64Util.html b/docs/ec/gob/firmadigital/servicio/util/class-use/Base64Util.html deleted file mode 100644 index db90367..0000000 --- a/docs/ec/gob/firmadigital/servicio/util/class-use/Base64Util.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.util.Base64Util (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - - - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.util.Base64Util

    -
    -
    No usage of ec.gob.firmadigital.servicio.util.Base64Util
    - - - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/util/class-use/FileUtil.html b/docs/ec/gob/firmadigital/servicio/util/class-use/FileUtil.html deleted file mode 100644 index 8bf577d..0000000 --- a/docs/ec/gob/firmadigital/servicio/util/class-use/FileUtil.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - -Uses of Class ec.gob.firmadigital.servicio.util.FileUtil (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - - - - -
    -

    Uses of Class
    ec.gob.firmadigital.servicio.util.FileUtil

    -
    -
    No usage of ec.gob.firmadigital.servicio.util.FileUtil
    - - - - -

    Copyright © 2021. All rights reserved.

    - - diff --git a/docs/ec/gob/firmadigital/servicio/util/package-frame.html b/docs/ec/gob/firmadigital/servicio/util/package-frame.html deleted file mode 100644 index 786be8c..0000000 --- a/docs/ec/gob/firmadigital/servicio/util/package-frame.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - -ec.gob.firmadigital.servicio.util (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - -

    ec.gob.firmadigital.servicio.util

    -
    -

    Classes

    - -

    Exceptions

    - -
    - - diff --git a/docs/ec/gob/firmadigital/servicio/util/package-summary.html b/docs/ec/gob/firmadigital/servicio/util/package-summary.html index b5df474..2440b21 100644 --- a/docs/ec/gob/firmadigital/servicio/util/package-summary.html +++ b/docs/ec/gob/firmadigital/servicio/util/package-summary.html @@ -1,58 +1,68 @@ - + - - -ec.gob.firmadigital.servicio.util (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ec.gob.firmadigital.servicio.util + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
    + +
    +

    Package ec.gob.firmadigital.servicio.util

    • - +
      @@ -84,20 +106,44 @@

      Package ec.gob.firmadigital.servicio.util

      - + - + + + + + + + + + + + + + + + + + + + + + + + + +
      Class Summary 
      Class
      Base64UtilBase64Util
      Clase utilitaria para procesar formato Base64.
      FileUtilFileUtil 
      FirmaDigital 
      JsonProcessor 
      Pkcs12 
      PropertiesUtils 
      Propiedades 
      ProtocoloFirmaDigital  
    • - +
      @@ -105,7 +151,7 @@

      Package ec.gob.firmadigital.servicio.util

      - + or other required elements. + thead: [ 1, "
      Exception Summary 
      Exception
      Base64InvalidoExceptionBase64InvalidoException
      Excepción lanzada cuando no se puede decodificar un cadena de texto en Base64.
      @@ -116,36 +162,30 @@

      Package ec.gob.firmadigital.servicio.util + + diff --git a/docs/ec/gob/firmadigital/servicio/util/package-tree.html b/docs/ec/gob/firmadigital/servicio/util/package-tree.html index 1383073..bb955a4 100644 --- a/docs/ec/gob/firmadigital/servicio/util/package-tree.html +++ b/docs/ec/gob/firmadigital/servicio/util/package-tree.html @@ -1,58 +1,68 @@ - + - - -ec.gob.firmadigital.servicio.util Class Hierarchy (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +ec.gob.firmadigital.servicio.util Class Hierarchy + + + + + + + + +var pathtoroot = "../../../../../"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
      + +
      +

      Hierarchy For Package ec.gob.firmadigital.servicio.util

      Package Hierarchies: @@ -78,17 +100,24 @@

      Hierarchy For Package ec.gob.firmadigital.servicio.util

      +

      Class Hierarchy

      +
      +
      + diff --git a/docs/ec/gob/firmadigital/servicio/util/package-use.html b/docs/ec/gob/firmadigital/servicio/util/package-use.html deleted file mode 100644 index d7f7130..0000000 --- a/docs/ec/gob/firmadigital/servicio/util/package-use.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - - -Uses of Package ec.gob.firmadigital.servicio.util (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - - - - -
      -

      Uses of Package
      ec.gob.firmadigital.servicio.util

      -
      -
      - -
      - - - - -

      Copyright © 2021. All rights reserved.

      - - diff --git a/docs/package-list b/docs/element-list similarity index 78% rename from docs/package-list rename to docs/element-list index 554b97d..45589a0 100644 --- a/docs/package-list +++ b/docs/element-list @@ -1,6 +1,8 @@ +ec.gob.firmadigital.firmaec_app.exceptions ec.gob.firmadigital.servicio ec.gob.firmadigital.servicio.cms ec.gob.firmadigital.servicio.crl +ec.gob.firmadigital.servicio.exception ec.gob.firmadigital.servicio.model ec.gob.firmadigital.servicio.pdf ec.gob.firmadigital.servicio.rest diff --git a/docs/help-doc.html b/docs/help-doc.html index a14f47c..f260e48 100644 --- a/docs/help-doc.html +++ b/docs/help-doc.html @@ -1,58 +1,68 @@ - + - - -API Help (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +API Help + + + + + + + + +var pathtoroot = "./"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
      + +
      +

      How This API Document Is Organized

      This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
      @@ -77,138 +99,153 @@

      How This API Document Is Organized

      • +

        Overview

        -

        The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

        +

        The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

        +
      • +

        Package

        -

        Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:

        +

        Each package has a page that contains a list of its classes and interfaces, with a summary for each. These pages may contain six categories:

          -
        • Interfaces (italic)
        • +
        • Interfaces
        • Classes
        • Enums
        • Exceptions
        • Errors
        • Annotation Types
        +
      • -

        Class/Interface

        +
        +

        Class or Interface

        Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

          -
        • Class inheritance diagram
        • +
        • Class Inheritance Diagram
        • Direct Subclasses
        • All Known Subinterfaces
        • All Known Implementing Classes
        • -
        • Class/interface declaration
        • -
        • Class/interface description
        • +
        • Class or Interface Declaration
        • +
        • Class or Interface Description
        +
        • Nested Class Summary
        • Field Summary
        • +
        • Property Summary
        • Constructor Summary
        • Method Summary
        +
        • Field Detail
        • +
        • Property Detail
        • Constructor Detail
        • Method Detail

        Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

        +
      • +

        Annotation Type

        Each annotation type has its own separate page with the following sections:

          -
        • Annotation Type declaration
        • -
        • Annotation Type description
        • +
        • Annotation Type Declaration
        • +
        • Annotation Type Description
        • Required Element Summary
        • Optional Element Summary
        • Element Detail
        +
      • +

        Enum

        Each enum has its own separate page with the following sections:

          -
        • Enum declaration
        • -
        • Enum description
        • +
        • Enum Declaration
        • +
        • Enum Description
        • Enum Constant Summary
        • Enum Constant Detail
        +
      • -

        Use

        -

        Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.

        -
      • -
      • +

        Tree (Class Hierarchy)

        -

        There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

        +

        There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. Classes are organized by inheritance structure starting with java.lang.Object. Interfaces do not inherit from java.lang.Object.

        • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
        • -
        • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
        • +
        • When viewing a particular package, class or interface page, clicking on "Tree" displays the hierarchy for only that package.
        +
      • +

        Deprecated API

        The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

        +
      • +

        Index

        -

        The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

        -
      • -
      • -

        Prev/Next

        -

        These links take you to the next or previous class, interface, package, or related page.

        +

        The Index contains an alphabetic index of all classes, interfaces, constructors, methods, and fields, as well as lists of all packages and all classes.

        +
      • -

        Frames/No Frames

        -

        These links show and hide the HTML frames. All pages are available with or without frames.

        -
      • -
      • -

        All Classes

        -

        The All Classes link shows all classes and interfaces except non-static nested types.

        +
        +

        All Classes

        +

        The All Classes link shows all classes and interfaces except non-static nested types.

        +
      • +

        Serialized Form

        Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

        +
      • +

        Constant Field Values

        The Constant Field Values page lists the static final fields and their values.

        +
        +
      • +
      • +
        +

        Search

        +

        You can search for definitions of modules, packages, types, fields, methods and other terms defined in the API, using some or all of the name. "Camel-case" abbreviations are supported: for example, "InpStr" will find "InputStream" and "InputStreamReader".

        +
      -This help file applies to API documentation generated using the standard doclet.
      +
      +This help file applies to API documentation generated by the standard doclet.
      +
      + diff --git a/docs/index-all.html b/docs/index-all.html deleted file mode 100644 index 0b31ba3..0000000 --- a/docs/index-all.html +++ /dev/null @@ -1,776 +0,0 @@ - - - - - - -Index (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - - -
      - - - - - - - -
      - - -
      A B C D E F G H I J L M O P S T V W  - - -

      A

      -
      -
      actualizarDocumentos(String, JsonObject) - Method in class ec.gob.firmadigital.servicio.rest.ServicioDocumentoRest
      -
       
      -
      actualizarDocumentos(String, Map<Long, String>, String) - Method in class ec.gob.firmadigital.servicio.ServicioDocumento
      -
       
      -
      addHours(Date, int) - Static method in class ec.gob.firmadigital.servicio.token.TokenTimeout
      -
      -
      Agregar una cantidad de horas a una hora dada.
      -
      -
      addMinutes(Date, int) - Static method in class ec.gob.firmadigital.servicio.token.TokenTimeout
      -
      -
      Agregar una cantidad de minutos a una hora dada.
      -
      -
      almacenarDocumento(String, String, String, String, URL, X509Certificate) - Method in class ec.gob.firmadigital.servicio.ServicioSistemaTransversal
      -
      -
      Almacena el documento firmado en el sistema tranversarl, mediante la - invocación de un Web Service (SOAP).
      -
      -
      almacenarDocumentoREST(String, String, String, String, URL, String, X509Certificate) - Method in class ec.gob.firmadigital.servicio.ServicioSistemaTransversal
      -
      -
      Almacena el documento firmado en el sistema tranversarl, mediante la - invocación de un Web Service (SOAP).
      -
      -
      ApiEstadisticaException - Exception in ec.gob.firmadigital.servicio
      -
      -
      Excepcion lanzada en caso de que no se encuentre un ApiUrl.
      -
      -
      ApiEstadisticaException() - Constructor for exception ec.gob.firmadigital.servicio.ApiEstadisticaException
      -
       
      -
      ApiEstadisticaException(String) - Constructor for exception ec.gob.firmadigital.servicio.ApiEstadisticaException
      -
       
      -
      ApiUrl - Class in ec.gob.firmadigital.servicio.model
      -
      -
      Representa el URL de un servidor API provisto por un tercero.
      -
      -
      ApiUrl() - Constructor for class ec.gob.firmadigital.servicio.model.ApiUrl
      -
       
      -
      ApiUrl(String, String) - Constructor for class ec.gob.firmadigital.servicio.model.ApiUrl
      -
       
      -
      ApiUrlNoEncontradoException - Exception in ec.gob.firmadigital.servicio
      -
      -
      Excepcion lanzada en caso de que no se encuentre un ApiUrl.
      -
      -
      ApiUrlNoEncontradoException() - Constructor for exception ec.gob.firmadigital.servicio.ApiUrlNoEncontradoException
      -
       
      -
      ApiUrlNoEncontradoException(String) - Constructor for exception ec.gob.firmadigital.servicio.ApiUrlNoEncontradoException
      -
       
      -
      - - - -

      B

      -
      -
      Base64InvalidoException - Exception in ec.gob.firmadigital.servicio.util
      -
      -
      Excepción lanzada cuando no se puede decodificar un cadena de texto en - Base64.
      -
      -
      Base64InvalidoException(IllegalArgumentException) - Constructor for exception ec.gob.firmadigital.servicio.util.Base64InvalidoException
      -
       
      -
      Base64Util - Class in ec.gob.firmadigital.servicio.util
      -
      -
      Clase utilitaria para procesar formato Base64.
      -
      -
      Base64Util() - Constructor for class ec.gob.firmadigital.servicio.util.Base64Util
      -
       
      -
      borrarDocumentos() - Method in class ec.gob.firmadigital.servicio.ServicioEliminacionDocumento
      -
       
      -
      buscarApiKeyRest(String) - Method in class ec.gob.firmadigital.servicio.ServicioSistemaTransversal
      -
      -
      Obtiene el ApiKey del Web Service de un sistema transversal, para - devolver el documento firmado por el usuario.
      -
      -
      buscarPorFechaDesdeFechaHasta(String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioEstadisticaDocumentosFirmadosRest
      -
       
      -
      buscarPorFechaDesdeFechaHasta(String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioEstadisticaUsuariosRest
      -
       
      -
      buscarPorFechaDesdeFechaHasta(String, String, String) - Method in class ec.gob.firmadigital.servicio.ServicioEstadisticaDocumentosFirmados
      -
      -
      Busca un ApiUrl por URL.
      -
      -
      buscarPorFechaDesdeFechaHasta(String, String, String) - Method in class ec.gob.firmadigital.servicio.ServicioEstadisticaUsuarios
      -
      -
      Busca un ApiUrl por URL.
      -
      -
      buscarPorUrl(String, String) - Method in class ec.gob.firmadigital.servicio.ServicioApiUrl
      -
      -
      Busca un ApiUrl por URL.
      -
      -
      buscarSistema(String) - Method in class ec.gob.firmadigital.servicio.ServicioSistemaTransversal
      -
      -
      Buscar un sistema transversal.
      -
      -
      buscarUrl(String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioApiUrlRest
      -
       
      -
      buscarUrlSistema(String) - Method in class ec.gob.firmadigital.servicio.ServicioSistemaTransversal
      -
      -
      Obtiene el URL del Web Service de un sistema transversal, para devolver - el documento firmado por el usuario.
      -
      -
      - - - -

      C

      -
      -
      CedulaInvalidaException - Exception in ec.gob.firmadigital.servicio
      -
      -
      Excepcion lanzada en caso de que la cedula que inicio el proceso en el - sistema transversal sea diferente a la cedula usada al firmar los docuentos.
      -
      -
      CedulaInvalidaException() - Constructor for exception ec.gob.firmadigital.servicio.CedulaInvalidaException
      -
       
      -
      CedulaInvalidaException(String) - Constructor for exception ec.gob.firmadigital.servicio.CedulaInvalidaException
      -
       
      -
      CertificadoRevocadoException - Exception in ec.gob.firmadigital.servicio
      -
      -
      Excepcion lanzada en caso de que el certificado esté revocado.
      -
      -
      CertificadoRevocadoException() - Constructor for exception ec.gob.firmadigital.servicio.CertificadoRevocadoException
      -
       
      -
      CertificadoRevocadoException(String) - Constructor for exception ec.gob.firmadigital.servicio.CertificadoRevocadoException
      -
       
      -
      codificarLlaveSecreta(SecretKey) - Static method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      -
      -
      Genera una llave privada randómica para configurar como variable dentro - del archivo standalone.xml del servidor de aplicaciones WildFly/JBoss.
      -
      -
      crearDocumentos(String, String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioDocumentoRest
      -
      -
      Almacena varios documentos desde un Sistema Transversal.
      -
      -
      crearDocumentos(String, String, Map<String, String>) - Method in class ec.gob.firmadigital.servicio.ServicioDocumento
      -
      -
      Crea documentos en el sistema, para ser firmados por un cliente.
      -
      -
      - - - -

      D

      -
      -
      decode(String) - Static method in class ec.gob.firmadigital.servicio.util.Base64Util
      -
       
      -
      decodificarLlaveSecreta(String) - Static method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      -
      -
      Decodificar llave secreta en Base 64.
      -
      -
      DEFAULT_TIMEOUT - Static variable in class ec.gob.firmadigital.servicio.token.TokenTimeout
      -
      -
      Minutos antes de que el Token expire.
      -
      -
      DEFAULT_TIMEOUT_HOURS - Static variable in class ec.gob.firmadigital.servicio.token.TokenTimeout
      -
      -
      Horas antes de que el Token expire.
      -
      -
      Documento - Class in ec.gob.firmadigital.servicio.model
      -
      -
      Representa un documento recibido para ser procesado en el sistema.
      -
      -
      Documento() - Constructor for class ec.gob.firmadigital.servicio.model.Documento
      -
       
      -
      Documento(String, String, Date, String, byte[]) - Constructor for class ec.gob.firmadigital.servicio.model.Documento
      -
       
      -
      DocumentoNoExisteException - Exception in ec.gob.firmadigital.servicio
      -
      -
      Excepcion arrojada en caso de problemas al almacenar el documento en el - sistema transversal.
      -
      -
      DocumentoNoExisteException() - Constructor for exception ec.gob.firmadigital.servicio.DocumentoNoExisteException
      -
       
      -
      DocumentoNoExisteException(String) - Constructor for exception ec.gob.firmadigital.servicio.DocumentoNoExisteException
      -
       
      -
      DocumentoNoExisteException(String, Throwable) - Constructor for exception ec.gob.firmadigital.servicio.DocumentoNoExisteException
      -
       
      -
      DocumentoNoExisteException(Throwable) - Constructor for exception ec.gob.firmadigital.servicio.DocumentoNoExisteException
      -
       
      -
      - - - -

      E

      -
      -
      ec.gob.firmadigital.servicio - package ec.gob.firmadigital.servicio
      -
       
      -
      ec.gob.firmadigital.servicio.cms - package ec.gob.firmadigital.servicio.cms
      -
       
      -
      ec.gob.firmadigital.servicio.crl - package ec.gob.firmadigital.servicio.crl
      -
       
      -
      ec.gob.firmadigital.servicio.model - package ec.gob.firmadigital.servicio.model
      -
       
      -
      ec.gob.firmadigital.servicio.pdf - package ec.gob.firmadigital.servicio.pdf
      -
       
      -
      ec.gob.firmadigital.servicio.rest - package ec.gob.firmadigital.servicio.rest
      -
       
      -
      ec.gob.firmadigital.servicio.token - package ec.gob.firmadigital.servicio.token
      -
       
      -
      ec.gob.firmadigital.servicio.token.jwt - package ec.gob.firmadigital.servicio.token.jwt
      -
       
      -
      ec.gob.firmadigital.servicio.util - package ec.gob.firmadigital.servicio.util
      -
       
      -
      encode(byte[]) - Static method in class ec.gob.firmadigital.servicio.util.Base64Util
      -
       
      -
      error(String, String) - Method in class ec.gob.firmadigital.servicio.ServicioLog
      -
       
      -
      - - - -

      F

      -
      -
      fechaRevocado(BigInteger) - Method in class ec.gob.firmadigital.servicio.crl.ServicioConsultaCrl
      -
       
      -
      FileUtil - Class in ec.gob.firmadigital.servicio.util
      -
       
      -
      FileUtil() - Constructor for class ec.gob.firmadigital.servicio.util.FileUtil
      -
       
      -
      - - - -

      G

      -
      -
      generarLlaveSecreta() - Static method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      -
      -
      Genera una llave secreta para firmar los tokens.
      -
      -
      generarToken(Map<String, Object>) - Method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      -
       
      -
      generarToken(Map<String, Object>, Date) - Method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      -
       
      -
      generarToken(Map<String, Object>) - Method in interface ec.gob.firmadigital.servicio.token.ServicioToken
      -
      -
      Generar un token sin expiracion.
      -
      -
      generarToken(Map<String, Object>, Date) - Method in interface ec.gob.firmadigital.servicio.token.ServicioToken
      -
      -
      Generar un token con tiempo de expiracion
      -
      -
      getApiKey() - Method in class ec.gob.firmadigital.servicio.model.Sistema
      -
       
      -
      getApiKeyRest() - Method in class ec.gob.firmadigital.servicio.model.Sistema
      -
       
      -
      getArchivo() - Method in class ec.gob.firmadigital.servicio.model.Documento
      -
       
      -
      getCategoria() - Method in class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      getCedula() - Method in class ec.gob.firmadigital.servicio.model.Documento
      -
       
      -
      getCedula() - Method in class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      getDescripcion() - Method in class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      getDescripcion() - Method in class ec.gob.firmadigital.servicio.model.Sistema
      -
       
      -
      getFecha() - Method in class ec.gob.firmadigital.servicio.model.Documento
      -
       
      -
      getFecha() - Method in class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      getId() - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      -
       
      -
      getId() - Method in class ec.gob.firmadigital.servicio.model.Documento
      -
       
      -
      getId() - Method in class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      getId() - Method in class ec.gob.firmadigital.servicio.model.Sistema
      -
       
      -
      getMimeType(byte[]) - Static method in class ec.gob.firmadigital.servicio.util.FileUtil
      -
       
      -
      getNombre() - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      -
       
      -
      getNombre() - Method in class ec.gob.firmadigital.servicio.model.Documento
      -
       
      -
      getNombre() - Method in class ec.gob.firmadigital.servicio.model.Sistema
      -
       
      -
      getNombre(byte[]) - Method in class ec.gob.firmadigital.servicio.pdf.ServicioValidacionPdf
      -
       
      -
      getSeveridad() - Method in class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      getSistema() - Method in class ec.gob.firmadigital.servicio.model.Documento
      -
       
      -
      getSistema() - Method in class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      getStatus() - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      -
       
      -
      getUrl() - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      -
       
      -
      getURL() - Method in class ec.gob.firmadigital.servicio.model.Sistema
      -
       
      -
      - - - -

      H

      -
      -
      hashMD5(String) - Static method in class ec.gob.firmadigital.servicio.util.FileUtil
      -
       
      -
      - - - -

      I

      -
      -
      importarCrls() - Method in class ec.gob.firmadigital.servicio.crl.ServicioDescargaCrl
      -
      -
      To run on every Monday at 9 am
      -
      -
      info(String, String) - Method in class ec.gob.firmadigital.servicio.ServicioLog
      -
       
      -
      init() - Method in class ec.gob.firmadigital.servicio.crl.ServicioDescargaCrl
      -
       
      -
      init() - Method in class ec.gob.firmadigital.servicio.ServicioEliminacionDocumento
      -
       
      -
      init() - Method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      -
       
      -
      isRevocado(BigInteger) - Method in class ec.gob.firmadigital.servicio.crl.ServicioConsultaCrl
      -
       
      -
      - - - -

      J

      -
      -
      JAXRSConfiguration - Class in ec.gob.firmadigital.servicio.rest
      -
      -
      Configuración de la aplicacion REST
      -
      -
      JAXRSConfiguration() - Constructor for class ec.gob.firmadigital.servicio.rest.JAXRSConfiguration
      -
       
      -
      - - - -

      L

      -
      -
      Log - Class in ec.gob.firmadigital.servicio.model
      -
      -
      Representa una entrada de log.
      -
      -
      Log() - Constructor for class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      Log(Log.Severidad, String, String) - Constructor for class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      Log(Log.Severidad, String, String, String, String) - Constructor for class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      log(Log.Severidad, String, String) - Method in class ec.gob.firmadigital.servicio.ServicioLog
      -
       
      -
      Log.Severidad - Enum in ec.gob.firmadigital.servicio.model
      -
      -
      Severidad de la entrada de log
      -
      -
      - - - -

      M

      -
      -
      main(String[]) - Static method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      -
       
      -
      - - - -

      O

      -
      -
      obtenerDocumentos(String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioDocumentoRest
      -
      -
      Obtiene documentos mediante un token JWT.
      -
      -
      obtenerDocumentos(String) - Method in class ec.gob.firmadigital.servicio.ServicioDocumento
      -
      -
      Obtiene un documento mediante un token.
      -
      -
      - - - -

      P

      -
      -
      parseToken(String) - Method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      -
       
      -
      parseToken(String) - Method in interface ec.gob.firmadigital.servicio.token.ServicioToken
      -
      -
      Analizar los contenidos de un token para sacar la información necesaria - para procesar un documento.
      -
      -
      - - - -

      S

      -
      -
      ServicioApiUrl - Class in ec.gob.firmadigital.servicio
      -
      -
      Buscar en una lista de URLs permitidos para utilizar como API.
      -
      -
      ServicioApiUrl() - Constructor for class ec.gob.firmadigital.servicio.ServicioApiUrl
      -
       
      -
      ServicioApiUrlRest - Class in ec.gob.firmadigital.servicio.rest
      -
      -
      Servicio REST para verificar si existe un API URL.
      -
      -
      ServicioApiUrlRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioApiUrlRest
      -
       
      -
      ServicioCertificadoRest - Class in ec.gob.firmadigital.servicio.rest
      -
      -
      Este servicio permite verificar si un certificado está revocado.
      -
      -
      ServicioCertificadoRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioCertificadoRest
      -
       
      -
      ServicioConsultaCrl - Class in ec.gob.firmadigital.servicio.crl
      -
      -
      Servicio para consultar los CRLs.
      -
      -
      ServicioConsultaCrl() - Constructor for class ec.gob.firmadigital.servicio.crl.ServicioConsultaCrl
      -
       
      -
      ServicioDescargaCrl - Class in ec.gob.firmadigital.servicio.crl
      -
      -
      Servicio para cargar los CRLs de las CAs soportadas en una tabla.
      -
      -
      ServicioDescargaCrl() - Constructor for class ec.gob.firmadigital.servicio.crl.ServicioDescargaCrl
      -
       
      -
      ServicioDocumento - Class in ec.gob.firmadigital.servicio
      -
      -
      Servicio para almacenar, actualizar y obtener documentos desde los sistemas - transversales y la aplicación en firmadigital-api
      -
      -
      ServicioDocumento() - Constructor for class ec.gob.firmadigital.servicio.ServicioDocumento
      -
       
      -
      ServicioDocumentoRest - Class in ec.gob.firmadigital.servicio.rest
      -
      -
      Servicio REST para almacenar, actualizar y obtener documentos desde los - sistemas transversales y comunicarse con aplicación firmadigital-api
      -
      -
      ServicioDocumentoRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioDocumentoRest
      -
       
      -
      ServicioEliminacionDocumento - Class in ec.gob.firmadigital.servicio
      -
      -
      Servicio para eliminar documentos de la base de datos que no han sido - firmados por n minutos.
      -
      -
      ServicioEliminacionDocumento() - Constructor for class ec.gob.firmadigital.servicio.ServicioEliminacionDocumento
      -
       
      -
      ServicioEstadisticaDocumentosFirmados - Class in ec.gob.firmadigital.servicio
      -
      -
      Buscar en una lista de URLs permitidos para utilizar como API.
      -
      -
      ServicioEstadisticaDocumentosFirmados() - Constructor for class ec.gob.firmadigital.servicio.ServicioEstadisticaDocumentosFirmados
      -
       
      -
      ServicioEstadisticaDocumentosFirmadosRest - Class in ec.gob.firmadigital.servicio.rest
      -
      -
      Buscar en una lista de URLs permitidos para utilizar como API.
      -
      -
      ServicioEstadisticaDocumentosFirmadosRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioEstadisticaDocumentosFirmadosRest
      -
       
      -
      ServicioEstadisticaUsuarios - Class in ec.gob.firmadigital.servicio
      -
      -
      Buscar en una lista de URLs permitidos para utilizar como API.
      -
      -
      ServicioEstadisticaUsuarios() - Constructor for class ec.gob.firmadigital.servicio.ServicioEstadisticaUsuarios
      -
       
      -
      ServicioEstadisticaUsuariosRest - Class in ec.gob.firmadigital.servicio.rest
      -
      -
      Buscar en una lista de URLs permitidos para utilizar como API.
      -
      -
      ServicioEstadisticaUsuariosRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioEstadisticaUsuariosRest
      -
       
      -
      ServicioLog - Class in ec.gob.firmadigital.servicio
      -
      -
      Servicio para almacenar, actualizar y obtener documentos desde los sistemas - transversales y la aplicación en firmadigital-api
      -
      -
      ServicioLog() - Constructor for class ec.gob.firmadigital.servicio.ServicioLog
      -
       
      -
      ServicioSistemaTransversal - Class in ec.gob.firmadigital.servicio
      -
      -
      Servicio para invocar Web Services de los sistemas transaccionales, utilizado - para almacenar el documento ya firmado.
      -
      -
      ServicioSistemaTransversal() - Constructor for class ec.gob.firmadigital.servicio.ServicioSistemaTransversal
      -
       
      -
      ServicioToken - Interface in ec.gob.firmadigital.servicio.token
      -
      -
      Servicio para gestionar tokens que permiten una comunicación confiable con - una aplicación externa.
      -
      -
      ServicioTokenJwt - Class in ec.gob.firmadigital.servicio.token.jwt
      -
      -
      Servicio para trabajar con tokens tipo JWT (https://jwt.io).
      -
      -
      ServicioTokenJwt() - Constructor for class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      -
       
      -
      ServicioValidacionCms - Class in ec.gob.firmadigital.servicio.cms
      -
      -
      Servicio de validacion de archivos CMS (P7M).
      -
      -
      ServicioValidacionCms() - Constructor for class ec.gob.firmadigital.servicio.cms.ServicioValidacionCms
      -
       
      -
      ServicioValidacionPdf - Class in ec.gob.firmadigital.servicio.pdf
      -
      -
      Servicio de verificacion de archivos PDF.
      -
      -
      ServicioValidacionPdf() - Constructor for class ec.gob.firmadigital.servicio.pdf.ServicioValidacionPdf
      -
       
      -
      ServicioValidacionPdfRest - Class in ec.gob.firmadigital.servicio.rest
      -
       
      -
      ServicioValidacionPdfRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioValidacionPdfRest
      -
       
      -
      setApiKey(String) - Method in class ec.gob.firmadigital.servicio.model.Sistema
      -
       
      -
      setApiKeyRest(String) - Method in class ec.gob.firmadigital.servicio.model.Sistema
      -
       
      -
      setArchivo(byte[]) - Method in class ec.gob.firmadigital.servicio.model.Documento
      -
       
      -
      setCategoria(String) - Method in class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      setCedula(String) - Method in class ec.gob.firmadigital.servicio.model.Documento
      -
       
      -
      setCedula(String) - Method in class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      setDescripcion(String) - Method in class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      setDescripcion(String) - Method in class ec.gob.firmadigital.servicio.model.Sistema
      -
       
      -
      setFecha(Date) - Method in class ec.gob.firmadigital.servicio.model.Documento
      -
       
      -
      setFecha(Date) - Method in class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      setId(Long) - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      -
       
      -
      setId(Long) - Method in class ec.gob.firmadigital.servicio.model.Documento
      -
       
      -
      setId(long) - Method in class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      setId(long) - Method in class ec.gob.firmadigital.servicio.model.Sistema
      -
       
      -
      setNombre(String) - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      -
       
      -
      setNombre(String) - Method in class ec.gob.firmadigital.servicio.model.Documento
      -
       
      -
      setNombre(String) - Method in class ec.gob.firmadigital.servicio.model.Sistema
      -
       
      -
      setSeveridad(Log.Severidad) - Method in class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      setSistema(String) - Method in class ec.gob.firmadigital.servicio.model.Documento
      -
       
      -
      setSistema(String) - Method in class ec.gob.firmadigital.servicio.model.Log
      -
       
      -
      setStatus(Boolean) - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      -
       
      -
      setUrl(String) - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      -
       
      -
      setURL(String) - Method in class ec.gob.firmadigital.servicio.model.Sistema
      -
       
      -
      Sistema - Class in ec.gob.firmadigital.servicio.model
      -
      -
      Representa un sistema transversal.
      -
      -
      Sistema() - Constructor for class ec.gob.firmadigital.servicio.model.Sistema
      -
       
      -
      SistemaTransversalException - Exception in ec.gob.firmadigital.servicio
      -
      -
      Excepcion arrojada en caso de problemas al almacenar el documento en el - sistema transversal.
      -
      -
      SistemaTransversalException() - Constructor for exception ec.gob.firmadigital.servicio.SistemaTransversalException
      -
       
      -
      SistemaTransversalException(String) - Constructor for exception ec.gob.firmadigital.servicio.SistemaTransversalException
      -
       
      -
      SistemaTransversalException(String, Throwable) - Constructor for exception ec.gob.firmadigital.servicio.SistemaTransversalException
      -
       
      -
      SistemaTransversalException(Throwable) - Constructor for exception ec.gob.firmadigital.servicio.SistemaTransversalException
      -
       
      -
      - - - -

      T

      -
      -
      TokenExpiradoException - Exception in ec.gob.firmadigital.servicio.token
      -
      -
      Excepcion lanzada en caso de que el token haya expirado.
      -
      -
      TokenExpiradoException() - Constructor for exception ec.gob.firmadigital.servicio.token.TokenExpiradoException
      -
       
      -
      TokenExpiradoException(String) - Constructor for exception ec.gob.firmadigital.servicio.token.TokenExpiradoException
      -
       
      -
      TokenExpiradoException(String, Throwable) - Constructor for exception ec.gob.firmadigital.servicio.token.TokenExpiradoException
      -
       
      -
      TokenExpiradoException(Throwable) - Constructor for exception ec.gob.firmadigital.servicio.token.TokenExpiradoException
      -
       
      -
      TokenInvalidoException - Exception in ec.gob.firmadigital.servicio.token
      -
      -
      Excepcion lanzada en caso de que el token no sea valido.
      -
      -
      TokenInvalidoException() - Constructor for exception ec.gob.firmadigital.servicio.token.TokenInvalidoException
      -
       
      -
      TokenInvalidoException(String) - Constructor for exception ec.gob.firmadigital.servicio.token.TokenInvalidoException
      -
       
      -
      TokenInvalidoException(String, Throwable) - Constructor for exception ec.gob.firmadigital.servicio.token.TokenInvalidoException
      -
       
      -
      TokenInvalidoException(Throwable) - Constructor for exception ec.gob.firmadigital.servicio.token.TokenInvalidoException
      -
       
      -
      TokenTimeout - Class in ec.gob.firmadigital.servicio.token
      -
      -
      Timeout para un token.
      -
      -
      TokenTimeout() - Constructor for class ec.gob.firmadigital.servicio.token.TokenTimeout
      -
       
      -
      toString() - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      -
       
      -
      toString() - Method in class ec.gob.firmadigital.servicio.model.Documento
      -
       
      -
      - - - -

      V

      -
      -
      validarCertificado(BigInteger) - Method in class ec.gob.firmadigital.servicio.rest.ServicioCertificadoRest
      -
       
      -
      validarFechaRevocado(BigInteger) - Method in class ec.gob.firmadigital.servicio.rest.ServicioCertificadoRest
      -
       
      -
      valueOf(String) - Static method in enum ec.gob.firmadigital.servicio.model.Log.Severidad
      -
      -
      Returns the enum constant of this type with the specified name.
      -
      -
      values() - Static method in enum ec.gob.firmadigital.servicio.model.Log.Severidad
      -
      -
      Returns an array containing the constants of this enum type, in -the order they are declared.
      -
      -
      verificarApiKey(String, String) - Method in class ec.gob.firmadigital.servicio.ServicioSistemaTransversal
      -
       
      -
      verificarCms(String) - Method in class ec.gob.firmadigital.servicio.cms.ServicioValidacionCms
      -
       
      -
      verificarPdf(String) - Method in class ec.gob.firmadigital.servicio.pdf.ServicioValidacionPdf
      -
       
      -
      verificarPdf(String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioValidacionPdfRest
      -
       
      -
      - - - -

      W

      -
      -
      warning(String, String) - Method in class ec.gob.firmadigital.servicio.ServicioLog
      -
       
      -
      -A B C D E F G H I J L M O P S T V W 
      - -
      - - - - - - - -
      - - -

      Copyright © 2021. All rights reserved.

      - - diff --git a/docs/index-files/index-1.html b/docs/index-files/index-1.html new file mode 100644 index 0000000..7c04aa8 --- /dev/null +++ b/docs/index-files/index-1.html @@ -0,0 +1,199 @@ + + + + + +A-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      A

      +
      +
      actualizarDocumentos(String, String, String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioDocumentoRest
      +
       
      +
      actualizarDocumentos(String, Map<Long, String>, String, String) - Method in class ec.gob.firmadigital.servicio.ServicioDocumento
      +
       
      +
      addHours(Date, int) - Static method in class ec.gob.firmadigital.servicio.token.TokenTimeout
      +
      +
      Agregar una cantidad de horas a una hora dada.
      +
      +
      addMinutes(Date, int) - Static method in class ec.gob.firmadigital.servicio.token.TokenTimeout
      +
      +
      Agregar una cantidad de minutos a una hora dada.
      +
      +
      almacenarDocumento(String, String, String, String, URL) - Method in class ec.gob.firmadigital.servicio.ServicioSistemaTransversal
      +
      +
      Almacena el documento firmado en el sistema tranversarl, mediante la + invocación de un Web Service (SOAP).
      +
      +
      almacenarDocumentoREST(Documento, String, String, String, URL, String) - Method in class ec.gob.firmadigital.servicio.ServicioSistemaTransversal
      +
      +
      Almacena el documento firmado en el sistema tranversarl, mediante la + invocación de un Web Service (SOAP).
      +
      +
      ApiEstadisticaException - Exception in ec.gob.firmadigital.servicio
      +
      +
      Excepcion lanzada en caso de que no se encuentre un ApiUrl.
      +
      +
      ApiEstadisticaException() - Constructor for exception ec.gob.firmadigital.servicio.ApiEstadisticaException
      +
       
      +
      ApiEstadisticaException(String) - Constructor for exception ec.gob.firmadigital.servicio.ApiEstadisticaException
      +
       
      +
      ApiUrl - Class in ec.gob.firmadigital.servicio.model
      +
      +
      Representa el URL de un servidor API provisto por un tercero.
      +
      +
      ApiUrl() - Constructor for class ec.gob.firmadigital.servicio.model.ApiUrl
      +
       
      +
      ApiUrl(String, String) - Constructor for class ec.gob.firmadigital.servicio.model.ApiUrl
      +
       
      +
      ApiUrlNoEncontradoException - Exception in ec.gob.firmadigital.servicio
      +
      +
      Excepcion lanzada en caso de que no se encuentre un ApiUrl.
      +
      +
      ApiUrlNoEncontradoException() - Constructor for exception ec.gob.firmadigital.servicio.ApiUrlNoEncontradoException
      +
       
      +
      ApiUrlNoEncontradoException(String) - Constructor for exception ec.gob.firmadigital.servicio.ApiUrlNoEncontradoException
      +
       
      +
      appValidarCertificadoDigital(String, String, String) - Method in class ec.gob.firmadigital.servicio.ServicioAppValidarCertificadoDigital
      +
      +
      Busca un ApiUrl por URL.
      +
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-10.html b/docs/index-files/index-10.html new file mode 100644 index 0000000..57042a3 --- /dev/null +++ b/docs/index-files/index-10.html @@ -0,0 +1,159 @@ + + + + + +J-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      J

      +
      +
      JAXRSConfiguration - Class in ec.gob.firmadigital.servicio.rest
      +
      +
      Configuración de la aplicacion REST
      +
      +
      JAXRSConfiguration() - Constructor for class ec.gob.firmadigital.servicio.rest.JAXRSConfiguration
      +
       
      +
      JsonProcessor - Class in ec.gob.firmadigital.servicio.util
      +
       
      +
      JsonProcessor() - Constructor for class ec.gob.firmadigital.servicio.util.JsonProcessor
      +
       
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-11.html b/docs/index-files/index-11.html new file mode 100644 index 0000000..42a2966 --- /dev/null +++ b/docs/index-files/index-11.html @@ -0,0 +1,165 @@ + + + + + +L-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      L

      +
      +
      log(Log.Severidad, String, String) - Method in class ec.gob.firmadigital.servicio.ServicioLog
      +
       
      +
      Log - Class in ec.gob.firmadigital.servicio.model
      +
      +
      Representa una entrada de log.
      +
      +
      Log() - Constructor for class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      Log(Log.Severidad, String, String) - Constructor for class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      Log(Log.Severidad, String, String, String, String) - Constructor for class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      Log.Severidad - Enum in ec.gob.firmadigital.servicio.model
      +
      +
      Severidad de la entrada de log
      +
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-12.html b/docs/index-files/index-12.html new file mode 100644 index 0000000..b29fc1d --- /dev/null +++ b/docs/index-files/index-12.html @@ -0,0 +1,151 @@ + + + + + +M-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      M

      +
      +
      main(String[]) - Static method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      +
       
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-13.html b/docs/index-files/index-13.html new file mode 100644 index 0000000..6df3df0 --- /dev/null +++ b/docs/index-files/index-13.html @@ -0,0 +1,157 @@ + + + + + +O-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      O

      +
      +
      obtenerDocumentos(String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioDocumentoRest
      +
      +
      Obtiene documentos mediante un token JWT.
      +
      +
      obtenerDocumentos(String) - Method in class ec.gob.firmadigital.servicio.ServicioDocumento
      +
      +
      Obtiene un documento mediante un token.
      +
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-14.html b/docs/index-files/index-14.html new file mode 100644 index 0000000..c70d765 --- /dev/null +++ b/docs/index-files/index-14.html @@ -0,0 +1,191 @@ + + + + + +P-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      P

      +
      +
      parseJsonDocumentoFirmado(String) - Static method in class ec.gob.firmadigital.servicio.util.JsonProcessor
      +
       
      +
      parseJsonDocumentos(String) - Static method in class ec.gob.firmadigital.servicio.util.JsonProcessor
      +
      +
      Transforma una cadena de texto JSON con documentos en Base 64 en un Map + de archivos binarios.
      +
      +
      parseJsonFechaHora(String) - Static method in class ec.gob.firmadigital.servicio.util.JsonProcessor
      +
       
      +
      parseToken(String) - Method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      +
       
      +
      parseToken(String) - Method in interface ec.gob.firmadigital.servicio.token.ServicioToken
      +
      +
      Analizar los contenidos de un token para sacar la información necesaria + para procesar un documento.
      +
      +
      Pkcs12 - Class in ec.gob.firmadigital.servicio.util
      +
       
      +
      Pkcs12() - Constructor for class ec.gob.firmadigital.servicio.util.Pkcs12
      +
       
      +
      PropertiesUtils - Class in ec.gob.firmadigital.servicio.util
      +
       
      +
      PropertiesUtils() - Constructor for class ec.gob.firmadigital.servicio.util.PropertiesUtils
      +
       
      +
      propiedades(String, String, String, String, String, String, String, String, String) - Static method in class ec.gob.firmadigital.servicio.util.Propiedades
      +
       
      +
      Propiedades - Class in ec.gob.firmadigital.servicio.util
      +
       
      +
      Propiedades() - Constructor for class ec.gob.firmadigital.servicio.util.Propiedades
      +
       
      +
      ProtocoloFirmaDigital - Class in ec.gob.firmadigital.servicio.util
      +
       
      +
      ProtocoloFirmaDigital(String) - Constructor for class ec.gob.firmadigital.servicio.util.ProtocoloFirmaDigital
      +
       
      +
      ProtocoloInvalidoException - Exception in ec.gob.firmadigital.firmaec_app.exceptions
      +
       
      +
      ProtocoloInvalidoException(String) - Constructor for exception ec.gob.firmadigital.firmaec_app.exceptions.ProtocoloInvalidoException
      +
       
      +
      ProtocoloInvalidoException(String, URISyntaxException) - Constructor for exception ec.gob.firmadigital.firmaec_app.exceptions.ProtocoloInvalidoException
      +
       
      +
      ProtocoloInvalidoException(URISyntaxException) - Constructor for exception ec.gob.firmadigital.firmaec_app.exceptions.ProtocoloInvalidoException
      +
       
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-15.html b/docs/index-files/index-15.html new file mode 100644 index 0000000..66aa829 --- /dev/null +++ b/docs/index-files/index-15.html @@ -0,0 +1,413 @@ + + + + + +S-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      S

      +
      +
      ServicioApiUrl - Class in ec.gob.firmadigital.servicio
      +
      +
      Buscar en una lista de URLs permitidos para utilizar como API.
      +
      +
      ServicioApiUrl() - Constructor for class ec.gob.firmadigital.servicio.ServicioApiUrl
      +
       
      +
      ServicioApiUrlRest - Class in ec.gob.firmadigital.servicio.rest
      +
      +
      Servicio REST para verificar si existe un API URL.
      +
      +
      ServicioApiUrlRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioApiUrlRest
      +
       
      +
      ServicioAppFirmarDocumento - Class in ec.gob.firmadigital.servicio
      +
       
      +
      ServicioAppFirmarDocumento() - Constructor for class ec.gob.firmadigital.servicio.ServicioAppFirmarDocumento
      +
       
      +
      ServicioAppFirmarDocumentoRest - Class in ec.gob.firmadigital.servicio.rest
      +
      +
      REST Web Service
      +
      +
      ServicioAppFirmarDocumentoRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioAppFirmarDocumentoRest
      +
       
      +
      ServicioAppFirmarDocumentoTransversal - Class in ec.gob.firmadigital.servicio
      +
      +
      Buscar en una lista de URLs permitidos para utilizar como API.
      +
      +
      ServicioAppFirmarDocumentoTransversal() - Constructor for class ec.gob.firmadigital.servicio.ServicioAppFirmarDocumentoTransversal
      +
       
      +
      ServicioAppFirmarDocumentoTransversalRest - Class in ec.gob.firmadigital.servicio.rest
      +
      +
      REST Web Service
      +
      +
      ServicioAppFirmarDocumentoTransversalRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioAppFirmarDocumentoTransversalRest
      +
       
      +
      ServicioAppValidarCertificadoDigital - Class in ec.gob.firmadigital.servicio
      +
      +
      Buscar en una lista de URLs permitidos para utilizar como API.
      +
      +
      ServicioAppValidarCertificadoDigital() - Constructor for class ec.gob.firmadigital.servicio.ServicioAppValidarCertificadoDigital
      +
       
      +
      ServicioAppValidarCertificadoDigitalRest - Class in ec.gob.firmadigital.servicio.rest
      +
      +
      REST Web Service
      +
      +
      ServicioAppValidarCertificadoDigitalRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioAppValidarCertificadoDigitalRest
      +
       
      +
      ServicioAppVerificarDocumento - Class in ec.gob.firmadigital.servicio
      +
       
      +
      ServicioAppVerificarDocumento() - Constructor for class ec.gob.firmadigital.servicio.ServicioAppVerificarDocumento
      +
       
      +
      ServicioAppVerificarDocumentoRest - Class in ec.gob.firmadigital.servicio.rest
      +
      +
      REST Web Service
      +
      +
      ServicioAppVerificarDocumentoRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioAppVerificarDocumentoRest
      +
       
      +
      ServicioCertificadoRest - Class in ec.gob.firmadigital.servicio.rest
      +
      +
      Este servicio permite verificar si un certificado está revocado.
      +
      +
      ServicioCertificadoRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioCertificadoRest
      +
       
      +
      ServicioConsultaCrl - Class in ec.gob.firmadigital.servicio.crl
      +
      +
      Servicio para consultar los CRLs.
      +
      +
      ServicioConsultaCrl() - Constructor for class ec.gob.firmadigital.servicio.crl.ServicioConsultaCrl
      +
       
      +
      ServicioDescargaCrl - Class in ec.gob.firmadigital.servicio.crl
      +
      +
      Servicio para cargar los CRLs de las CAs soportadas en una tabla.
      +
      +
      ServicioDescargaCrl() - Constructor for class ec.gob.firmadigital.servicio.crl.ServicioDescargaCrl
      +
       
      +
      ServicioDocumento - Class in ec.gob.firmadigital.servicio
      +
      +
      Servicio para almacenar, actualizar y obtener documentos desde los sistemas + transversales y la aplicación en firmadigital-api
      +
      +
      ServicioDocumento() - Constructor for class ec.gob.firmadigital.servicio.ServicioDocumento
      +
       
      +
      ServicioDocumentoRest - Class in ec.gob.firmadigital.servicio.rest
      +
      +
      Servicio REST para almacenar, actualizar y obtener documentos desde los + sistemas transversales y comunicarse con aplicación firmadigital-api
      +
      +
      ServicioDocumentoRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioDocumentoRest
      +
       
      +
      ServicioEliminacionDocumento - Class in ec.gob.firmadigital.servicio
      +
      +
      Servicio para eliminar documentos de la base de datos que no han sido firmados por n minutos o n + horas.
      +
      +
      ServicioEliminacionDocumento() - Constructor for class ec.gob.firmadigital.servicio.ServicioEliminacionDocumento
      +
       
      +
      ServicioEstadisticaDocumentosFirmados - Class in ec.gob.firmadigital.servicio
      +
      +
      Buscar en una lista de URLs permitidos para utilizar como API.
      +
      +
      ServicioEstadisticaDocumentosFirmados() - Constructor for class ec.gob.firmadigital.servicio.ServicioEstadisticaDocumentosFirmados
      +
       
      +
      ServicioEstadisticaDocumentosFirmadosRest - Class in ec.gob.firmadigital.servicio.rest
      +
      +
      Buscar en una lista de URLs permitidos para utilizar como API.
      +
      +
      ServicioEstadisticaDocumentosFirmadosRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioEstadisticaDocumentosFirmadosRest
      +
       
      +
      ServicioEstadisticaUsuarios - Class in ec.gob.firmadigital.servicio
      +
      +
      Buscar en una lista de URLs permitidos para utilizar como API.
      +
      +
      ServicioEstadisticaUsuarios() - Constructor for class ec.gob.firmadigital.servicio.ServicioEstadisticaUsuarios
      +
       
      +
      ServicioEstadisticaUsuariosRest - Class in ec.gob.firmadigital.servicio.rest
      +
      +
      Buscar en una lista de URLs permitidos para utilizar como API.
      +
      +
      ServicioEstadisticaUsuariosRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioEstadisticaUsuariosRest
      +
       
      +
      ServicioLog - Class in ec.gob.firmadigital.servicio
      +
      +
      Servicio para almacenar, actualizar y obtener documentos desde los sistemas + transversales y la aplicación en firmadigital-api
      +
      +
      ServicioLog() - Constructor for class ec.gob.firmadigital.servicio.ServicioLog
      +
       
      +
      ServicioSistemaTransversal - Class in ec.gob.firmadigital.servicio
      +
      +
      Servicio para invocar Web Services de los sistemas transaccionales, utilizado + para almacenar el documento ya firmado.
      +
      +
      ServicioSistemaTransversal() - Constructor for class ec.gob.firmadigital.servicio.ServicioSistemaTransversal
      +
       
      +
      ServicioToken - Interface in ec.gob.firmadigital.servicio.token
      +
      +
      Servicio para gestionar tokens que permiten una comunicación confiable con + una aplicación externa.
      +
      +
      ServicioTokenJwt - Class in ec.gob.firmadigital.servicio.token.jwt
      +
      +
      Servicio para trabajar con tokens tipo JWT (https://jwt.io).
      +
      +
      ServicioTokenJwt() - Constructor for class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      +
       
      +
      ServicioValidacionCms - Class in ec.gob.firmadigital.servicio.cms
      +
      +
      Servicio de validacion de archivos CMS (P7M).
      +
      +
      ServicioValidacionCms() - Constructor for class ec.gob.firmadigital.servicio.cms.ServicioValidacionCms
      +
       
      +
      ServicioValidacionPdf - Class in ec.gob.firmadigital.servicio.pdf
      +
      +
      Servicio de verificacion de archivos PDF.
      +
      +
      ServicioValidacionPdf() - Constructor for class ec.gob.firmadigital.servicio.pdf.ServicioValidacionPdf
      +
       
      +
      ServicioValidacionPdfRest - Class in ec.gob.firmadigital.servicio.rest
      +
       
      +
      ServicioValidacionPdfRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioValidacionPdfRest
      +
       
      +
      ServicioValidarCertificadoDigitalException - Exception in ec.gob.firmadigital.servicio.exception
      +
      +
      Excepcion lanzada en caso de que la cedula que inicio el proceso en el + sistema transversal sea diferente a la cedula usada al firmar los docuentos.
      +
      +
      ServicioValidarCertificadoDigitalException() - Constructor for exception ec.gob.firmadigital.servicio.exception.ServicioValidarCertificadoDigitalException
      +
       
      +
      ServicioValidarCertificadoDigitalException(String) - Constructor for exception ec.gob.firmadigital.servicio.exception.ServicioValidarCertificadoDigitalException
      +
       
      +
      ServicioVersion - Class in ec.gob.firmadigital.servicio
      +
      +
      Buscar en una lista de versiones.
      +
      +
      ServicioVersion() - Constructor for class ec.gob.firmadigital.servicio.ServicioVersion
      +
       
      +
      ServicioVersionRest - Class in ec.gob.firmadigital.servicio.rest
      +
      +
      Servicio REST para verificar Versión.
      +
      +
      ServicioVersionRest() - Constructor for class ec.gob.firmadigital.servicio.rest.ServicioVersionRest
      +
       
      +
      setApiKey(String) - Method in class ec.gob.firmadigital.servicio.model.Sistema
      +
       
      +
      setApiKeyRest(String) - Method in class ec.gob.firmadigital.servicio.model.Sistema
      +
       
      +
      setAplicacion(String) - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      setArchivo(byte[]) - Method in class ec.gob.firmadigital.servicio.model.Documento
      +
       
      +
      setCategoria(String) - Method in class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      setCedula(String) - Method in class ec.gob.firmadigital.servicio.model.Documento
      +
       
      +
      setCedula(String) - Method in class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      setDescripcion(String) - Method in class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      setDescripcion(String) - Method in class ec.gob.firmadigital.servicio.model.Sistema
      +
       
      +
      setDescripcion(String) - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      setFecha(Date) - Method in class ec.gob.firmadigital.servicio.model.Documento
      +
       
      +
      setFecha(Date) - Method in class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      setFechaLiberacion(Date) - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      setFechaObsoleto(Date) - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      setId(long) - Method in class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      setId(long) - Method in class ec.gob.firmadigital.servicio.model.Sistema
      +
       
      +
      setId(long) - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      setId(Long) - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      +
       
      +
      setId(Long) - Method in class ec.gob.firmadigital.servicio.model.Documento
      +
       
      +
      setNombre(String) - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      +
       
      +
      setNombre(String) - Method in class ec.gob.firmadigital.servicio.model.Documento
      +
       
      +
      setNombre(String) - Method in class ec.gob.firmadigital.servicio.model.Sistema
      +
       
      +
      setSeveridad(Log.Severidad) - Method in class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      setSha(String) - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      setSistema(String) - Method in class ec.gob.firmadigital.servicio.model.Documento
      +
       
      +
      setSistema(String) - Method in class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      setSistemaOperativo(String) - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      setStatus(Boolean) - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      +
       
      +
      setStatus(Boolean) - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      setUrl(String) - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      +
       
      +
      setURL(String) - Method in class ec.gob.firmadigital.servicio.model.Sistema
      +
       
      +
      setVersion(String) - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      Sistema - Class in ec.gob.firmadigital.servicio.model
      +
      +
      Representa un sistema transversal.
      +
      +
      Sistema() - Constructor for class ec.gob.firmadigital.servicio.model.Sistema
      +
       
      +
      SistemaTransversalException - Exception in ec.gob.firmadigital.servicio
      +
      +
      Excepcion arrojada en caso de problemas al almacenar el documento en el + sistema transversal.
      +
      +
      SistemaTransversalException() - Constructor for exception ec.gob.firmadigital.servicio.SistemaTransversalException
      +
       
      +
      SistemaTransversalException(String) - Constructor for exception ec.gob.firmadigital.servicio.SistemaTransversalException
      +
       
      +
      SistemaTransversalException(String, Throwable) - Constructor for exception ec.gob.firmadigital.servicio.SistemaTransversalException
      +
       
      +
      SistemaTransversalException(Throwable) - Constructor for exception ec.gob.firmadigital.servicio.SistemaTransversalException
      +
       
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-16.html b/docs/index-files/index-16.html new file mode 100644 index 0000000..033356e --- /dev/null +++ b/docs/index-files/index-16.html @@ -0,0 +1,185 @@ + + + + + +T-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      T

      +
      +
      TokenExpiradoException - Exception in ec.gob.firmadigital.servicio.token
      +
      +
      Excepcion lanzada en caso de que el token haya expirado.
      +
      +
      TokenExpiradoException() - Constructor for exception ec.gob.firmadigital.servicio.token.TokenExpiradoException
      +
       
      +
      TokenExpiradoException(String) - Constructor for exception ec.gob.firmadigital.servicio.token.TokenExpiradoException
      +
       
      +
      TokenExpiradoException(String, Throwable) - Constructor for exception ec.gob.firmadigital.servicio.token.TokenExpiradoException
      +
       
      +
      TokenExpiradoException(Throwable) - Constructor for exception ec.gob.firmadigital.servicio.token.TokenExpiradoException
      +
       
      +
      TokenInvalidoException - Exception in ec.gob.firmadigital.servicio.token
      +
      +
      Excepcion lanzada en caso de que el token no sea valido.
      +
      +
      TokenInvalidoException() - Constructor for exception ec.gob.firmadigital.servicio.token.TokenInvalidoException
      +
       
      +
      TokenInvalidoException(String) - Constructor for exception ec.gob.firmadigital.servicio.token.TokenInvalidoException
      +
       
      +
      TokenInvalidoException(String, Throwable) - Constructor for exception ec.gob.firmadigital.servicio.token.TokenInvalidoException
      +
       
      +
      TokenInvalidoException(Throwable) - Constructor for exception ec.gob.firmadigital.servicio.token.TokenInvalidoException
      +
       
      +
      TokenTimeout - Class in ec.gob.firmadigital.servicio.token
      +
      +
      Timeout para un token.
      +
      +
      TokenTimeout() - Constructor for class ec.gob.firmadigital.servicio.token.TokenTimeout
      +
       
      +
      toString() - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      +
       
      +
      toString() - Method in class ec.gob.firmadigital.servicio.model.Documento
      +
       
      +
      toString() - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-17.html b/docs/index-files/index-17.html new file mode 100644 index 0000000..d1dfaec --- /dev/null +++ b/docs/index-files/index-17.html @@ -0,0 +1,194 @@ + + + + + +V-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      V

      +
      +
      validarCertificado(BigInteger) - Method in class ec.gob.firmadigital.servicio.rest.ServicioCertificadoRest
      +
       
      +
      validarCertificadoDigital(String, String, String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioAppValidarCertificadoDigitalRest
      +
       
      +
      validarDocumento(String, String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioAppVerificarDocumentoRest
      +
       
      +
      validarFechaRevocado(BigInteger) - Method in class ec.gob.firmadigital.servicio.rest.ServicioCertificadoRest
      +
       
      +
      validarVersion(String, String, String, String) - Method in class ec.gob.firmadigital.servicio.ServicioVersion
      +
      +
      Busca una versión, para ello se utiliza el sha con la versión 256
      +
      +
      valueOf(String) - Static method in enum ec.gob.firmadigital.servicio.model.Log.Severidad
      +
      +
      Returns the enum constant of this type with the specified name.
      +
      +
      values() - Static method in enum ec.gob.firmadigital.servicio.model.Log.Severidad
      +
      +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
      verificarApiKey(String, String) - Method in class ec.gob.firmadigital.servicio.ServicioSistemaTransversal
      +
       
      +
      verificarCms(String) - Method in class ec.gob.firmadigital.servicio.cms.ServicioValidacionCms
      +
       
      +
      verificarDocumento(String, String) - Method in class ec.gob.firmadigital.servicio.ServicioAppVerificarDocumento
      +
       
      +
      verificarPdf(String) - Method in class ec.gob.firmadigital.servicio.pdf.ServicioValidacionPdf
      +
       
      +
      verificarPdf(String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioValidacionPdfRest
      +
       
      +
      Version - Class in ec.gob.firmadigital.servicio.model
      +
      +
      Representa un sistema transversal.
      +
      +
      Version() - Constructor for class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      VersionException - Exception in ec.gob.firmadigital.servicio
      +
      +
      Excepcion lanzada en caso de problemas en la versión.
      +
      +
      VersionException() - Constructor for exception ec.gob.firmadigital.servicio.VersionException
      +
       
      +
      VersionException(String) - Constructor for exception ec.gob.firmadigital.servicio.VersionException
      +
       
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-18.html b/docs/index-files/index-18.html new file mode 100644 index 0000000..a19fe74 --- /dev/null +++ b/docs/index-files/index-18.html @@ -0,0 +1,153 @@ + + + + + +W-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      W

      +
      +
      warning(String, String) - Method in class ec.gob.firmadigital.servicio.ServicioLog
      +
       
      +
      WARNING - ec.gob.firmadigital.servicio.model.Log.Severidad
      +
       
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-2.html b/docs/index-files/index-2.html new file mode 100644 index 0000000..6923232 --- /dev/null +++ b/docs/index-files/index-2.html @@ -0,0 +1,206 @@ + + + + + +B-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      B

      +
      +
      Base64InvalidoException - Exception in ec.gob.firmadigital.servicio.util
      +
      +
      Excepción lanzada cuando no se puede decodificar un cadena de texto en + Base64.
      +
      +
      Base64InvalidoException(IllegalArgumentException) - Constructor for exception ec.gob.firmadigital.servicio.util.Base64InvalidoException
      +
       
      +
      Base64Util - Class in ec.gob.firmadigital.servicio.util
      +
      +
      Clase utilitaria para procesar formato Base64.
      +
      +
      Base64Util() - Constructor for class ec.gob.firmadigital.servicio.util.Base64Util
      +
       
      +
      borrarDocumentos() - Method in class ec.gob.firmadigital.servicio.ServicioEliminacionDocumento
      +
       
      +
      buildJson(Map<Long, byte[]>, String) - Static method in class ec.gob.firmadigital.servicio.util.JsonProcessor
      +
      +
      Crear una cadena de texto JSON para representar documentos en Base 64.
      +
      +
      buildJsonApi(String, String) - Static method in class ec.gob.firmadigital.servicio.util.JsonProcessor
      +
      +
      Crear una cadena de texto JSON con información del API para autorizar.
      +
      +
      buscarApiKeyRest(String) - Method in class ec.gob.firmadigital.servicio.ServicioSistemaTransversal
      +
      +
      Obtiene el ApiKey del Web Service de un sistema transversal, para + devolver el documento firmado por el usuario.
      +
      +
      buscarPorFechaDesdeFechaHasta(String, String, String) - Method in class ec.gob.firmadigital.servicio.ServicioEstadisticaDocumentosFirmados
      +
      +
      Busca un ApiUrl por URL.
      +
      +
      buscarPorFechaDesdeFechaHasta(String, String, String) - Method in class ec.gob.firmadigital.servicio.ServicioEstadisticaUsuarios
      +
      +
      Busca un ApiUrl por URL.
      +
      +
      buscarPorFechaDesdeFechaHasta(String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioEstadisticaDocumentosFirmadosRest
      +
       
      +
      buscarPorFechaDesdeFechaHasta(String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioEstadisticaUsuariosRest
      +
       
      +
      buscarPorUrl(String, String) - Method in class ec.gob.firmadigital.servicio.ServicioApiUrl
      +
      +
      Busca un ApiUrl por URL.
      +
      +
      buscarSistema(String) - Method in class ec.gob.firmadigital.servicio.ServicioSistemaTransversal
      +
      +
      Buscar un sistema transversal.
      +
      +
      buscarUrl(String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioApiUrlRest
      +
       
      +
      buscarUrlSistema(String) - Method in class ec.gob.firmadigital.servicio.ServicioSistemaTransversal
      +
      +
      Obtiene el URL del Web Service de un sistema transversal, para devolver + el documento firmado por el usuario.
      +
      +
      buscarVersion(String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioVersionRest
      +
       
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-3.html b/docs/index-files/index-3.html new file mode 100644 index 0000000..35e6fa2 --- /dev/null +++ b/docs/index-files/index-3.html @@ -0,0 +1,179 @@ + + + + + +C-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      C

      +
      +
      CedulaInvalidaException - Exception in ec.gob.firmadigital.servicio
      +
      +
      Excepcion lanzada en caso de que la cedula que inicio el proceso en el + sistema transversal sea diferente a la cedula usada al firmar los docuentos.
      +
      +
      CedulaInvalidaException() - Constructor for exception ec.gob.firmadigital.servicio.CedulaInvalidaException
      +
       
      +
      CedulaInvalidaException(String) - Constructor for exception ec.gob.firmadigital.servicio.CedulaInvalidaException
      +
       
      +
      CertificadoRevocadoException - Exception in ec.gob.firmadigital.servicio
      +
      +
      Excepcion lanzada en caso de que el certificado esté revocado.
      +
      +
      CertificadoRevocadoException() - Constructor for exception ec.gob.firmadigital.servicio.CertificadoRevocadoException
      +
       
      +
      CertificadoRevocadoException(String) - Constructor for exception ec.gob.firmadigital.servicio.CertificadoRevocadoException
      +
       
      +
      codificarLlaveSecreta(SecretKey) - Static method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      +
      +
      Genera una llave privada randómica para configurar como variable dentro + del archivo standalone.xml del servidor de aplicaciones WildFly/JBoss.
      +
      +
      crearDocumentos(String, String, Map<String, String>) - Method in class ec.gob.firmadigital.servicio.ServicioDocumento
      +
      +
      Crea documentos en el sistema, para ser firmados por un cliente.
      +
      +
      crearDocumentos(String, String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioDocumentoRest
      +
      +
      Almacena varios documentos desde un Sistema Transversal.
      +
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-4.html b/docs/index-files/index-4.html new file mode 100644 index 0000000..bd6acfa --- /dev/null +++ b/docs/index-files/index-4.html @@ -0,0 +1,184 @@ + + + + + +D-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      D

      +
      +
      decode(String) - Static method in class ec.gob.firmadigital.servicio.util.Base64Util
      +
       
      +
      decodificarLlaveSecreta(String) - Static method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      +
      +
      Decodificar llave secreta en Base 64.
      +
      +
      DEFAULT_TIMEOUT_HOURS - Static variable in class ec.gob.firmadigital.servicio.token.TokenTimeout
      +
      +
      Horas antes de que el Token expire.
      +
      +
      DEFAULT_TIMEOUT_MINUTES - Static variable in class ec.gob.firmadigital.servicio.token.TokenTimeout
      +
      +
      Minutos antes de que el Token expire.
      +
      +
      Documento - Class in ec.gob.firmadigital.servicio.model
      +
      +
      Representa un documento recibido para ser procesado en el sistema.
      +
      +
      Documento() - Constructor for class ec.gob.firmadigital.servicio.model.Documento
      +
       
      +
      Documento(String, String, Date, String, byte[]) - Constructor for class ec.gob.firmadigital.servicio.model.Documento
      +
       
      +
      DocumentoNoExisteException - Exception in ec.gob.firmadigital.servicio
      +
      +
      Excepcion arrojada en caso de problemas al almacenar el documento en el + sistema transversal.
      +
      +
      DocumentoNoExisteException() - Constructor for exception ec.gob.firmadigital.servicio.DocumentoNoExisteException
      +
       
      +
      DocumentoNoExisteException(String) - Constructor for exception ec.gob.firmadigital.servicio.DocumentoNoExisteException
      +
       
      +
      DocumentoNoExisteException(String, Throwable) - Constructor for exception ec.gob.firmadigital.servicio.DocumentoNoExisteException
      +
       
      +
      DocumentoNoExisteException(Throwable) - Constructor for exception ec.gob.firmadigital.servicio.DocumentoNoExisteException
      +
       
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-5.html b/docs/index-files/index-5.html new file mode 100644 index 0000000..7367799 --- /dev/null +++ b/docs/index-files/index-5.html @@ -0,0 +1,177 @@ + + + + + +E-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      E

      +
      +
      ec.gob.firmadigital.firmaec_app.exceptions - package ec.gob.firmadigital.firmaec_app.exceptions
      +
       
      +
      ec.gob.firmadigital.servicio - package ec.gob.firmadigital.servicio
      +
       
      +
      ec.gob.firmadigital.servicio.cms - package ec.gob.firmadigital.servicio.cms
      +
       
      +
      ec.gob.firmadigital.servicio.crl - package ec.gob.firmadigital.servicio.crl
      +
       
      +
      ec.gob.firmadigital.servicio.exception - package ec.gob.firmadigital.servicio.exception
      +
       
      +
      ec.gob.firmadigital.servicio.model - package ec.gob.firmadigital.servicio.model
      +
       
      +
      ec.gob.firmadigital.servicio.pdf - package ec.gob.firmadigital.servicio.pdf
      +
       
      +
      ec.gob.firmadigital.servicio.rest - package ec.gob.firmadigital.servicio.rest
      +
       
      +
      ec.gob.firmadigital.servicio.token - package ec.gob.firmadigital.servicio.token
      +
       
      +
      ec.gob.firmadigital.servicio.token.jwt - package ec.gob.firmadigital.servicio.token.jwt
      +
       
      +
      ec.gob.firmadigital.servicio.util - package ec.gob.firmadigital.servicio.util
      +
       
      +
      encode(byte[]) - Static method in class ec.gob.firmadigital.servicio.util.Base64Util
      +
       
      +
      error(String, String) - Method in class ec.gob.firmadigital.servicio.ServicioLog
      +
       
      +
      ERROR - ec.gob.firmadigital.servicio.model.Log.Severidad
      +
       
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-6.html b/docs/index-files/index-6.html new file mode 100644 index 0000000..81464e9 --- /dev/null +++ b/docs/index-files/index-6.html @@ -0,0 +1,173 @@ + + + + + +F-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      F

      +
      +
      fechaRevocado(BigInteger) - Method in class ec.gob.firmadigital.servicio.crl.ServicioConsultaCrl
      +
       
      +
      FileUtil - Class in ec.gob.firmadigital.servicio.util
      +
       
      +
      FileUtil() - Constructor for class ec.gob.firmadigital.servicio.util.FileUtil
      +
       
      +
      FirmaDigital - Class in ec.gob.firmadigital.servicio.util
      +
       
      +
      FirmaDigital() - Constructor for class ec.gob.firmadigital.servicio.util.FirmaDigital
      +
       
      +
      firmarDocumento(String, String, String, String, String, String, String, String, String, String, String) - Method in class ec.gob.firmadigital.servicio.ServicioAppFirmarDocumento
      +
       
      +
      firmarDocumento(String, String, String, String, String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioAppFirmarDocumentoRest
      +
       
      +
      firmarDocumentoTransversal(String, String, String, String) - Method in class ec.gob.firmadigital.servicio.rest.ServicioAppFirmarDocumentoTransversalRest
      +
       
      +
      firmarPDF(KeyStore, String, byte[], char[], Properties, String, String) - Method in class ec.gob.firmadigital.servicio.util.FirmaDigital
      +
       
      +
      firmarTransversal(String, String, String, String, String, String, String, String, String, String, String, String, String, boolean, boolean, String) - Method in class ec.gob.firmadigital.servicio.ServicioAppFirmarDocumentoTransversal
      +
       
      +
      firmarXML(KeyStore, String, byte[], char[], Properties, String, String) - Method in class ec.gob.firmadigital.servicio.util.FirmaDigital
      +
      +
      Firmar un documento XML usando un KeyStore y una clave.
      +
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-7.html b/docs/index-files/index-7.html new file mode 100644 index 0000000..ec79efa --- /dev/null +++ b/docs/index-files/index-7.html @@ -0,0 +1,247 @@ + + + + + +G-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      G

      +
      +
      generarLlaveSecreta() - Static method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      +
      +
      Genera una llave secreta para firmar los tokens.
      +
      +
      generarToken(Map<String, Object>) - Method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      +
       
      +
      generarToken(Map<String, Object>) - Method in interface ec.gob.firmadigital.servicio.token.ServicioToken
      +
      +
      Generar un token sin expiracion.
      +
      +
      generarToken(Map<String, Object>, Date) - Method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      +
       
      +
      generarToken(Map<String, Object>, Date) - Method in interface ec.gob.firmadigital.servicio.token.ServicioToken
      +
      +
      Generar un token con tiempo de expiracion
      +
      +
      getAlias(KeyStore) - Static method in class ec.gob.firmadigital.servicio.util.Pkcs12
      +
       
      +
      getApiKey() - Method in class ec.gob.firmadigital.servicio.model.Sistema
      +
       
      +
      getApiKeyRest() - Method in class ec.gob.firmadigital.servicio.model.Sistema
      +
       
      +
      getAplicacion() - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      getArchivo() - Method in class ec.gob.firmadigital.servicio.model.Documento
      +
       
      +
      getCategoria() - Method in class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      getCedula() - Method in class ec.gob.firmadigital.servicio.model.Documento
      +
       
      +
      getCedula() - Method in class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      getConfig() - Static method in class ec.gob.firmadigital.servicio.util.PropertiesUtils
      +
       
      +
      getDescripcion() - Method in class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      getDescripcion() - Method in class ec.gob.firmadigital.servicio.model.Sistema
      +
       
      +
      getDescripcion() - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      getDocumentoKB() - Static method in class ec.gob.firmadigital.servicio.util.PropertiesUtils
      +
       
      +
      getFecha() - Method in class ec.gob.firmadigital.servicio.model.Documento
      +
       
      +
      getFecha() - Method in class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      getFechaLiberacion() - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      getFechaObsoleto() - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      getId() - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      +
       
      +
      getId() - Method in class ec.gob.firmadigital.servicio.model.Documento
      +
       
      +
      getId() - Method in class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      getId() - Method in class ec.gob.firmadigital.servicio.model.Sistema
      +
       
      +
      getId() - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      getKeyStore(String, String) - Static method in class ec.gob.firmadigital.servicio.util.Pkcs12
      +
       
      +
      getMimeType(byte[]) - Static method in class ec.gob.firmadigital.servicio.util.FileUtil
      +
       
      +
      getNombre() - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      +
       
      +
      getNombre() - Method in class ec.gob.firmadigital.servicio.model.Documento
      +
       
      +
      getNombre() - Method in class ec.gob.firmadigital.servicio.model.Sistema
      +
       
      +
      getNombre(byte[]) - Method in class ec.gob.firmadigital.servicio.pdf.ServicioValidacionPdf
      +
       
      +
      getOperacion() - Method in class ec.gob.firmadigital.servicio.util.ProtocoloFirmaDigital
      +
       
      +
      getParametros() - Method in class ec.gob.firmadigital.servicio.util.ProtocoloFirmaDigital
      +
       
      +
      getSeveridad() - Method in class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      getSha() - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      getSistema() - Method in class ec.gob.firmadigital.servicio.model.Documento
      +
       
      +
      getSistema() - Method in class ec.gob.firmadigital.servicio.model.Log
      +
       
      +
      getSistema() - Method in class ec.gob.firmadigital.servicio.util.ProtocoloFirmaDigital
      +
       
      +
      getSistemaOperativo() - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      getStatus() - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      +
       
      +
      getStatus() - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      getUrl() - Method in class ec.gob.firmadigital.servicio.model.ApiUrl
      +
       
      +
      getURL() - Method in class ec.gob.firmadigital.servicio.model.Sistema
      +
       
      +
      getVersion() - Method in class ec.gob.firmadigital.servicio.model.Version
      +
       
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-8.html b/docs/index-files/index-8.html new file mode 100644 index 0000000..49f4a5c --- /dev/null +++ b/docs/index-files/index-8.html @@ -0,0 +1,151 @@ + + + + + +H-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      H

      +
      +
      hashMD5(String) - Static method in class ec.gob.firmadigital.servicio.util.FileUtil
      +
       
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index-files/index-9.html b/docs/index-files/index-9.html new file mode 100644 index 0000000..101e79b --- /dev/null +++ b/docs/index-files/index-9.html @@ -0,0 +1,169 @@ + + + + + +I-Index + + + + + + + + + + + + + + +
      + +
      +
      +
      A B C D E F G H I J L M O P S T V W 
      All Classes All Packages + + +

      I

      +
      +
      importarCrls() - Method in class ec.gob.firmadigital.servicio.crl.ServicioDescargaCrl
      +
      +
      To run on every Monday at 9 am
      +
      +
      info(String, String) - Method in class ec.gob.firmadigital.servicio.ServicioLog
      +
       
      +
      INFO - ec.gob.firmadigital.servicio.model.Log.Severidad
      +
       
      +
      init() - Method in class ec.gob.firmadigital.servicio.crl.ServicioDescargaCrl
      +
       
      +
      init() - Method in class ec.gob.firmadigital.servicio.ServicioEliminacionDocumento
      +
       
      +
      init() - Method in class ec.gob.firmadigital.servicio.token.jwt.ServicioTokenJwt
      +
       
      +
      IS_PRODUCTION - Static variable in class ec.gob.firmadigital.servicio.token.TokenTimeout
      +
      +
      Indica si es el ambiente de producción o de pruebas.
      +
      +
      isRevocado(BigInteger) - Method in class ec.gob.firmadigital.servicio.crl.ServicioConsultaCrl
      +
       
      +
      +A B C D E F G H I J L M O P S T V W 
      All Classes All Packages
      +
      +
      + +
      + + diff --git a/docs/index.html b/docs/index.html index d856418..509470c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,76 +1,197 @@ - + - - -firmadigital-servicio 2.10.0-SNAPSHOT API - + + + + + + + + + +
      + +
      +
      + +
      +
      + +
      + diff --git a/docs/jquery/external/jquery/jquery.js b/docs/jquery/external/jquery/jquery.js new file mode 100644 index 0000000..5b16efa --- /dev/null +++ b/docs/jquery/external/jquery/jquery.js @@ -0,0 +1,10598 @@ +/*! + * jQuery JavaScript Library v3.4.1 + * https://jquery.com/ + * + * Includes Sizzle.js + * https://sizzlejs.com/ + * + * Copyright JS Foundation and other contributors + * Released under the MIT license + * https://jquery.org/license + * + * Date: 2019-05-01T21:04Z + */ +( function( global, factory ) { + + "use strict"; + + if ( typeof module === "object" && typeof module.exports === "object" ) { + + // For CommonJS and CommonJS-like environments where a proper `window` + // is present, execute the factory and get jQuery. + // For environments that do not have a `window` with a `document` + // (such as Node.js), expose a factory as module.exports. + // This accentuates the need for the creation of a real `window`. + // e.g. var jQuery = require("jquery")(window); + // See ticket #14549 for more info. + module.exports = global.document ? + factory( global, true ) : + function( w ) { + if ( !w.document ) { + throw new Error( "jQuery requires a window with a document" ); + } + return factory( w ); + }; + } else { + factory( global ); + } + +// Pass this if window is not defined yet +} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { + +// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 +// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode +// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common +// enough that all such attempts are guarded in a try block. +"use strict"; + +var arr = []; + +var document = window.document; + +var getProto = Object.getPrototypeOf; + +var slice = arr.slice; + +var concat = arr.concat; + +var push = arr.push; + +var indexOf = arr.indexOf; + +var class2type = {}; + +var toString = class2type.toString; + +var hasOwn = class2type.hasOwnProperty; + +var fnToString = hasOwn.toString; + +var ObjectFunctionString = fnToString.call( Object ); + +var support = {}; + +var isFunction = function isFunction( obj ) { + + // Support: Chrome <=57, Firefox <=52 + // In some browsers, typeof returns "function" for HTML elements + // (i.e., `typeof document.createElement( "object" ) === "function"`). + // We don't want to classify *any* DOM node as a function. + return typeof obj === "function" && typeof obj.nodeType !== "number"; + }; + + +var isWindow = function isWindow( obj ) { + return obj != null && obj === obj.window; + }; + + + + + var preservedScriptAttributes = { + type: true, + src: true, + nonce: true, + noModule: true + }; + + function DOMEval( code, node, doc ) { + doc = doc || document; + + var i, val, + script = doc.createElement( "script" ); + + script.text = code; + if ( node ) { + for ( i in preservedScriptAttributes ) { + + // Support: Firefox 64+, Edge 18+ + // Some browsers don't support the "nonce" property on scripts. + // On the other hand, just using `getAttribute` is not enough as + // the `nonce` attribute is reset to an empty string whenever it + // becomes browsing-context connected. + // See https://github.com/whatwg/html/issues/2369 + // See https://html.spec.whatwg.org/#nonce-attributes + // The `node.getAttribute` check was added for the sake of + // `jQuery.globalEval` so that it can fake a nonce-containing node + // via an object. + val = node[ i ] || node.getAttribute && node.getAttribute( i ); + if ( val ) { + script.setAttribute( i, val ); + } + } + } + doc.head.appendChild( script ).parentNode.removeChild( script ); + } + + +function toType( obj ) { + if ( obj == null ) { + return obj + ""; + } + + // Support: Android <=2.3 only (functionish RegExp) + return typeof obj === "object" || typeof obj === "function" ? + class2type[ toString.call( obj ) ] || "object" : + typeof obj; +} +/* global Symbol */ +// Defining this global in .eslintrc.json would create a danger of using the global +// unguarded in another place, it seems safer to define global only for this module + + + +var + version = "3.4.1", + + // Define a local copy of jQuery + jQuery = function( selector, context ) { + + // The jQuery object is actually just the init constructor 'enhanced' + // Need init if jQuery is called (just allow error to be thrown if not included) + return new jQuery.fn.init( selector, context ); + }, + + // Support: Android <=4.0 only + // Make sure we trim BOM and NBSP + rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g; + +jQuery.fn = jQuery.prototype = { + + // The current version of jQuery being used + jquery: version, + + constructor: jQuery, + + // The default length of a jQuery object is 0 + length: 0, + + toArray: function() { + return slice.call( this ); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + + // Return all the elements in a clean array + if ( num == null ) { + return slice.call( this ); + } + + // Return just the one element from the set + return num < 0 ? this[ num + this.length ] : this[ num ]; + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems ) { + + // Build a new jQuery matched element set + var ret = jQuery.merge( this.constructor(), elems ); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + + // Return the newly-formed element set + return ret; + }, + + // Execute a callback for every element in the matched set. + each: function( callback ) { + return jQuery.each( this, callback ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map( this, function( elem, i ) { + return callback.call( elem, i, elem ); + } ) ); + }, + + slice: function() { + return this.pushStack( slice.apply( this, arguments ) ); + }, + + first: function() { + return this.eq( 0 ); + }, + + last: function() { + return this.eq( -1 ); + }, + + eq: function( i ) { + var len = this.length, + j = +i + ( i < 0 ? len : 0 ); + return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); + }, + + end: function() { + return this.prevObject || this.constructor(); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: push, + sort: arr.sort, + splice: arr.splice +}; + +jQuery.extend = jQuery.fn.extend = function() { + var options, name, src, copy, copyIsArray, clone, + target = arguments[ 0 ] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + + // Skip the boolean and the target + target = arguments[ i ] || {}; + i++; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !isFunction( target ) ) { + target = {}; + } + + // Extend jQuery itself if only one argument is passed + if ( i === length ) { + target = this; + i--; + } + + for ( ; i < length; i++ ) { + + // Only deal with non-null/undefined values + if ( ( options = arguments[ i ] ) != null ) { + + // Extend the base object + for ( name in options ) { + copy = options[ name ]; + + // Prevent Object.prototype pollution + // Prevent never-ending loop + if ( name === "__proto__" || target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject( copy ) || + ( copyIsArray = Array.isArray( copy ) ) ) ) { + src = target[ name ]; + + // Ensure proper type for the source value + if ( copyIsArray && !Array.isArray( src ) ) { + clone = []; + } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) { + clone = {}; + } else { + clone = src; + } + copyIsArray = false; + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; + +jQuery.extend( { + + // Unique for each copy of jQuery on the page + expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), + + // Assume jQuery is ready without the ready module + isReady: true, + + error: function( msg ) { + throw new Error( msg ); + }, + + noop: function() {}, + + isPlainObject: function( obj ) { + var proto, Ctor; + + // Detect obvious negatives + // Use toString instead of jQuery.type to catch host objects + if ( !obj || toString.call( obj ) !== "[object Object]" ) { + return false; + } + + proto = getProto( obj ); + + // Objects with no prototype (e.g., `Object.create( null )`) are plain + if ( !proto ) { + return true; + } + + // Objects with prototype are plain iff they were constructed by a global Object function + Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; + return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; + }, + + isEmptyObject: function( obj ) { + var name; + + for ( name in obj ) { + return false; + } + return true; + }, + + // Evaluates a script in a global context + globalEval: function( code, options ) { + DOMEval( code, { nonce: options && options.nonce } ); + }, + + each: function( obj, callback ) { + var length, i = 0; + + if ( isArrayLike( obj ) ) { + length = obj.length; + for ( ; i < length; i++ ) { + if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { + break; + } + } + } else { + for ( i in obj ) { + if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { + break; + } + } + } + + return obj; + }, + + // Support: Android <=4.0 only + trim: function( text ) { + return text == null ? + "" : + ( text + "" ).replace( rtrim, "" ); + }, + + // results is for internal usage only + makeArray: function( arr, results ) { + var ret = results || []; + + if ( arr != null ) { + if ( isArrayLike( Object( arr ) ) ) { + jQuery.merge( ret, + typeof arr === "string" ? + [ arr ] : arr + ); + } else { + push.call( ret, arr ); + } + } + + return ret; + }, + + inArray: function( elem, arr, i ) { + return arr == null ? -1 : indexOf.call( arr, elem, i ); + }, + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + merge: function( first, second ) { + var len = +second.length, + j = 0, + i = first.length; + + for ( ; j < len; j++ ) { + first[ i++ ] = second[ j ]; + } + + first.length = i; + + return first; + }, + + grep: function( elems, callback, invert ) { + var callbackInverse, + matches = [], + i = 0, + length = elems.length, + callbackExpect = !invert; + + // Go through the array, only saving the items + // that pass the validator function + for ( ; i < length; i++ ) { + callbackInverse = !callback( elems[ i ], i ); + if ( callbackInverse !== callbackExpect ) { + matches.push( elems[ i ] ); + } + } + + return matches; + }, + + // arg is for internal usage only + map: function( elems, callback, arg ) { + var length, value, + i = 0, + ret = []; + + // Go through the array, translating each of the items to their new values + if ( isArrayLike( elems ) ) { + length = elems.length; + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + + // Go through every key on the object, + } else { + for ( i in elems ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + } + + // Flatten any nested arrays + return concat.apply( [], ret ); + }, + + // A global GUID counter for objects + guid: 1, + + // jQuery.support is not used in Core but other projects attach their + // properties to it so it needs to exist. + support: support +} ); + +if ( typeof Symbol === "function" ) { + jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; +} + +// Populate the class2type map +jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), +function( i, name ) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); +} ); + +function isArrayLike( obj ) { + + // Support: real iOS 8.2 only (not reproducible in simulator) + // `in` check used to prevent JIT error (gh-2145) + // hasOwn isn't used here due to false negatives + // regarding Nodelist length in IE + var length = !!obj && "length" in obj && obj.length, + type = toType( obj ); + + if ( isFunction( obj ) || isWindow( obj ) ) { + return false; + } + + return type === "array" || length === 0 || + typeof length === "number" && length > 0 && ( length - 1 ) in obj; +} +var Sizzle = +/*! + * Sizzle CSS Selector Engine v2.3.4 + * https://sizzlejs.com/ + * + * Copyright JS Foundation and other contributors + * Released under the MIT license + * https://js.foundation/ + * + * Date: 2019-04-08 + */ +(function( window ) { + +var i, + support, + Expr, + getText, + isXML, + tokenize, + compile, + select, + outermostContext, + sortInput, + hasDuplicate, + + // Local document vars + setDocument, + document, + docElem, + documentIsHTML, + rbuggyQSA, + rbuggyMatches, + matches, + contains, + + // Instance-specific data + expando = "sizzle" + 1 * new Date(), + preferredDoc = window.document, + dirruns = 0, + done = 0, + classCache = createCache(), + tokenCache = createCache(), + compilerCache = createCache(), + nonnativeSelectorCache = createCache(), + sortOrder = function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + } + return 0; + }, + + // Instance methods + hasOwn = ({}).hasOwnProperty, + arr = [], + pop = arr.pop, + push_native = arr.push, + push = arr.push, + slice = arr.slice, + // Use a stripped-down indexOf as it's faster than native + // https://jsperf.com/thor-indexof-vs-for/5 + indexOf = function( list, elem ) { + var i = 0, + len = list.length; + for ( ; i < len; i++ ) { + if ( list[i] === elem ) { + return i; + } + } + return -1; + }, + + booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", + + // Regular expressions + + // http://www.w3.org/TR/css3-selectors/#whitespace + whitespace = "[\\x20\\t\\r\\n\\f]", + + // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier + identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+", + + // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors + attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + + // Operator (capture 2) + "*([*^$|!~]?=)" + whitespace + + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + + "*\\]", + + pseudos = ":(" + identifier + ")(?:\\((" + + // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: + // 1. quoted (capture 3; capture 4 or capture 5) + "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + + // 2. simple (capture 6) + "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + + // 3. anything else (capture 2) + ".*" + + ")\\)|)", + + // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter + rwhitespace = new RegExp( whitespace + "+", "g" ), + rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), + + rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), + rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), + rdescend = new RegExp( whitespace + "|>" ), + + rpseudo = new RegExp( pseudos ), + ridentifier = new RegExp( "^" + identifier + "$" ), + + matchExpr = { + "ID": new RegExp( "^#(" + identifier + ")" ), + "CLASS": new RegExp( "^\\.(" + identifier + ")" ), + "TAG": new RegExp( "^(" + identifier + "|[*])" ), + "ATTR": new RegExp( "^" + attributes ), + "PSEUDO": new RegExp( "^" + pseudos ), + "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), + "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), + // For use in libraries implementing .is() + // We use this for POS matching in `select` + "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) + }, + + rhtml = /HTML$/i, + rinputs = /^(?:input|select|textarea|button)$/i, + rheader = /^h\d$/i, + + rnative = /^[^{]+\{\s*\[native \w/, + + // Easily-parseable/retrievable ID or TAG or CLASS selectors + rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, + + rsibling = /[+~]/, + + // CSS escapes + // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters + runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), + funescape = function( _, escaped, escapedWhitespace ) { + var high = "0x" + escaped - 0x10000; + // NaN means non-codepoint + // Support: Firefox<24 + // Workaround erroneous numeric interpretation of +"0x" + return high !== high || escapedWhitespace ? + escaped : + high < 0 ? + // BMP codepoint + String.fromCharCode( high + 0x10000 ) : + // Supplemental Plane codepoint (surrogate pair) + String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); + }, + + // CSS string/identifier serialization + // https://drafts.csswg.org/cssom/#common-serializing-idioms + rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, + fcssescape = function( ch, asCodePoint ) { + if ( asCodePoint ) { + + // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER + if ( ch === "\0" ) { + return "\uFFFD"; + } + + // Control characters and (dependent upon position) numbers get escaped as code points + return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; + } + + // Other potentially-special ASCII characters get backslash-escaped + return "\\" + ch; + }, + + // Used for iframes + // See setDocument() + // Removing the function wrapper causes a "Permission Denied" + // error in IE + unloadHandler = function() { + setDocument(); + }, + + inDisabledFieldset = addCombinator( + function( elem ) { + return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset"; + }, + { dir: "parentNode", next: "legend" } + ); + +// Optimize for push.apply( _, NodeList ) +try { + push.apply( + (arr = slice.call( preferredDoc.childNodes )), + preferredDoc.childNodes + ); + // Support: Android<4.0 + // Detect silently failing push.apply + arr[ preferredDoc.childNodes.length ].nodeType; +} catch ( e ) { + push = { apply: arr.length ? + + // Leverage slice if possible + function( target, els ) { + push_native.apply( target, slice.call(els) ); + } : + + // Support: IE<9 + // Otherwise append directly + function( target, els ) { + var j = target.length, + i = 0; + // Can't trust NodeList.length + while ( (target[j++] = els[i++]) ) {} + target.length = j - 1; + } + }; +} + +function Sizzle( selector, context, results, seed ) { + var m, i, elem, nid, match, groups, newSelector, + newContext = context && context.ownerDocument, + + // nodeType defaults to 9, since context defaults to document + nodeType = context ? context.nodeType : 9; + + results = results || []; + + // Return early from calls with invalid selector or context + if ( typeof selector !== "string" || !selector || + nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { + + return results; + } + + // Try to shortcut find operations (as opposed to filters) in HTML documents + if ( !seed ) { + + if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { + setDocument( context ); + } + context = context || document; + + if ( documentIsHTML ) { + + // If the selector is sufficiently simple, try using a "get*By*" DOM method + // (excepting DocumentFragment context, where the methods don't exist) + if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { + + // ID selector + if ( (m = match[1]) ) { + + // Document context + if ( nodeType === 9 ) { + if ( (elem = context.getElementById( m )) ) { + + // Support: IE, Opera, Webkit + // TODO: identify versions + // getElementById can match elements by name instead of ID + if ( elem.id === m ) { + results.push( elem ); + return results; + } + } else { + return results; + } + + // Element context + } else { + + // Support: IE, Opera, Webkit + // TODO: identify versions + // getElementById can match elements by name instead of ID + if ( newContext && (elem = newContext.getElementById( m )) && + contains( context, elem ) && + elem.id === m ) { + + results.push( elem ); + return results; + } + } + + // Type selector + } else if ( match[2] ) { + push.apply( results, context.getElementsByTagName( selector ) ); + return results; + + // Class selector + } else if ( (m = match[3]) && support.getElementsByClassName && + context.getElementsByClassName ) { + + push.apply( results, context.getElementsByClassName( m ) ); + return results; + } + } + + // Take advantage of querySelectorAll + if ( support.qsa && + !nonnativeSelectorCache[ selector + " " ] && + (!rbuggyQSA || !rbuggyQSA.test( selector )) && + + // Support: IE 8 only + // Exclude object elements + (nodeType !== 1 || context.nodeName.toLowerCase() !== "object") ) { + + newSelector = selector; + newContext = context; + + // qSA considers elements outside a scoping root when evaluating child or + // descendant combinators, which is not what we want. + // In such cases, we work around the behavior by prefixing every selector in the + // list with an ID selector referencing the scope context. + // Thanks to Andrew Dupont for this technique. + if ( nodeType === 1 && rdescend.test( selector ) ) { + + // Capture the context ID, setting it first if necessary + if ( (nid = context.getAttribute( "id" )) ) { + nid = nid.replace( rcssescape, fcssescape ); + } else { + context.setAttribute( "id", (nid = expando) ); + } + + // Prefix every selector in the list + groups = tokenize( selector ); + i = groups.length; + while ( i-- ) { + groups[i] = "#" + nid + " " + toSelector( groups[i] ); + } + newSelector = groups.join( "," ); + + // Expand context for sibling selectors + newContext = rsibling.test( selector ) && testContext( context.parentNode ) || + context; + } + + try { + push.apply( results, + newContext.querySelectorAll( newSelector ) + ); + return results; + } catch ( qsaError ) { + nonnativeSelectorCache( selector, true ); + } finally { + if ( nid === expando ) { + context.removeAttribute( "id" ); + } + } + } + } + } + + // All others + return select( selector.replace( rtrim, "$1" ), context, results, seed ); +} + +/** + * Create key-value caches of limited size + * @returns {function(string, object)} Returns the Object data after storing it on itself with + * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) + * deleting the oldest entry + */ +function createCache() { + var keys = []; + + function cache( key, value ) { + // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) + if ( keys.push( key + " " ) > Expr.cacheLength ) { + // Only keep the most recent entries + delete cache[ keys.shift() ]; + } + return (cache[ key + " " ] = value); + } + return cache; +} + +/** + * Mark a function for special use by Sizzle + * @param {Function} fn The function to mark + */ +function markFunction( fn ) { + fn[ expando ] = true; + return fn; +} + +/** + * Support testing using an element + * @param {Function} fn Passed the created element and returns a boolean result + */ +function assert( fn ) { + var el = document.createElement("fieldset"); + + try { + return !!fn( el ); + } catch (e) { + return false; + } finally { + // Remove from its parent by default + if ( el.parentNode ) { + el.parentNode.removeChild( el ); + } + // release memory in IE + el = null; + } +} + +/** + * Adds the same handler for all of the specified attrs + * @param {String} attrs Pipe-separated list of attributes + * @param {Function} handler The method that will be applied + */ +function addHandle( attrs, handler ) { + var arr = attrs.split("|"), + i = arr.length; + + while ( i-- ) { + Expr.attrHandle[ arr[i] ] = handler; + } +} + +/** + * Checks document order of two siblings + * @param {Element} a + * @param {Element} b + * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b + */ +function siblingCheck( a, b ) { + var cur = b && a, + diff = cur && a.nodeType === 1 && b.nodeType === 1 && + a.sourceIndex - b.sourceIndex; + + // Use IE sourceIndex if available on both nodes + if ( diff ) { + return diff; + } + + // Check if b follows a + if ( cur ) { + while ( (cur = cur.nextSibling) ) { + if ( cur === b ) { + return -1; + } + } + } + + return a ? 1 : -1; +} + +/** + * Returns a function to use in pseudos for input types + * @param {String} type + */ +function createInputPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for buttons + * @param {String} type + */ +function createButtonPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for :enabled/:disabled + * @param {Boolean} disabled true for :disabled; false for :enabled + */ +function createDisabledPseudo( disabled ) { + + // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable + return function( elem ) { + + // Only certain elements can match :enabled or :disabled + // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled + // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled + if ( "form" in elem ) { + + // Check for inherited disabledness on relevant non-disabled elements: + // * listed form-associated elements in a disabled fieldset + // https://html.spec.whatwg.org/multipage/forms.html#category-listed + // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled + // * option elements in a disabled optgroup + // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled + // All such elements have a "form" property. + if ( elem.parentNode && elem.disabled === false ) { + + // Option elements defer to a parent optgroup if present + if ( "label" in elem ) { + if ( "label" in elem.parentNode ) { + return elem.parentNode.disabled === disabled; + } else { + return elem.disabled === disabled; + } + } + + // Support: IE 6 - 11 + // Use the isDisabled shortcut property to check for disabled fieldset ancestors + return elem.isDisabled === disabled || + + // Where there is no isDisabled, check manually + /* jshint -W018 */ + elem.isDisabled !== !disabled && + inDisabledFieldset( elem ) === disabled; + } + + return elem.disabled === disabled; + + // Try to winnow out elements that can't be disabled before trusting the disabled property. + // Some victims get caught in our net (label, legend, menu, track), but it shouldn't + // even exist on them, let alone have a boolean value. + } else if ( "label" in elem ) { + return elem.disabled === disabled; + } + + // Remaining elements are neither :enabled nor :disabled + return false; + }; +} + +/** + * Returns a function to use in pseudos for positionals + * @param {Function} fn + */ +function createPositionalPseudo( fn ) { + return markFunction(function( argument ) { + argument = +argument; + return markFunction(function( seed, matches ) { + var j, + matchIndexes = fn( [], seed.length, argument ), + i = matchIndexes.length; + + // Match elements found at the specified indexes + while ( i-- ) { + if ( seed[ (j = matchIndexes[i]) ] ) { + seed[j] = !(matches[j] = seed[j]); + } + } + }); + }); +} + +/** + * Checks a node for validity as a Sizzle context + * @param {Element|Object=} context + * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value + */ +function testContext( context ) { + return context && typeof context.getElementsByTagName !== "undefined" && context; +} + +// Expose support vars for convenience +support = Sizzle.support = {}; + +/** + * Detects XML nodes + * @param {Element|Object} elem An element or a document + * @returns {Boolean} True iff elem is a non-HTML XML node + */ +isXML = Sizzle.isXML = function( elem ) { + var namespace = elem.namespaceURI, + docElem = (elem.ownerDocument || elem).documentElement; + + // Support: IE <=8 + // Assume HTML when documentElement doesn't yet exist, such as inside loading iframes + // https://bugs.jquery.com/ticket/4833 + return !rhtml.test( namespace || docElem && docElem.nodeName || "HTML" ); +}; + +/** + * Sets document-related variables once based on the current document + * @param {Element|Object} [doc] An element or document object to use to set the document + * @returns {Object} Returns the current document + */ +setDocument = Sizzle.setDocument = function( node ) { + var hasCompare, subWindow, + doc = node ? node.ownerDocument || node : preferredDoc; + + // Return early if doc is invalid or already selected + if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { + return document; + } + + // Update global variables + document = doc; + docElem = document.documentElement; + documentIsHTML = !isXML( document ); + + // Support: IE 9-11, Edge + // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) + if ( preferredDoc !== document && + (subWindow = document.defaultView) && subWindow.top !== subWindow ) { + + // Support: IE 11, Edge + if ( subWindow.addEventListener ) { + subWindow.addEventListener( "unload", unloadHandler, false ); + + // Support: IE 9 - 10 only + } else if ( subWindow.attachEvent ) { + subWindow.attachEvent( "onunload", unloadHandler ); + } + } + + /* Attributes + ---------------------------------------------------------------------- */ + + // Support: IE<8 + // Verify that getAttribute really returns attributes and not properties + // (excepting IE8 booleans) + support.attributes = assert(function( el ) { + el.className = "i"; + return !el.getAttribute("className"); + }); + + /* getElement(s)By* + ---------------------------------------------------------------------- */ + + // Check if getElementsByTagName("*") returns only elements + support.getElementsByTagName = assert(function( el ) { + el.appendChild( document.createComment("") ); + return !el.getElementsByTagName("*").length; + }); + + // Support: IE<9 + support.getElementsByClassName = rnative.test( document.getElementsByClassName ); + + // Support: IE<10 + // Check if getElementById returns elements by name + // The broken getElementById methods don't pick up programmatically-set names, + // so use a roundabout getElementsByName test + support.getById = assert(function( el ) { + docElem.appendChild( el ).id = expando; + return !document.getElementsByName || !document.getElementsByName( expando ).length; + }); + + // ID filter and find + if ( support.getById ) { + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + return elem.getAttribute("id") === attrId; + }; + }; + Expr.find["ID"] = function( id, context ) { + if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { + var elem = context.getElementById( id ); + return elem ? [ elem ] : []; + } + }; + } else { + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + var node = typeof elem.getAttributeNode !== "undefined" && + elem.getAttributeNode("id"); + return node && node.value === attrId; + }; + }; + + // Support: IE 6 - 7 only + // getElementById is not reliable as a find shortcut + Expr.find["ID"] = function( id, context ) { + if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { + var node, i, elems, + elem = context.getElementById( id ); + + if ( elem ) { + + // Verify the id attribute + node = elem.getAttributeNode("id"); + if ( node && node.value === id ) { + return [ elem ]; + } + + // Fall back on getElementsByName + elems = context.getElementsByName( id ); + i = 0; + while ( (elem = elems[i++]) ) { + node = elem.getAttributeNode("id"); + if ( node && node.value === id ) { + return [ elem ]; + } + } + } + + return []; + } + }; + } + + // Tag + Expr.find["TAG"] = support.getElementsByTagName ? + function( tag, context ) { + if ( typeof context.getElementsByTagName !== "undefined" ) { + return context.getElementsByTagName( tag ); + + // DocumentFragment nodes don't have gEBTN + } else if ( support.qsa ) { + return context.querySelectorAll( tag ); + } + } : + + function( tag, context ) { + var elem, + tmp = [], + i = 0, + // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too + results = context.getElementsByTagName( tag ); + + // Filter out possible comments + if ( tag === "*" ) { + while ( (elem = results[i++]) ) { + if ( elem.nodeType === 1 ) { + tmp.push( elem ); + } + } + + return tmp; + } + return results; + }; + + // Class + Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { + if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { + return context.getElementsByClassName( className ); + } + }; + + /* QSA/matchesSelector + ---------------------------------------------------------------------- */ + + // QSA and matchesSelector support + + // matchesSelector(:active) reports false when true (IE9/Opera 11.5) + rbuggyMatches = []; + + // qSa(:focus) reports false when true (Chrome 21) + // We allow this because of a bug in IE8/9 that throws an error + // whenever `document.activeElement` is accessed on an iframe + // So, we allow :focus to pass through QSA all the time to avoid the IE error + // See https://bugs.jquery.com/ticket/13378 + rbuggyQSA = []; + + if ( (support.qsa = rnative.test( document.querySelectorAll )) ) { + // Build QSA regex + // Regex strategy adopted from Diego Perini + assert(function( el ) { + // Select is set to empty string on purpose + // This is to test IE's treatment of not explicitly + // setting a boolean content attribute, + // since its presence should be enough + // https://bugs.jquery.com/ticket/12359 + docElem.appendChild( el ).innerHTML = "" + + ""; + + // Support: IE8, Opera 11-12.16 + // Nothing should be selected when empty strings follow ^= or $= or *= + // The test attribute must be unknown in Opera but "safe" for WinRT + // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section + if ( el.querySelectorAll("[msallowcapture^='']").length ) { + rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); + } + + // Support: IE8 + // Boolean attributes and "value" are not treated correctly + if ( !el.querySelectorAll("[selected]").length ) { + rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); + } + + // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ + if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { + rbuggyQSA.push("~="); + } + + // Webkit/Opera - :checked should return selected option elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + // IE8 throws error here and will not see later tests + if ( !el.querySelectorAll(":checked").length ) { + rbuggyQSA.push(":checked"); + } + + // Support: Safari 8+, iOS 8+ + // https://bugs.webkit.org/show_bug.cgi?id=136851 + // In-page `selector#id sibling-combinator selector` fails + if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { + rbuggyQSA.push(".#.+[+~]"); + } + }); + + assert(function( el ) { + el.innerHTML = "" + + ""; + + // Support: Windows 8 Native Apps + // The type and name attributes are restricted during .innerHTML assignment + var input = document.createElement("input"); + input.setAttribute( "type", "hidden" ); + el.appendChild( input ).setAttribute( "name", "D" ); + + // Support: IE8 + // Enforce case-sensitivity of name attribute + if ( el.querySelectorAll("[name=d]").length ) { + rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); + } + + // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) + // IE8 throws error here and will not see later tests + if ( el.querySelectorAll(":enabled").length !== 2 ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + // Support: IE9-11+ + // IE's :disabled selector does not pick up the children of disabled fieldsets + docElem.appendChild( el ).disabled = true; + if ( el.querySelectorAll(":disabled").length !== 2 ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + // Opera 10-11 does not throw on post-comma invalid pseudos + el.querySelectorAll("*,:x"); + rbuggyQSA.push(",.*:"); + }); + } + + if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || + docElem.webkitMatchesSelector || + docElem.mozMatchesSelector || + docElem.oMatchesSelector || + docElem.msMatchesSelector) )) ) { + + assert(function( el ) { + // Check to see if it's possible to do matchesSelector + // on a disconnected node (IE 9) + support.disconnectedMatch = matches.call( el, "*" ); + + // This should fail with an exception + // Gecko does not error, returns false instead + matches.call( el, "[s!='']:x" ); + rbuggyMatches.push( "!=", pseudos ); + }); + } + + rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); + rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); + + /* Contains + ---------------------------------------------------------------------- */ + hasCompare = rnative.test( docElem.compareDocumentPosition ); + + // Element contains another + // Purposefully self-exclusive + // As in, an element does not contain itself + contains = hasCompare || rnative.test( docElem.contains ) ? + function( a, b ) { + var adown = a.nodeType === 9 ? a.documentElement : a, + bup = b && b.parentNode; + return a === bup || !!( bup && bup.nodeType === 1 && ( + adown.contains ? + adown.contains( bup ) : + a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 + )); + } : + function( a, b ) { + if ( b ) { + while ( (b = b.parentNode) ) { + if ( b === a ) { + return true; + } + } + } + return false; + }; + + /* Sorting + ---------------------------------------------------------------------- */ + + // Document order sorting + sortOrder = hasCompare ? + function( a, b ) { + + // Flag for duplicate removal + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + // Sort on method existence if only one input has compareDocumentPosition + var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; + if ( compare ) { + return compare; + } + + // Calculate position if both inputs belong to the same document + compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? + a.compareDocumentPosition( b ) : + + // Otherwise we know they are disconnected + 1; + + // Disconnected nodes + if ( compare & 1 || + (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { + + // Choose the first element that is related to our preferred document + if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { + return -1; + } + if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { + return 1; + } + + // Maintain original order + return sortInput ? + ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : + 0; + } + + return compare & 4 ? -1 : 1; + } : + function( a, b ) { + // Exit early if the nodes are identical + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + var cur, + i = 0, + aup = a.parentNode, + bup = b.parentNode, + ap = [ a ], + bp = [ b ]; + + // Parentless nodes are either documents or disconnected + if ( !aup || !bup ) { + return a === document ? -1 : + b === document ? 1 : + aup ? -1 : + bup ? 1 : + sortInput ? + ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : + 0; + + // If the nodes are siblings, we can do a quick check + } else if ( aup === bup ) { + return siblingCheck( a, b ); + } + + // Otherwise we need full lists of their ancestors for comparison + cur = a; + while ( (cur = cur.parentNode) ) { + ap.unshift( cur ); + } + cur = b; + while ( (cur = cur.parentNode) ) { + bp.unshift( cur ); + } + + // Walk down the tree looking for a discrepancy + while ( ap[i] === bp[i] ) { + i++; + } + + return i ? + // Do a sibling check if the nodes have a common ancestor + siblingCheck( ap[i], bp[i] ) : + + // Otherwise nodes in our document sort first + ap[i] === preferredDoc ? -1 : + bp[i] === preferredDoc ? 1 : + 0; + }; + + return document; +}; + +Sizzle.matches = function( expr, elements ) { + return Sizzle( expr, null, null, elements ); +}; + +Sizzle.matchesSelector = function( elem, expr ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + if ( support.matchesSelector && documentIsHTML && + !nonnativeSelectorCache[ expr + " " ] && + ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && + ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { + + try { + var ret = matches.call( elem, expr ); + + // IE 9's matchesSelector returns false on disconnected nodes + if ( ret || support.disconnectedMatch || + // As well, disconnected nodes are said to be in a document + // fragment in IE 9 + elem.document && elem.document.nodeType !== 11 ) { + return ret; + } + } catch (e) { + nonnativeSelectorCache( expr, true ); + } + } + + return Sizzle( expr, document, null, [ elem ] ).length > 0; +}; + +Sizzle.contains = function( context, elem ) { + // Set document vars if needed + if ( ( context.ownerDocument || context ) !== document ) { + setDocument( context ); + } + return contains( context, elem ); +}; + +Sizzle.attr = function( elem, name ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + var fn = Expr.attrHandle[ name.toLowerCase() ], + // Don't get fooled by Object.prototype properties (jQuery #13807) + val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? + fn( elem, name, !documentIsHTML ) : + undefined; + + return val !== undefined ? + val : + support.attributes || !documentIsHTML ? + elem.getAttribute( name ) : + (val = elem.getAttributeNode(name)) && val.specified ? + val.value : + null; +}; + +Sizzle.escape = function( sel ) { + return (sel + "").replace( rcssescape, fcssescape ); +}; + +Sizzle.error = function( msg ) { + throw new Error( "Syntax error, unrecognized expression: " + msg ); +}; + +/** + * Document sorting and removing duplicates + * @param {ArrayLike} results + */ +Sizzle.uniqueSort = function( results ) { + var elem, + duplicates = [], + j = 0, + i = 0; + + // Unless we *know* we can detect duplicates, assume their presence + hasDuplicate = !support.detectDuplicates; + sortInput = !support.sortStable && results.slice( 0 ); + results.sort( sortOrder ); + + if ( hasDuplicate ) { + while ( (elem = results[i++]) ) { + if ( elem === results[ i ] ) { + j = duplicates.push( i ); + } + } + while ( j-- ) { + results.splice( duplicates[ j ], 1 ); + } + } + + // Clear input after sorting to release objects + // See https://github.com/jquery/sizzle/pull/225 + sortInput = null; + + return results; +}; + +/** + * Utility function for retrieving the text value of an array of DOM nodes + * @param {Array|Element} elem + */ +getText = Sizzle.getText = function( elem ) { + var node, + ret = "", + i = 0, + nodeType = elem.nodeType; + + if ( !nodeType ) { + // If no nodeType, this is expected to be an array + while ( (node = elem[i++]) ) { + // Do not traverse comment nodes + ret += getText( node ); + } + } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { + // Use textContent for elements + // innerText usage removed for consistency of new lines (jQuery #11153) + if ( typeof elem.textContent === "string" ) { + return elem.textContent; + } else { + // Traverse its children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + ret += getText( elem ); + } + } + } else if ( nodeType === 3 || nodeType === 4 ) { + return elem.nodeValue; + } + // Do not include comment or processing instruction nodes + + return ret; +}; + +Expr = Sizzle.selectors = { + + // Can be adjusted by the user + cacheLength: 50, + + createPseudo: markFunction, + + match: matchExpr, + + attrHandle: {}, + + find: {}, + + relative: { + ">": { dir: "parentNode", first: true }, + " ": { dir: "parentNode" }, + "+": { dir: "previousSibling", first: true }, + "~": { dir: "previousSibling" } + }, + + preFilter: { + "ATTR": function( match ) { + match[1] = match[1].replace( runescape, funescape ); + + // Move the given value to match[3] whether quoted or unquoted + match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); + + if ( match[2] === "~=" ) { + match[3] = " " + match[3] + " "; + } + + return match.slice( 0, 4 ); + }, + + "CHILD": function( match ) { + /* matches from matchExpr["CHILD"] + 1 type (only|nth|...) + 2 what (child|of-type) + 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) + 4 xn-component of xn+y argument ([+-]?\d*n|) + 5 sign of xn-component + 6 x of xn-component + 7 sign of y-component + 8 y of y-component + */ + match[1] = match[1].toLowerCase(); + + if ( match[1].slice( 0, 3 ) === "nth" ) { + // nth-* requires argument + if ( !match[3] ) { + Sizzle.error( match[0] ); + } + + // numeric x and y parameters for Expr.filter.CHILD + // remember that false/true cast respectively to 0/1 + match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); + match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); + + // other types prohibit arguments + } else if ( match[3] ) { + Sizzle.error( match[0] ); + } + + return match; + }, + + "PSEUDO": function( match ) { + var excess, + unquoted = !match[6] && match[2]; + + if ( matchExpr["CHILD"].test( match[0] ) ) { + return null; + } + + // Accept quoted arguments as-is + if ( match[3] ) { + match[2] = match[4] || match[5] || ""; + + // Strip excess characters from unquoted arguments + } else if ( unquoted && rpseudo.test( unquoted ) && + // Get excess from tokenize (recursively) + (excess = tokenize( unquoted, true )) && + // advance to the next closing parenthesis + (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { + + // excess is a negative index + match[0] = match[0].slice( 0, excess ); + match[2] = unquoted.slice( 0, excess ); + } + + // Return only captures needed by the pseudo filter method (type and argument) + return match.slice( 0, 3 ); + } + }, + + filter: { + + "TAG": function( nodeNameSelector ) { + var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); + return nodeNameSelector === "*" ? + function() { return true; } : + function( elem ) { + return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; + }; + }, + + "CLASS": function( className ) { + var pattern = classCache[ className + " " ]; + + return pattern || + (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && + classCache( className, function( elem ) { + return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); + }); + }, + + "ATTR": function( name, operator, check ) { + return function( elem ) { + var result = Sizzle.attr( elem, name ); + + if ( result == null ) { + return operator === "!="; + } + if ( !operator ) { + return true; + } + + result += ""; + + return operator === "=" ? result === check : + operator === "!=" ? result !== check : + operator === "^=" ? check && result.indexOf( check ) === 0 : + operator === "*=" ? check && result.indexOf( check ) > -1 : + operator === "$=" ? check && result.slice( -check.length ) === check : + operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : + operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : + false; + }; + }, + + "CHILD": function( type, what, argument, first, last ) { + var simple = type.slice( 0, 3 ) !== "nth", + forward = type.slice( -4 ) !== "last", + ofType = what === "of-type"; + + return first === 1 && last === 0 ? + + // Shortcut for :nth-*(n) + function( elem ) { + return !!elem.parentNode; + } : + + function( elem, context, xml ) { + var cache, uniqueCache, outerCache, node, nodeIndex, start, + dir = simple !== forward ? "nextSibling" : "previousSibling", + parent = elem.parentNode, + name = ofType && elem.nodeName.toLowerCase(), + useCache = !xml && !ofType, + diff = false; + + if ( parent ) { + + // :(first|last|only)-(child|of-type) + if ( simple ) { + while ( dir ) { + node = elem; + while ( (node = node[ dir ]) ) { + if ( ofType ? + node.nodeName.toLowerCase() === name : + node.nodeType === 1 ) { + + return false; + } + } + // Reverse direction for :only-* (if we haven't yet done so) + start = dir = type === "only" && !start && "nextSibling"; + } + return true; + } + + start = [ forward ? parent.firstChild : parent.lastChild ]; + + // non-xml :nth-child(...) stores cache data on `parent` + if ( forward && useCache ) { + + // Seek `elem` from a previously-cached index + + // ...in a gzip-friendly way + node = parent; + outerCache = node[ expando ] || (node[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + (outerCache[ node.uniqueID ] = {}); + + cache = uniqueCache[ type ] || []; + nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; + diff = nodeIndex && cache[ 2 ]; + node = nodeIndex && parent.childNodes[ nodeIndex ]; + + while ( (node = ++nodeIndex && node && node[ dir ] || + + // Fallback to seeking `elem` from the start + (diff = nodeIndex = 0) || start.pop()) ) { + + // When found, cache indexes on `parent` and break + if ( node.nodeType === 1 && ++diff && node === elem ) { + uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; + break; + } + } + + } else { + // Use previously-cached element index if available + if ( useCache ) { + // ...in a gzip-friendly way + node = elem; + outerCache = node[ expando ] || (node[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + (outerCache[ node.uniqueID ] = {}); + + cache = uniqueCache[ type ] || []; + nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; + diff = nodeIndex; + } + + // xml :nth-child(...) + // or :nth-last-child(...) or :nth(-last)?-of-type(...) + if ( diff === false ) { + // Use the same loop as above to seek `elem` from the start + while ( (node = ++nodeIndex && node && node[ dir ] || + (diff = nodeIndex = 0) || start.pop()) ) { + + if ( ( ofType ? + node.nodeName.toLowerCase() === name : + node.nodeType === 1 ) && + ++diff ) { + + // Cache the index of each encountered element + if ( useCache ) { + outerCache = node[ expando ] || (node[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + (outerCache[ node.uniqueID ] = {}); + + uniqueCache[ type ] = [ dirruns, diff ]; + } + + if ( node === elem ) { + break; + } + } + } + } + } + + // Incorporate the offset, then check against cycle size + diff -= last; + return diff === first || ( diff % first === 0 && diff / first >= 0 ); + } + }; + }, + + "PSEUDO": function( pseudo, argument ) { + // pseudo-class names are case-insensitive + // http://www.w3.org/TR/selectors/#pseudo-classes + // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters + // Remember that setFilters inherits from pseudos + var args, + fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || + Sizzle.error( "unsupported pseudo: " + pseudo ); + + // The user may use createPseudo to indicate that + // arguments are needed to create the filter function + // just as Sizzle does + if ( fn[ expando ] ) { + return fn( argument ); + } + + // But maintain support for old signatures + if ( fn.length > 1 ) { + args = [ pseudo, pseudo, "", argument ]; + return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? + markFunction(function( seed, matches ) { + var idx, + matched = fn( seed, argument ), + i = matched.length; + while ( i-- ) { + idx = indexOf( seed, matched[i] ); + seed[ idx ] = !( matches[ idx ] = matched[i] ); + } + }) : + function( elem ) { + return fn( elem, 0, args ); + }; + } + + return fn; + } + }, + + pseudos: { + // Potentially complex pseudos + "not": markFunction(function( selector ) { + // Trim the selector passed to compile + // to avoid treating leading and trailing + // spaces as combinators + var input = [], + results = [], + matcher = compile( selector.replace( rtrim, "$1" ) ); + + return matcher[ expando ] ? + markFunction(function( seed, matches, context, xml ) { + var elem, + unmatched = matcher( seed, null, xml, [] ), + i = seed.length; + + // Match elements unmatched by `matcher` + while ( i-- ) { + if ( (elem = unmatched[i]) ) { + seed[i] = !(matches[i] = elem); + } + } + }) : + function( elem, context, xml ) { + input[0] = elem; + matcher( input, null, xml, results ); + // Don't keep the element (issue #299) + input[0] = null; + return !results.pop(); + }; + }), + + "has": markFunction(function( selector ) { + return function( elem ) { + return Sizzle( selector, elem ).length > 0; + }; + }), + + "contains": markFunction(function( text ) { + text = text.replace( runescape, funescape ); + return function( elem ) { + return ( elem.textContent || getText( elem ) ).indexOf( text ) > -1; + }; + }), + + // "Whether an element is represented by a :lang() selector + // is based solely on the element's language value + // being equal to the identifier C, + // or beginning with the identifier C immediately followed by "-". + // The matching of C against the element's language value is performed case-insensitively. + // The identifier C does not have to be a valid language name." + // http://www.w3.org/TR/selectors/#lang-pseudo + "lang": markFunction( function( lang ) { + // lang value must be a valid identifier + if ( !ridentifier.test(lang || "") ) { + Sizzle.error( "unsupported lang: " + lang ); + } + lang = lang.replace( runescape, funescape ).toLowerCase(); + return function( elem ) { + var elemLang; + do { + if ( (elemLang = documentIsHTML ? + elem.lang : + elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { + + elemLang = elemLang.toLowerCase(); + return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; + } + } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); + return false; + }; + }), + + // Miscellaneous + "target": function( elem ) { + var hash = window.location && window.location.hash; + return hash && hash.slice( 1 ) === elem.id; + }, + + "root": function( elem ) { + return elem === docElem; + }, + + "focus": function( elem ) { + return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); + }, + + // Boolean properties + "enabled": createDisabledPseudo( false ), + "disabled": createDisabledPseudo( true ), + + "checked": function( elem ) { + // In CSS3, :checked should return both checked and selected elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + var nodeName = elem.nodeName.toLowerCase(); + return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); + }, + + "selected": function( elem ) { + // Accessing this property makes selected-by-default + // options in Safari work properly + if ( elem.parentNode ) { + elem.parentNode.selectedIndex; + } + + return elem.selected === true; + }, + + // Contents + "empty": function( elem ) { + // http://www.w3.org/TR/selectors/#empty-pseudo + // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), + // but not by others (comment: 8; processing instruction: 7; etc.) + // nodeType < 6 works because attributes (2) do not appear as children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + if ( elem.nodeType < 6 ) { + return false; + } + } + return true; + }, + + "parent": function( elem ) { + return !Expr.pseudos["empty"]( elem ); + }, + + // Element/input types + "header": function( elem ) { + return rheader.test( elem.nodeName ); + }, + + "input": function( elem ) { + return rinputs.test( elem.nodeName ); + }, + + "button": function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === "button" || name === "button"; + }, + + "text": function( elem ) { + var attr; + return elem.nodeName.toLowerCase() === "input" && + elem.type === "text" && + + // Support: IE<8 + // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" + ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); + }, + + // Position-in-collection + "first": createPositionalPseudo(function() { + return [ 0 ]; + }), + + "last": createPositionalPseudo(function( matchIndexes, length ) { + return [ length - 1 ]; + }), + + "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { + return [ argument < 0 ? argument + length : argument ]; + }), + + "even": createPositionalPseudo(function( matchIndexes, length ) { + var i = 0; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "odd": createPositionalPseudo(function( matchIndexes, length ) { + var i = 1; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? + argument + length : + argument > length ? + length : + argument; + for ( ; --i >= 0; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; ++i < length; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }) + } +}; + +Expr.pseudos["nth"] = Expr.pseudos["eq"]; + +// Add button/input type pseudos +for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { + Expr.pseudos[ i ] = createInputPseudo( i ); +} +for ( i in { submit: true, reset: true } ) { + Expr.pseudos[ i ] = createButtonPseudo( i ); +} + +// Easy API for creating new setFilters +function setFilters() {} +setFilters.prototype = Expr.filters = Expr.pseudos; +Expr.setFilters = new setFilters(); + +tokenize = Sizzle.tokenize = function( selector, parseOnly ) { + var matched, match, tokens, type, + soFar, groups, preFilters, + cached = tokenCache[ selector + " " ]; + + if ( cached ) { + return parseOnly ? 0 : cached.slice( 0 ); + } + + soFar = selector; + groups = []; + preFilters = Expr.preFilter; + + while ( soFar ) { + + // Comma and first run + if ( !matched || (match = rcomma.exec( soFar )) ) { + if ( match ) { + // Don't consume trailing commas as valid + soFar = soFar.slice( match[0].length ) || soFar; + } + groups.push( (tokens = []) ); + } + + matched = false; + + // Combinators + if ( (match = rcombinators.exec( soFar )) ) { + matched = match.shift(); + tokens.push({ + value: matched, + // Cast descendant combinators to space + type: match[0].replace( rtrim, " " ) + }); + soFar = soFar.slice( matched.length ); + } + + // Filters + for ( type in Expr.filter ) { + if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || + (match = preFilters[ type ]( match ))) ) { + matched = match.shift(); + tokens.push({ + value: matched, + type: type, + matches: match + }); + soFar = soFar.slice( matched.length ); + } + } + + if ( !matched ) { + break; + } + } + + // Return the length of the invalid excess + // if we're just parsing + // Otherwise, throw an error or return tokens + return parseOnly ? + soFar.length : + soFar ? + Sizzle.error( selector ) : + // Cache the tokens + tokenCache( selector, groups ).slice( 0 ); +}; + +function toSelector( tokens ) { + var i = 0, + len = tokens.length, + selector = ""; + for ( ; i < len; i++ ) { + selector += tokens[i].value; + } + return selector; +} + +function addCombinator( matcher, combinator, base ) { + var dir = combinator.dir, + skip = combinator.next, + key = skip || dir, + checkNonElements = base && key === "parentNode", + doneName = done++; + + return combinator.first ? + // Check against closest ancestor/preceding element + function( elem, context, xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + return matcher( elem, context, xml ); + } + } + return false; + } : + + // Check against all ancestor/preceding elements + function( elem, context, xml ) { + var oldCache, uniqueCache, outerCache, + newCache = [ dirruns, doneName ]; + + // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching + if ( xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + if ( matcher( elem, context, xml ) ) { + return true; + } + } + } + } else { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + outerCache = elem[ expando ] || (elem[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {}); + + if ( skip && skip === elem.nodeName.toLowerCase() ) { + elem = elem[ dir ] || elem; + } else if ( (oldCache = uniqueCache[ key ]) && + oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { + + // Assign to newCache so results back-propagate to previous elements + return (newCache[ 2 ] = oldCache[ 2 ]); + } else { + // Reuse newcache so results back-propagate to previous elements + uniqueCache[ key ] = newCache; + + // A match means we're done; a fail means we have to keep checking + if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { + return true; + } + } + } + } + } + return false; + }; +} + +function elementMatcher( matchers ) { + return matchers.length > 1 ? + function( elem, context, xml ) { + var i = matchers.length; + while ( i-- ) { + if ( !matchers[i]( elem, context, xml ) ) { + return false; + } + } + return true; + } : + matchers[0]; +} + +function multipleContexts( selector, contexts, results ) { + var i = 0, + len = contexts.length; + for ( ; i < len; i++ ) { + Sizzle( selector, contexts[i], results ); + } + return results; +} + +function condense( unmatched, map, filter, context, xml ) { + var elem, + newUnmatched = [], + i = 0, + len = unmatched.length, + mapped = map != null; + + for ( ; i < len; i++ ) { + if ( (elem = unmatched[i]) ) { + if ( !filter || filter( elem, context, xml ) ) { + newUnmatched.push( elem ); + if ( mapped ) { + map.push( i ); + } + } + } + } + + return newUnmatched; +} + +function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { + if ( postFilter && !postFilter[ expando ] ) { + postFilter = setMatcher( postFilter ); + } + if ( postFinder && !postFinder[ expando ] ) { + postFinder = setMatcher( postFinder, postSelector ); + } + return markFunction(function( seed, results, context, xml ) { + var temp, i, elem, + preMap = [], + postMap = [], + preexisting = results.length, + + // Get initial elements from seed or context + elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), + + // Prefilter to get matcher input, preserving a map for seed-results synchronization + matcherIn = preFilter && ( seed || !selector ) ? + condense( elems, preMap, preFilter, context, xml ) : + elems, + + matcherOut = matcher ? + // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, + postFinder || ( seed ? preFilter : preexisting || postFilter ) ? + + // ...intermediate processing is necessary + [] : + + // ...otherwise use results directly + results : + matcherIn; + + // Find primary matches + if ( matcher ) { + matcher( matcherIn, matcherOut, context, xml ); + } + + // Apply postFilter + if ( postFilter ) { + temp = condense( matcherOut, postMap ); + postFilter( temp, [], context, xml ); + + // Un-match failing elements by moving them back to matcherIn + i = temp.length; + while ( i-- ) { + if ( (elem = temp[i]) ) { + matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); + } + } + } + + if ( seed ) { + if ( postFinder || preFilter ) { + if ( postFinder ) { + // Get the final matcherOut by condensing this intermediate into postFinder contexts + temp = []; + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) ) { + // Restore matcherIn since elem is not yet a final match + temp.push( (matcherIn[i] = elem) ); + } + } + postFinder( null, (matcherOut = []), temp, xml ); + } + + // Move matched elements from seed to results to keep them synchronized + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) && + (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { + + seed[temp] = !(results[temp] = elem); + } + } + } + + // Add elements to results, through postFinder if defined + } else { + matcherOut = condense( + matcherOut === results ? + matcherOut.splice( preexisting, matcherOut.length ) : + matcherOut + ); + if ( postFinder ) { + postFinder( null, results, matcherOut, xml ); + } else { + push.apply( results, matcherOut ); + } + } + }); +} + +function matcherFromTokens( tokens ) { + var checkContext, matcher, j, + len = tokens.length, + leadingRelative = Expr.relative[ tokens[0].type ], + implicitRelative = leadingRelative || Expr.relative[" "], + i = leadingRelative ? 1 : 0, + + // The foundational matcher ensures that elements are reachable from top-level context(s) + matchContext = addCombinator( function( elem ) { + return elem === checkContext; + }, implicitRelative, true ), + matchAnyContext = addCombinator( function( elem ) { + return indexOf( checkContext, elem ) > -1; + }, implicitRelative, true ), + matchers = [ function( elem, context, xml ) { + var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( + (checkContext = context).nodeType ? + matchContext( elem, context, xml ) : + matchAnyContext( elem, context, xml ) ); + // Avoid hanging onto element (issue #299) + checkContext = null; + return ret; + } ]; + + for ( ; i < len; i++ ) { + if ( (matcher = Expr.relative[ tokens[i].type ]) ) { + matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; + } else { + matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); + + // Return special upon seeing a positional matcher + if ( matcher[ expando ] ) { + // Find the next relative operator (if any) for proper handling + j = ++i; + for ( ; j < len; j++ ) { + if ( Expr.relative[ tokens[j].type ] ) { + break; + } + } + return setMatcher( + i > 1 && elementMatcher( matchers ), + i > 1 && toSelector( + // If the preceding token was a descendant combinator, insert an implicit any-element `*` + tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) + ).replace( rtrim, "$1" ), + matcher, + i < j && matcherFromTokens( tokens.slice( i, j ) ), + j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), + j < len && toSelector( tokens ) + ); + } + matchers.push( matcher ); + } + } + + return elementMatcher( matchers ); +} + +function matcherFromGroupMatchers( elementMatchers, setMatchers ) { + var bySet = setMatchers.length > 0, + byElement = elementMatchers.length > 0, + superMatcher = function( seed, context, xml, results, outermost ) { + var elem, j, matcher, + matchedCount = 0, + i = "0", + unmatched = seed && [], + setMatched = [], + contextBackup = outermostContext, + // We must always have either seed elements or outermost context + elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), + // Use integer dirruns iff this is the outermost matcher + dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), + len = elems.length; + + if ( outermost ) { + outermostContext = context === document || context || outermost; + } + + // Add elements passing elementMatchers directly to results + // Support: IE<9, Safari + // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id + for ( ; i !== len && (elem = elems[i]) != null; i++ ) { + if ( byElement && elem ) { + j = 0; + if ( !context && elem.ownerDocument !== document ) { + setDocument( elem ); + xml = !documentIsHTML; + } + while ( (matcher = elementMatchers[j++]) ) { + if ( matcher( elem, context || document, xml) ) { + results.push( elem ); + break; + } + } + if ( outermost ) { + dirruns = dirrunsUnique; + } + } + + // Track unmatched elements for set filters + if ( bySet ) { + // They will have gone through all possible matchers + if ( (elem = !matcher && elem) ) { + matchedCount--; + } + + // Lengthen the array for every element, matched or not + if ( seed ) { + unmatched.push( elem ); + } + } + } + + // `i` is now the count of elements visited above, and adding it to `matchedCount` + // makes the latter nonnegative. + matchedCount += i; + + // Apply set filters to unmatched elements + // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` + // equals `i`), unless we didn't visit _any_ elements in the above loop because we have + // no element matchers and no seed. + // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that + // case, which will result in a "00" `matchedCount` that differs from `i` but is also + // numerically zero. + if ( bySet && i !== matchedCount ) { + j = 0; + while ( (matcher = setMatchers[j++]) ) { + matcher( unmatched, setMatched, context, xml ); + } + + if ( seed ) { + // Reintegrate element matches to eliminate the need for sorting + if ( matchedCount > 0 ) { + while ( i-- ) { + if ( !(unmatched[i] || setMatched[i]) ) { + setMatched[i] = pop.call( results ); + } + } + } + + // Discard index placeholder values to get only actual matches + setMatched = condense( setMatched ); + } + + // Add matches to results + push.apply( results, setMatched ); + + // Seedless set matches succeeding multiple successful matchers stipulate sorting + if ( outermost && !seed && setMatched.length > 0 && + ( matchedCount + setMatchers.length ) > 1 ) { + + Sizzle.uniqueSort( results ); + } + } + + // Override manipulation of globals by nested matchers + if ( outermost ) { + dirruns = dirrunsUnique; + outermostContext = contextBackup; + } + + return unmatched; + }; + + return bySet ? + markFunction( superMatcher ) : + superMatcher; +} + +compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { + var i, + setMatchers = [], + elementMatchers = [], + cached = compilerCache[ selector + " " ]; + + if ( !cached ) { + // Generate a function of recursive functions that can be used to check each element + if ( !match ) { + match = tokenize( selector ); + } + i = match.length; + while ( i-- ) { + cached = matcherFromTokens( match[i] ); + if ( cached[ expando ] ) { + setMatchers.push( cached ); + } else { + elementMatchers.push( cached ); + } + } + + // Cache the compiled function + cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); + + // Save selector and tokenization + cached.selector = selector; + } + return cached; +}; + +/** + * A low-level selection function that works with Sizzle's compiled + * selector functions + * @param {String|Function} selector A selector or a pre-compiled + * selector function built with Sizzle.compile + * @param {Element} context + * @param {Array} [results] + * @param {Array} [seed] A set of elements to match against + */ +select = Sizzle.select = function( selector, context, results, seed ) { + var i, tokens, token, type, find, + compiled = typeof selector === "function" && selector, + match = !seed && tokenize( (selector = compiled.selector || selector) ); + + results = results || []; + + // Try to minimize operations if there is only one selector in the list and no seed + // (the latter of which guarantees us context) + if ( match.length === 1 ) { + + // Reduce context if the leading compound selector is an ID + tokens = match[0] = match[0].slice( 0 ); + if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && + context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) { + + context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; + if ( !context ) { + return results; + + // Precompiled matchers will still verify ancestry, so step up a level + } else if ( compiled ) { + context = context.parentNode; + } + + selector = selector.slice( tokens.shift().value.length ); + } + + // Fetch a seed set for right-to-left matching + i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; + while ( i-- ) { + token = tokens[i]; + + // Abort if we hit a combinator + if ( Expr.relative[ (type = token.type) ] ) { + break; + } + if ( (find = Expr.find[ type ]) ) { + // Search, expanding context for leading sibling combinators + if ( (seed = find( + token.matches[0].replace( runescape, funescape ), + rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context + )) ) { + + // If seed is empty or no tokens remain, we can return early + tokens.splice( i, 1 ); + selector = seed.length && toSelector( tokens ); + if ( !selector ) { + push.apply( results, seed ); + return results; + } + + break; + } + } + } + } + + // Compile and execute a filtering function if one is not provided + // Provide `match` to avoid retokenization if we modified the selector above + ( compiled || compile( selector, match ) )( + seed, + context, + !documentIsHTML, + results, + !context || rsibling.test( selector ) && testContext( context.parentNode ) || context + ); + return results; +}; + +// One-time assignments + +// Sort stability +support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; + +// Support: Chrome 14-35+ +// Always assume duplicates if they aren't passed to the comparison function +support.detectDuplicates = !!hasDuplicate; + +// Initialize against the default document +setDocument(); + +// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) +// Detached nodes confoundingly follow *each other* +support.sortDetached = assert(function( el ) { + // Should return 1, but returns 4 (following) + return el.compareDocumentPosition( document.createElement("fieldset") ) & 1; +}); + +// Support: IE<8 +// Prevent attribute/property "interpolation" +// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx +if ( !assert(function( el ) { + el.innerHTML = ""; + return el.firstChild.getAttribute("href") === "#" ; +}) ) { + addHandle( "type|href|height|width", function( elem, name, isXML ) { + if ( !isXML ) { + return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); + } + }); +} + +// Support: IE<9 +// Use defaultValue in place of getAttribute("value") +if ( !support.attributes || !assert(function( el ) { + el.innerHTML = ""; + el.firstChild.setAttribute( "value", "" ); + return el.firstChild.getAttribute( "value" ) === ""; +}) ) { + addHandle( "value", function( elem, name, isXML ) { + if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { + return elem.defaultValue; + } + }); +} + +// Support: IE<9 +// Use getAttributeNode to fetch booleans when getAttribute lies +if ( !assert(function( el ) { + return el.getAttribute("disabled") == null; +}) ) { + addHandle( booleans, function( elem, name, isXML ) { + var val; + if ( !isXML ) { + return elem[ name ] === true ? name.toLowerCase() : + (val = elem.getAttributeNode( name )) && val.specified ? + val.value : + null; + } + }); +} + +return Sizzle; + +})( window ); + + + +jQuery.find = Sizzle; +jQuery.expr = Sizzle.selectors; + +// Deprecated +jQuery.expr[ ":" ] = jQuery.expr.pseudos; +jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; +jQuery.text = Sizzle.getText; +jQuery.isXMLDoc = Sizzle.isXML; +jQuery.contains = Sizzle.contains; +jQuery.escapeSelector = Sizzle.escape; + + + + +var dir = function( elem, dir, until ) { + var matched = [], + truncate = until !== undefined; + + while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { + if ( elem.nodeType === 1 ) { + if ( truncate && jQuery( elem ).is( until ) ) { + break; + } + matched.push( elem ); + } + } + return matched; +}; + + +var siblings = function( n, elem ) { + var matched = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + matched.push( n ); + } + } + + return matched; +}; + + +var rneedsContext = jQuery.expr.match.needsContext; + + + +function nodeName( elem, name ) { + + return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); + +}; +var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); + + + +// Implement the identical functionality for filter and not +function winnow( elements, qualifier, not ) { + if ( isFunction( qualifier ) ) { + return jQuery.grep( elements, function( elem, i ) { + return !!qualifier.call( elem, i, elem ) !== not; + } ); + } + + // Single element + if ( qualifier.nodeType ) { + return jQuery.grep( elements, function( elem ) { + return ( elem === qualifier ) !== not; + } ); + } + + // Arraylike of elements (jQuery, arguments, Array) + if ( typeof qualifier !== "string" ) { + return jQuery.grep( elements, function( elem ) { + return ( indexOf.call( qualifier, elem ) > -1 ) !== not; + } ); + } + + // Filtered directly for both simple and complex selectors + return jQuery.filter( qualifier, elements, not ); +} + +jQuery.filter = function( expr, elems, not ) { + var elem = elems[ 0 ]; + + if ( not ) { + expr = ":not(" + expr + ")"; + } + + if ( elems.length === 1 && elem.nodeType === 1 ) { + return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; + } + + return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { + return elem.nodeType === 1; + } ) ); +}; + +jQuery.fn.extend( { + find: function( selector ) { + var i, ret, + len = this.length, + self = this; + + if ( typeof selector !== "string" ) { + return this.pushStack( jQuery( selector ).filter( function() { + for ( i = 0; i < len; i++ ) { + if ( jQuery.contains( self[ i ], this ) ) { + return true; + } + } + } ) ); + } + + ret = this.pushStack( [] ); + + for ( i = 0; i < len; i++ ) { + jQuery.find( selector, self[ i ], ret ); + } + + return len > 1 ? jQuery.uniqueSort( ret ) : ret; + }, + filter: function( selector ) { + return this.pushStack( winnow( this, selector || [], false ) ); + }, + not: function( selector ) { + return this.pushStack( winnow( this, selector || [], true ) ); + }, + is: function( selector ) { + return !!winnow( + this, + + // If this is a positional/relative selector, check membership in the returned set + // so $("p:first").is("p:last") won't return true for a doc with two "p". + typeof selector === "string" && rneedsContext.test( selector ) ? + jQuery( selector ) : + selector || [], + false + ).length; + } +} ); + + +// Initialize a jQuery object + + +// A central reference to the root jQuery(document) +var rootjQuery, + + // A simple way to check for HTML strings + // Prioritize #id over to avoid XSS via location.hash (#9521) + // Strict HTML recognition (#11290: must start with <) + // Shortcut simple #id case for speed + rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, + + init = jQuery.fn.init = function( selector, context, root ) { + var match, elem; + + // HANDLE: $(""), $(null), $(undefined), $(false) + if ( !selector ) { + return this; + } + + // Method init() accepts an alternate rootjQuery + // so migrate can support jQuery.sub (gh-2101) + root = root || rootjQuery; + + // Handle HTML strings + if ( typeof selector === "string" ) { + if ( selector[ 0 ] === "<" && + selector[ selector.length - 1 ] === ">" && + selector.length >= 3 ) { + + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [ null, selector, null ]; + + } else { + match = rquickExpr.exec( selector ); + } + + // Match html or make sure no context is specified for #id + if ( match && ( match[ 1 ] || !context ) ) { + + // HANDLE: $(html) -> $(array) + if ( match[ 1 ] ) { + context = context instanceof jQuery ? context[ 0 ] : context; + + // Option to run scripts is true for back-compat + // Intentionally let the error be thrown if parseHTML is not present + jQuery.merge( this, jQuery.parseHTML( + match[ 1 ], + context && context.nodeType ? context.ownerDocument || context : document, + true + ) ); + + // HANDLE: $(html, props) + if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { + for ( match in context ) { + + // Properties of context are called as methods if possible + if ( isFunction( this[ match ] ) ) { + this[ match ]( context[ match ] ); + + // ...and otherwise set as attributes + } else { + this.attr( match, context[ match ] ); + } + } + } + + return this; + + // HANDLE: $(#id) + } else { + elem = document.getElementById( match[ 2 ] ); + + if ( elem ) { + + // Inject the element directly into the jQuery object + this[ 0 ] = elem; + this.length = 1; + } + return this; + } + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return ( context || root ).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor( context ).find( selector ); + } + + // HANDLE: $(DOMElement) + } else if ( selector.nodeType ) { + this[ 0 ] = selector; + this.length = 1; + return this; + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( isFunction( selector ) ) { + return root.ready !== undefined ? + root.ready( selector ) : + + // Execute immediately if ready is not present + selector( jQuery ); + } + + return jQuery.makeArray( selector, this ); + }; + +// Give the init function the jQuery prototype for later instantiation +init.prototype = jQuery.fn; + +// Initialize central reference +rootjQuery = jQuery( document ); + + +var rparentsprev = /^(?:parents|prev(?:Until|All))/, + + // Methods guaranteed to produce a unique set when starting from a unique set + guaranteedUnique = { + children: true, + contents: true, + next: true, + prev: true + }; + +jQuery.fn.extend( { + has: function( target ) { + var targets = jQuery( target, this ), + l = targets.length; + + return this.filter( function() { + var i = 0; + for ( ; i < l; i++ ) { + if ( jQuery.contains( this, targets[ i ] ) ) { + return true; + } + } + } ); + }, + + closest: function( selectors, context ) { + var cur, + i = 0, + l = this.length, + matched = [], + targets = typeof selectors !== "string" && jQuery( selectors ); + + // Positional selectors never match, since there's no _selection_ context + if ( !rneedsContext.test( selectors ) ) { + for ( ; i < l; i++ ) { + for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { + + // Always skip document fragments + if ( cur.nodeType < 11 && ( targets ? + targets.index( cur ) > -1 : + + // Don't pass non-elements to Sizzle + cur.nodeType === 1 && + jQuery.find.matchesSelector( cur, selectors ) ) ) { + + matched.push( cur ); + break; + } + } + } + } + + return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); + }, + + // Determine the position of an element within the set + index: function( elem ) { + + // No argument, return index in parent + if ( !elem ) { + return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; + } + + // Index in selector + if ( typeof elem === "string" ) { + return indexOf.call( jQuery( elem ), this[ 0 ] ); + } + + // Locate the position of the desired element + return indexOf.call( this, + + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[ 0 ] : elem + ); + }, + + add: function( selector, context ) { + return this.pushStack( + jQuery.uniqueSort( + jQuery.merge( this.get(), jQuery( selector, context ) ) + ) + ); + }, + + addBack: function( selector ) { + return this.add( selector == null ? + this.prevObject : this.prevObject.filter( selector ) + ); + } +} ); + +function sibling( cur, dir ) { + while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} + return cur; +} + +jQuery.each( { + parent: function( elem ) { + var parent = elem.parentNode; + return parent && parent.nodeType !== 11 ? parent : null; + }, + parents: function( elem ) { + return dir( elem, "parentNode" ); + }, + parentsUntil: function( elem, i, until ) { + return dir( elem, "parentNode", until ); + }, + next: function( elem ) { + return sibling( elem, "nextSibling" ); + }, + prev: function( elem ) { + return sibling( elem, "previousSibling" ); + }, + nextAll: function( elem ) { + return dir( elem, "nextSibling" ); + }, + prevAll: function( elem ) { + return dir( elem, "previousSibling" ); + }, + nextUntil: function( elem, i, until ) { + return dir( elem, "nextSibling", until ); + }, + prevUntil: function( elem, i, until ) { + return dir( elem, "previousSibling", until ); + }, + siblings: function( elem ) { + return siblings( ( elem.parentNode || {} ).firstChild, elem ); + }, + children: function( elem ) { + return siblings( elem.firstChild ); + }, + contents: function( elem ) { + if ( typeof elem.contentDocument !== "undefined" ) { + return elem.contentDocument; + } + + // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only + // Treat the template element as a regular one in browsers that + // don't support it. + if ( nodeName( elem, "template" ) ) { + elem = elem.content || elem; + } + + return jQuery.merge( [], elem.childNodes ); + } +}, function( name, fn ) { + jQuery.fn[ name ] = function( until, selector ) { + var matched = jQuery.map( this, fn, until ); + + if ( name.slice( -5 ) !== "Until" ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + matched = jQuery.filter( selector, matched ); + } + + if ( this.length > 1 ) { + + // Remove duplicates + if ( !guaranteedUnique[ name ] ) { + jQuery.uniqueSort( matched ); + } + + // Reverse order for parents* and prev-derivatives + if ( rparentsprev.test( name ) ) { + matched.reverse(); + } + } + + return this.pushStack( matched ); + }; +} ); +var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); + + + +// Convert String-formatted options into Object-formatted ones +function createOptions( options ) { + var object = {}; + jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { + object[ flag ] = true; + } ); + return object; +} + +/* + * Create a callback list using the following parameters: + * + * options: an optional list of space-separated options that will change how + * the callback list behaves or a more traditional option object + * + * By default a callback list will act like an event callback list and can be + * "fired" multiple times. + * + * Possible options: + * + * once: will ensure the callback list can only be fired once (like a Deferred) + * + * memory: will keep track of previous values and will call any callback added + * after the list has been fired right away with the latest "memorized" + * values (like a Deferred) + * + * unique: will ensure a callback can only be added once (no duplicate in the list) + * + * stopOnFalse: interrupt callings when a callback returns false + * + */ +jQuery.Callbacks = function( options ) { + + // Convert options from String-formatted to Object-formatted if needed + // (we check in cache first) + options = typeof options === "string" ? + createOptions( options ) : + jQuery.extend( {}, options ); + + var // Flag to know if list is currently firing + firing, + + // Last fire value for non-forgettable lists + memory, + + // Flag to know if list was already fired + fired, + + // Flag to prevent firing + locked, + + // Actual callback list + list = [], + + // Queue of execution data for repeatable lists + queue = [], + + // Index of currently firing callback (modified by add/remove as needed) + firingIndex = -1, + + // Fire callbacks + fire = function() { + + // Enforce single-firing + locked = locked || options.once; + + // Execute callbacks for all pending executions, + // respecting firingIndex overrides and runtime changes + fired = firing = true; + for ( ; queue.length; firingIndex = -1 ) { + memory = queue.shift(); + while ( ++firingIndex < list.length ) { + + // Run callback and check for early termination + if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && + options.stopOnFalse ) { + + // Jump to end and forget the data so .add doesn't re-fire + firingIndex = list.length; + memory = false; + } + } + } + + // Forget the data if we're done with it + if ( !options.memory ) { + memory = false; + } + + firing = false; + + // Clean up if we're done firing for good + if ( locked ) { + + // Keep an empty list if we have data for future add calls + if ( memory ) { + list = []; + + // Otherwise, this object is spent + } else { + list = ""; + } + } + }, + + // Actual Callbacks object + self = { + + // Add a callback or a collection of callbacks to the list + add: function() { + if ( list ) { + + // If we have memory from a past run, we should fire after adding + if ( memory && !firing ) { + firingIndex = list.length - 1; + queue.push( memory ); + } + + ( function add( args ) { + jQuery.each( args, function( _, arg ) { + if ( isFunction( arg ) ) { + if ( !options.unique || !self.has( arg ) ) { + list.push( arg ); + } + } else if ( arg && arg.length && toType( arg ) !== "string" ) { + + // Inspect recursively + add( arg ); + } + } ); + } )( arguments ); + + if ( memory && !firing ) { + fire(); + } + } + return this; + }, + + // Remove a callback from the list + remove: function() { + jQuery.each( arguments, function( _, arg ) { + var index; + while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { + list.splice( index, 1 ); + + // Handle firing indexes + if ( index <= firingIndex ) { + firingIndex--; + } + } + } ); + return this; + }, + + // Check if a given callback is in the list. + // If no argument is given, return whether or not list has callbacks attached. + has: function( fn ) { + return fn ? + jQuery.inArray( fn, list ) > -1 : + list.length > 0; + }, + + // Remove all callbacks from the list + empty: function() { + if ( list ) { + list = []; + } + return this; + }, + + // Disable .fire and .add + // Abort any current/pending executions + // Clear all callbacks and values + disable: function() { + locked = queue = []; + list = memory = ""; + return this; + }, + disabled: function() { + return !list; + }, + + // Disable .fire + // Also disable .add unless we have memory (since it would have no effect) + // Abort any pending executions + lock: function() { + locked = queue = []; + if ( !memory && !firing ) { + list = memory = ""; + } + return this; + }, + locked: function() { + return !!locked; + }, + + // Call all callbacks with the given context and arguments + fireWith: function( context, args ) { + if ( !locked ) { + args = args || []; + args = [ context, args.slice ? args.slice() : args ]; + queue.push( args ); + if ( !firing ) { + fire(); + } + } + return this; + }, + + // Call all the callbacks with the given arguments + fire: function() { + self.fireWith( this, arguments ); + return this; + }, + + // To know if the callbacks have already been called at least once + fired: function() { + return !!fired; + } + }; + + return self; +}; + + +function Identity( v ) { + return v; +} +function Thrower( ex ) { + throw ex; +} + +function adoptValue( value, resolve, reject, noValue ) { + var method; + + try { + + // Check for promise aspect first to privilege synchronous behavior + if ( value && isFunction( ( method = value.promise ) ) ) { + method.call( value ).done( resolve ).fail( reject ); + + // Other thenables + } else if ( value && isFunction( ( method = value.then ) ) ) { + method.call( value, resolve, reject ); + + // Other non-thenables + } else { + + // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer: + // * false: [ value ].slice( 0 ) => resolve( value ) + // * true: [ value ].slice( 1 ) => resolve() + resolve.apply( undefined, [ value ].slice( noValue ) ); + } + + // For Promises/A+, convert exceptions into rejections + // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in + // Deferred#then to conditionally suppress rejection. + } catch ( value ) { + + // Support: Android 4.0 only + // Strict mode functions invoked without .call/.apply get global-object context + reject.apply( undefined, [ value ] ); + } +} + +jQuery.extend( { + + Deferred: function( func ) { + var tuples = [ + + // action, add listener, callbacks, + // ... .then handlers, argument index, [final state] + [ "notify", "progress", jQuery.Callbacks( "memory" ), + jQuery.Callbacks( "memory" ), 2 ], + [ "resolve", "done", jQuery.Callbacks( "once memory" ), + jQuery.Callbacks( "once memory" ), 0, "resolved" ], + [ "reject", "fail", jQuery.Callbacks( "once memory" ), + jQuery.Callbacks( "once memory" ), 1, "rejected" ] + ], + state = "pending", + promise = { + state: function() { + return state; + }, + always: function() { + deferred.done( arguments ).fail( arguments ); + return this; + }, + "catch": function( fn ) { + return promise.then( null, fn ); + }, + + // Keep pipe for back-compat + pipe: function( /* fnDone, fnFail, fnProgress */ ) { + var fns = arguments; + + return jQuery.Deferred( function( newDefer ) { + jQuery.each( tuples, function( i, tuple ) { + + // Map tuples (progress, done, fail) to arguments (done, fail, progress) + var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; + + // deferred.progress(function() { bind to newDefer or newDefer.notify }) + // deferred.done(function() { bind to newDefer or newDefer.resolve }) + // deferred.fail(function() { bind to newDefer or newDefer.reject }) + deferred[ tuple[ 1 ] ]( function() { + var returned = fn && fn.apply( this, arguments ); + if ( returned && isFunction( returned.promise ) ) { + returned.promise() + .progress( newDefer.notify ) + .done( newDefer.resolve ) + .fail( newDefer.reject ); + } else { + newDefer[ tuple[ 0 ] + "With" ]( + this, + fn ? [ returned ] : arguments + ); + } + } ); + } ); + fns = null; + } ).promise(); + }, + then: function( onFulfilled, onRejected, onProgress ) { + var maxDepth = 0; + function resolve( depth, deferred, handler, special ) { + return function() { + var that = this, + args = arguments, + mightThrow = function() { + var returned, then; + + // Support: Promises/A+ section 2.3.3.3.3 + // https://promisesaplus.com/#point-59 + // Ignore double-resolution attempts + if ( depth < maxDepth ) { + return; + } + + returned = handler.apply( that, args ); + + // Support: Promises/A+ section 2.3.1 + // https://promisesaplus.com/#point-48 + if ( returned === deferred.promise() ) { + throw new TypeError( "Thenable self-resolution" ); + } + + // Support: Promises/A+ sections 2.3.3.1, 3.5 + // https://promisesaplus.com/#point-54 + // https://promisesaplus.com/#point-75 + // Retrieve `then` only once + then = returned && + + // Support: Promises/A+ section 2.3.4 + // https://promisesaplus.com/#point-64 + // Only check objects and functions for thenability + ( typeof returned === "object" || + typeof returned === "function" ) && + returned.then; + + // Handle a returned thenable + if ( isFunction( then ) ) { + + // Special processors (notify) just wait for resolution + if ( special ) { + then.call( + returned, + resolve( maxDepth, deferred, Identity, special ), + resolve( maxDepth, deferred, Thrower, special ) + ); + + // Normal processors (resolve) also hook into progress + } else { + + // ...and disregard older resolution values + maxDepth++; + + then.call( + returned, + resolve( maxDepth, deferred, Identity, special ), + resolve( maxDepth, deferred, Thrower, special ), + resolve( maxDepth, deferred, Identity, + deferred.notifyWith ) + ); + } + + // Handle all other returned values + } else { + + // Only substitute handlers pass on context + // and multiple values (non-spec behavior) + if ( handler !== Identity ) { + that = undefined; + args = [ returned ]; + } + + // Process the value(s) + // Default process is resolve + ( special || deferred.resolveWith )( that, args ); + } + }, + + // Only normal processors (resolve) catch and reject exceptions + process = special ? + mightThrow : + function() { + try { + mightThrow(); + } catch ( e ) { + + if ( jQuery.Deferred.exceptionHook ) { + jQuery.Deferred.exceptionHook( e, + process.stackTrace ); + } + + // Support: Promises/A+ section 2.3.3.3.4.1 + // https://promisesaplus.com/#point-61 + // Ignore post-resolution exceptions + if ( depth + 1 >= maxDepth ) { + + // Only substitute handlers pass on context + // and multiple values (non-spec behavior) + if ( handler !== Thrower ) { + that = undefined; + args = [ e ]; + } + + deferred.rejectWith( that, args ); + } + } + }; + + // Support: Promises/A+ section 2.3.3.3.1 + // https://promisesaplus.com/#point-57 + // Re-resolve promises immediately to dodge false rejection from + // subsequent errors + if ( depth ) { + process(); + } else { + + // Call an optional hook to record the stack, in case of exception + // since it's otherwise lost when execution goes async + if ( jQuery.Deferred.getStackHook ) { + process.stackTrace = jQuery.Deferred.getStackHook(); + } + window.setTimeout( process ); + } + }; + } + + return jQuery.Deferred( function( newDefer ) { + + // progress_handlers.add( ... ) + tuples[ 0 ][ 3 ].add( + resolve( + 0, + newDefer, + isFunction( onProgress ) ? + onProgress : + Identity, + newDefer.notifyWith + ) + ); + + // fulfilled_handlers.add( ... ) + tuples[ 1 ][ 3 ].add( + resolve( + 0, + newDefer, + isFunction( onFulfilled ) ? + onFulfilled : + Identity + ) + ); + + // rejected_handlers.add( ... ) + tuples[ 2 ][ 3 ].add( + resolve( + 0, + newDefer, + isFunction( onRejected ) ? + onRejected : + Thrower + ) + ); + } ).promise(); + }, + + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function( obj ) { + return obj != null ? jQuery.extend( obj, promise ) : promise; + } + }, + deferred = {}; + + // Add list-specific methods + jQuery.each( tuples, function( i, tuple ) { + var list = tuple[ 2 ], + stateString = tuple[ 5 ]; + + // promise.progress = list.add + // promise.done = list.add + // promise.fail = list.add + promise[ tuple[ 1 ] ] = list.add; + + // Handle state + if ( stateString ) { + list.add( + function() { + + // state = "resolved" (i.e., fulfilled) + // state = "rejected" + state = stateString; + }, + + // rejected_callbacks.disable + // fulfilled_callbacks.disable + tuples[ 3 - i ][ 2 ].disable, + + // rejected_handlers.disable + // fulfilled_handlers.disable + tuples[ 3 - i ][ 3 ].disable, + + // progress_callbacks.lock + tuples[ 0 ][ 2 ].lock, + + // progress_handlers.lock + tuples[ 0 ][ 3 ].lock + ); + } + + // progress_handlers.fire + // fulfilled_handlers.fire + // rejected_handlers.fire + list.add( tuple[ 3 ].fire ); + + // deferred.notify = function() { deferred.notifyWith(...) } + // deferred.resolve = function() { deferred.resolveWith(...) } + // deferred.reject = function() { deferred.rejectWith(...) } + deferred[ tuple[ 0 ] ] = function() { + deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); + return this; + }; + + // deferred.notifyWith = list.fireWith + // deferred.resolveWith = list.fireWith + // deferred.rejectWith = list.fireWith + deferred[ tuple[ 0 ] + "With" ] = list.fireWith; + } ); + + // Make the deferred a promise + promise.promise( deferred ); + + // Call given func if any + if ( func ) { + func.call( deferred, deferred ); + } + + // All done! + return deferred; + }, + + // Deferred helper + when: function( singleValue ) { + var + + // count of uncompleted subordinates + remaining = arguments.length, + + // count of unprocessed arguments + i = remaining, + + // subordinate fulfillment data + resolveContexts = Array( i ), + resolveValues = slice.call( arguments ), + + // the master Deferred + master = jQuery.Deferred(), + + // subordinate callback factory + updateFunc = function( i ) { + return function( value ) { + resolveContexts[ i ] = this; + resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; + if ( !( --remaining ) ) { + master.resolveWith( resolveContexts, resolveValues ); + } + }; + }; + + // Single- and empty arguments are adopted like Promise.resolve + if ( remaining <= 1 ) { + adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject, + !remaining ); + + // Use .then() to unwrap secondary thenables (cf. gh-3000) + if ( master.state() === "pending" || + isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { + + return master.then(); + } + } + + // Multiple arguments are aggregated like Promise.all array elements + while ( i-- ) { + adoptValue( resolveValues[ i ], updateFunc( i ), master.reject ); + } + + return master.promise(); + } +} ); + + +// These usually indicate a programmer mistake during development, +// warn about them ASAP rather than swallowing them by default. +var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; + +jQuery.Deferred.exceptionHook = function( error, stack ) { + + // Support: IE 8 - 9 only + // Console exists when dev tools are open, which can happen at any time + if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { + window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); + } +}; + + + + +jQuery.readyException = function( error ) { + window.setTimeout( function() { + throw error; + } ); +}; + + + + +// The deferred used on DOM ready +var readyList = jQuery.Deferred(); + +jQuery.fn.ready = function( fn ) { + + readyList + .then( fn ) + + // Wrap jQuery.readyException in a function so that the lookup + // happens at the time of error handling instead of callback + // registration. + .catch( function( error ) { + jQuery.readyException( error ); + } ); + + return this; +}; + +jQuery.extend( { + + // Is the DOM ready to be used? Set to true once it occurs. + isReady: false, + + // A counter to track how many items to wait for before + // the ready event fires. See #6781 + readyWait: 1, + + // Handle when the DOM is ready + ready: function( wait ) { + + // Abort if there are pending holds or we're already ready + if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { + return; + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if ( wait !== true && --jQuery.readyWait > 0 ) { + return; + } + + // If there are functions bound, to execute + readyList.resolveWith( document, [ jQuery ] ); + } +} ); + +jQuery.ready.then = readyList.then; + +// The ready event handler and self cleanup method +function completed() { + document.removeEventListener( "DOMContentLoaded", completed ); + window.removeEventListener( "load", completed ); + jQuery.ready(); +} + +// Catch cases where $(document).ready() is called +// after the browser event has already occurred. +// Support: IE <=9 - 10 only +// Older IE sometimes signals "interactive" too soon +if ( document.readyState === "complete" || + ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { + + // Handle it asynchronously to allow scripts the opportunity to delay ready + window.setTimeout( jQuery.ready ); + +} else { + + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", completed ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", completed ); +} + + + + +// Multifunctional method to get and set values of a collection +// The value/s can optionally be executed if it's a function +var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { + var i = 0, + len = elems.length, + bulk = key == null; + + // Sets many values + if ( toType( key ) === "object" ) { + chainable = true; + for ( i in key ) { + access( elems, fn, i, key[ i ], true, emptyGet, raw ); + } + + // Sets one value + } else if ( value !== undefined ) { + chainable = true; + + if ( !isFunction( value ) ) { + raw = true; + } + + if ( bulk ) { + + // Bulk operations run against the entire set + if ( raw ) { + fn.call( elems, value ); + fn = null; + + // ...except when executing function values + } else { + bulk = fn; + fn = function( elem, key, value ) { + return bulk.call( jQuery( elem ), value ); + }; + } + } + + if ( fn ) { + for ( ; i < len; i++ ) { + fn( + elems[ i ], key, raw ? + value : + value.call( elems[ i ], i, fn( elems[ i ], key ) ) + ); + } + } + } + + if ( chainable ) { + return elems; + } + + // Gets + if ( bulk ) { + return fn.call( elems ); + } + + return len ? fn( elems[ 0 ], key ) : emptyGet; +}; + + +// Matches dashed string for camelizing +var rmsPrefix = /^-ms-/, + rdashAlpha = /-([a-z])/g; + +// Used by camelCase as callback to replace() +function fcamelCase( all, letter ) { + return letter.toUpperCase(); +} + +// Convert dashed to camelCase; used by the css and data modules +// Support: IE <=9 - 11, Edge 12 - 15 +// Microsoft forgot to hump their vendor prefix (#9572) +function camelCase( string ) { + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); +} +var acceptData = function( owner ) { + + // Accepts only: + // - Node + // - Node.ELEMENT_NODE + // - Node.DOCUMENT_NODE + // - Object + // - Any + return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); +}; + + + + +function Data() { + this.expando = jQuery.expando + Data.uid++; +} + +Data.uid = 1; + +Data.prototype = { + + cache: function( owner ) { + + // Check if the owner object already has a cache + var value = owner[ this.expando ]; + + // If not, create one + if ( !value ) { + value = {}; + + // We can accept data for non-element nodes in modern browsers, + // but we should not, see #8335. + // Always return an empty object. + if ( acceptData( owner ) ) { + + // If it is a node unlikely to be stringify-ed or looped over + // use plain assignment + if ( owner.nodeType ) { + owner[ this.expando ] = value; + + // Otherwise secure it in a non-enumerable property + // configurable must be true to allow the property to be + // deleted when data is removed + } else { + Object.defineProperty( owner, this.expando, { + value: value, + configurable: true + } ); + } + } + } + + return value; + }, + set: function( owner, data, value ) { + var prop, + cache = this.cache( owner ); + + // Handle: [ owner, key, value ] args + // Always use camelCase key (gh-2257) + if ( typeof data === "string" ) { + cache[ camelCase( data ) ] = value; + + // Handle: [ owner, { properties } ] args + } else { + + // Copy the properties one-by-one to the cache object + for ( prop in data ) { + cache[ camelCase( prop ) ] = data[ prop ]; + } + } + return cache; + }, + get: function( owner, key ) { + return key === undefined ? + this.cache( owner ) : + + // Always use camelCase key (gh-2257) + owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ]; + }, + access: function( owner, key, value ) { + + // In cases where either: + // + // 1. No key was specified + // 2. A string key was specified, but no value provided + // + // Take the "read" path and allow the get method to determine + // which value to return, respectively either: + // + // 1. The entire cache object + // 2. The data stored at the key + // + if ( key === undefined || + ( ( key && typeof key === "string" ) && value === undefined ) ) { + + return this.get( owner, key ); + } + + // When the key is not a string, or both a key and value + // are specified, set or extend (existing objects) with either: + // + // 1. An object of properties + // 2. A key and value + // + this.set( owner, key, value ); + + // Since the "set" path can have two possible entry points + // return the expected data based on which path was taken[*] + return value !== undefined ? value : key; + }, + remove: function( owner, key ) { + var i, + cache = owner[ this.expando ]; + + if ( cache === undefined ) { + return; + } + + if ( key !== undefined ) { + + // Support array or space separated string of keys + if ( Array.isArray( key ) ) { + + // If key is an array of keys... + // We always set camelCase keys, so remove that. + key = key.map( camelCase ); + } else { + key = camelCase( key ); + + // If a key with the spaces exists, use it. + // Otherwise, create an array by matching non-whitespace + key = key in cache ? + [ key ] : + ( key.match( rnothtmlwhite ) || [] ); + } + + i = key.length; + + while ( i-- ) { + delete cache[ key[ i ] ]; + } + } + + // Remove the expando if there's no more data + if ( key === undefined || jQuery.isEmptyObject( cache ) ) { + + // Support: Chrome <=35 - 45 + // Webkit & Blink performance suffers when deleting properties + // from DOM nodes, so set to undefined instead + // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted) + if ( owner.nodeType ) { + owner[ this.expando ] = undefined; + } else { + delete owner[ this.expando ]; + } + } + }, + hasData: function( owner ) { + var cache = owner[ this.expando ]; + return cache !== undefined && !jQuery.isEmptyObject( cache ); + } +}; +var dataPriv = new Data(); + +var dataUser = new Data(); + + + +// Implementation Summary +// +// 1. Enforce API surface and semantic compatibility with 1.9.x branch +// 2. Improve the module's maintainability by reducing the storage +// paths to a single mechanism. +// 3. Use the same single mechanism to support "private" and "user" data. +// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) +// 5. Avoid exposing implementation details on user objects (eg. expando properties) +// 6. Provide a clear path for implementation upgrade to WeakMap in 2014 + +var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, + rmultiDash = /[A-Z]/g; + +function getData( data ) { + if ( data === "true" ) { + return true; + } + + if ( data === "false" ) { + return false; + } + + if ( data === "null" ) { + return null; + } + + // Only convert to a number if it doesn't change the string + if ( data === +data + "" ) { + return +data; + } + + if ( rbrace.test( data ) ) { + return JSON.parse( data ); + } + + return data; +} + +function dataAttr( elem, key, data ) { + var name; + + // If nothing was found internally, try to fetch any + // data from the HTML5 data-* attribute + if ( data === undefined && elem.nodeType === 1 ) { + name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); + data = elem.getAttribute( name ); + + if ( typeof data === "string" ) { + try { + data = getData( data ); + } catch ( e ) {} + + // Make sure we set the data so it isn't changed later + dataUser.set( elem, key, data ); + } else { + data = undefined; + } + } + return data; +} + +jQuery.extend( { + hasData: function( elem ) { + return dataUser.hasData( elem ) || dataPriv.hasData( elem ); + }, + + data: function( elem, name, data ) { + return dataUser.access( elem, name, data ); + }, + + removeData: function( elem, name ) { + dataUser.remove( elem, name ); + }, + + // TODO: Now that all calls to _data and _removeData have been replaced + // with direct calls to dataPriv methods, these can be deprecated. + _data: function( elem, name, data ) { + return dataPriv.access( elem, name, data ); + }, + + _removeData: function( elem, name ) { + dataPriv.remove( elem, name ); + } +} ); + +jQuery.fn.extend( { + data: function( key, value ) { + var i, name, data, + elem = this[ 0 ], + attrs = elem && elem.attributes; + + // Gets all values + if ( key === undefined ) { + if ( this.length ) { + data = dataUser.get( elem ); + + if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { + i = attrs.length; + while ( i-- ) { + + // Support: IE 11 only + // The attrs elements can be null (#14894) + if ( attrs[ i ] ) { + name = attrs[ i ].name; + if ( name.indexOf( "data-" ) === 0 ) { + name = camelCase( name.slice( 5 ) ); + dataAttr( elem, name, data[ name ] ); + } + } + } + dataPriv.set( elem, "hasDataAttrs", true ); + } + } + + return data; + } + + // Sets multiple values + if ( typeof key === "object" ) { + return this.each( function() { + dataUser.set( this, key ); + } ); + } + + return access( this, function( value ) { + var data; + + // The calling jQuery object (element matches) is not empty + // (and therefore has an element appears at this[ 0 ]) and the + // `value` parameter was not undefined. An empty jQuery object + // will result in `undefined` for elem = this[ 0 ] which will + // throw an exception if an attempt to read a data cache is made. + if ( elem && value === undefined ) { + + // Attempt to get data from the cache + // The key will always be camelCased in Data + data = dataUser.get( elem, key ); + if ( data !== undefined ) { + return data; + } + + // Attempt to "discover" the data in + // HTML5 custom data-* attrs + data = dataAttr( elem, key ); + if ( data !== undefined ) { + return data; + } + + // We tried really hard, but the data doesn't exist. + return; + } + + // Set the data... + this.each( function() { + + // We always store the camelCased key + dataUser.set( this, key, value ); + } ); + }, null, value, arguments.length > 1, null, true ); + }, + + removeData: function( key ) { + return this.each( function() { + dataUser.remove( this, key ); + } ); + } +} ); + + +jQuery.extend( { + queue: function( elem, type, data ) { + var queue; + + if ( elem ) { + type = ( type || "fx" ) + "queue"; + queue = dataPriv.get( elem, type ); + + // Speed up dequeue by getting out quickly if this is just a lookup + if ( data ) { + if ( !queue || Array.isArray( data ) ) { + queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); + } else { + queue.push( data ); + } + } + return queue || []; + } + }, + + dequeue: function( elem, type ) { + type = type || "fx"; + + var queue = jQuery.queue( elem, type ), + startLength = queue.length, + fn = queue.shift(), + hooks = jQuery._queueHooks( elem, type ), + next = function() { + jQuery.dequeue( elem, type ); + }; + + // If the fx queue is dequeued, always remove the progress sentinel + if ( fn === "inprogress" ) { + fn = queue.shift(); + startLength--; + } + + if ( fn ) { + + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if ( type === "fx" ) { + queue.unshift( "inprogress" ); + } + + // Clear up the last queue stop function + delete hooks.stop; + fn.call( elem, next, hooks ); + } + + if ( !startLength && hooks ) { + hooks.empty.fire(); + } + }, + + // Not public - generate a queueHooks object, or return the current one + _queueHooks: function( elem, type ) { + var key = type + "queueHooks"; + return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { + empty: jQuery.Callbacks( "once memory" ).add( function() { + dataPriv.remove( elem, [ type + "queue", key ] ); + } ) + } ); + } +} ); + +jQuery.fn.extend( { + queue: function( type, data ) { + var setter = 2; + + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + setter--; + } + + if ( arguments.length < setter ) { + return jQuery.queue( this[ 0 ], type ); + } + + return data === undefined ? + this : + this.each( function() { + var queue = jQuery.queue( this, type, data ); + + // Ensure a hooks for this queue + jQuery._queueHooks( this, type ); + + if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { + jQuery.dequeue( this, type ); + } + } ); + }, + dequeue: function( type ) { + return this.each( function() { + jQuery.dequeue( this, type ); + } ); + }, + clearQueue: function( type ) { + return this.queue( type || "fx", [] ); + }, + + // Get a promise resolved when queues of a certain type + // are emptied (fx is the type by default) + promise: function( type, obj ) { + var tmp, + count = 1, + defer = jQuery.Deferred(), + elements = this, + i = this.length, + resolve = function() { + if ( !( --count ) ) { + defer.resolveWith( elements, [ elements ] ); + } + }; + + if ( typeof type !== "string" ) { + obj = type; + type = undefined; + } + type = type || "fx"; + + while ( i-- ) { + tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); + if ( tmp && tmp.empty ) { + count++; + tmp.empty.add( resolve ); + } + } + resolve(); + return defer.promise( obj ); + } +} ); +var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; + +var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); + + +var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; + +var documentElement = document.documentElement; + + + + var isAttached = function( elem ) { + return jQuery.contains( elem.ownerDocument, elem ); + }, + composed = { composed: true }; + + // Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only + // Check attachment across shadow DOM boundaries when possible (gh-3504) + // Support: iOS 10.0-10.2 only + // Early iOS 10 versions support `attachShadow` but not `getRootNode`, + // leading to errors. We need to check for `getRootNode`. + if ( documentElement.getRootNode ) { + isAttached = function( elem ) { + return jQuery.contains( elem.ownerDocument, elem ) || + elem.getRootNode( composed ) === elem.ownerDocument; + }; + } +var isHiddenWithinTree = function( elem, el ) { + + // isHiddenWithinTree might be called from jQuery#filter function; + // in that case, element will be second argument + elem = el || elem; + + // Inline style trumps all + return elem.style.display === "none" || + elem.style.display === "" && + + // Otherwise, check computed style + // Support: Firefox <=43 - 45 + // Disconnected elements can have computed display: none, so first confirm that elem is + // in the document. + isAttached( elem ) && + + jQuery.css( elem, "display" ) === "none"; + }; + +var swap = function( elem, options, callback, args ) { + var ret, name, + old = {}; + + // Remember the old values, and insert the new ones + for ( name in options ) { + old[ name ] = elem.style[ name ]; + elem.style[ name ] = options[ name ]; + } + + ret = callback.apply( elem, args || [] ); + + // Revert the old values + for ( name in options ) { + elem.style[ name ] = old[ name ]; + } + + return ret; +}; + + + + +function adjustCSS( elem, prop, valueParts, tween ) { + var adjusted, scale, + maxIterations = 20, + currentValue = tween ? + function() { + return tween.cur(); + } : + function() { + return jQuery.css( elem, prop, "" ); + }, + initial = currentValue(), + unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), + + // Starting value computation is required for potential unit mismatches + initialInUnit = elem.nodeType && + ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && + rcssNum.exec( jQuery.css( elem, prop ) ); + + if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { + + // Support: Firefox <=54 + // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144) + initial = initial / 2; + + // Trust units reported by jQuery.css + unit = unit || initialInUnit[ 3 ]; + + // Iteratively approximate from a nonzero starting point + initialInUnit = +initial || 1; + + while ( maxIterations-- ) { + + // Evaluate and update our best guess (doubling guesses that zero out). + // Finish if the scale equals or crosses 1 (making the old*new product non-positive). + jQuery.style( elem, prop, initialInUnit + unit ); + if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) { + maxIterations = 0; + } + initialInUnit = initialInUnit / scale; + + } + + initialInUnit = initialInUnit * 2; + jQuery.style( elem, prop, initialInUnit + unit ); + + // Make sure we update the tween properties later on + valueParts = valueParts || []; + } + + if ( valueParts ) { + initialInUnit = +initialInUnit || +initial || 0; + + // Apply relative offset (+=/-=) if specified + adjusted = valueParts[ 1 ] ? + initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : + +valueParts[ 2 ]; + if ( tween ) { + tween.unit = unit; + tween.start = initialInUnit; + tween.end = adjusted; + } + } + return adjusted; +} + + +var defaultDisplayMap = {}; + +function getDefaultDisplay( elem ) { + var temp, + doc = elem.ownerDocument, + nodeName = elem.nodeName, + display = defaultDisplayMap[ nodeName ]; + + if ( display ) { + return display; + } + + temp = doc.body.appendChild( doc.createElement( nodeName ) ); + display = jQuery.css( temp, "display" ); + + temp.parentNode.removeChild( temp ); + + if ( display === "none" ) { + display = "block"; + } + defaultDisplayMap[ nodeName ] = display; + + return display; +} + +function showHide( elements, show ) { + var display, elem, + values = [], + index = 0, + length = elements.length; + + // Determine new display value for elements that need to change + for ( ; index < length; index++ ) { + elem = elements[ index ]; + if ( !elem.style ) { + continue; + } + + display = elem.style.display; + if ( show ) { + + // Since we force visibility upon cascade-hidden elements, an immediate (and slow) + // check is required in this first loop unless we have a nonempty display value (either + // inline or about-to-be-restored) + if ( display === "none" ) { + values[ index ] = dataPriv.get( elem, "display" ) || null; + if ( !values[ index ] ) { + elem.style.display = ""; + } + } + if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { + values[ index ] = getDefaultDisplay( elem ); + } + } else { + if ( display !== "none" ) { + values[ index ] = "none"; + + // Remember what we're overwriting + dataPriv.set( elem, "display", display ); + } + } + } + + // Set the display of the elements in a second loop to avoid constant reflow + for ( index = 0; index < length; index++ ) { + if ( values[ index ] != null ) { + elements[ index ].style.display = values[ index ]; + } + } + + return elements; +} + +jQuery.fn.extend( { + show: function() { + return showHide( this, true ); + }, + hide: function() { + return showHide( this ); + }, + toggle: function( state ) { + if ( typeof state === "boolean" ) { + return state ? this.show() : this.hide(); + } + + return this.each( function() { + if ( isHiddenWithinTree( this ) ) { + jQuery( this ).show(); + } else { + jQuery( this ).hide(); + } + } ); + } +} ); +var rcheckableType = ( /^(?:checkbox|radio)$/i ); + +var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i ); + +var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i ); + + + +// We have to close these tags to support XHTML (#13200) +var wrapMap = { + + // Support: IE <=9 only + option: [ 1, "" ], + + // XHTML parsers do not magically insert elements in the + // same way that tag soup parsers do. So we cannot shorten + // this by omitting

      ", "
      " ], + col: [ 2, "", "
      " ], + tr: [ 2, "", "
      " ], + td: [ 3, "", "
      " ], + + _default: [ 0, "", "" ] +}; + +// Support: IE <=9 only +wrapMap.optgroup = wrapMap.option; + +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + + +function getAll( context, tag ) { + + // Support: IE <=9 - 11 only + // Use typeof to avoid zero-argument method invocation on host objects (#15151) + var ret; + + if ( typeof context.getElementsByTagName !== "undefined" ) { + ret = context.getElementsByTagName( tag || "*" ); + + } else if ( typeof context.querySelectorAll !== "undefined" ) { + ret = context.querySelectorAll( tag || "*" ); + + } else { + ret = []; + } + + if ( tag === undefined || tag && nodeName( context, tag ) ) { + return jQuery.merge( [ context ], ret ); + } + + return ret; +} + + +// Mark scripts as having already been evaluated +function setGlobalEval( elems, refElements ) { + var i = 0, + l = elems.length; + + for ( ; i < l; i++ ) { + dataPriv.set( + elems[ i ], + "globalEval", + !refElements || dataPriv.get( refElements[ i ], "globalEval" ) + ); + } +} + + +var rhtml = /<|&#?\w+;/; + +function buildFragment( elems, context, scripts, selection, ignored ) { + var elem, tmp, tag, wrap, attached, j, + fragment = context.createDocumentFragment(), + nodes = [], + i = 0, + l = elems.length; + + for ( ; i < l; i++ ) { + elem = elems[ i ]; + + if ( elem || elem === 0 ) { + + // Add nodes directly + if ( toType( elem ) === "object" ) { + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); + + // Convert non-html into a text node + } else if ( !rhtml.test( elem ) ) { + nodes.push( context.createTextNode( elem ) ); + + // Convert html into DOM nodes + } else { + tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); + + // Deserialize a standard representation + tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); + wrap = wrapMap[ tag ] || wrapMap._default; + tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; + + // Descend through wrappers to the right content + j = wrap[ 0 ]; + while ( j-- ) { + tmp = tmp.lastChild; + } + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( nodes, tmp.childNodes ); + + // Remember the top-level container + tmp = fragment.firstChild; + + // Ensure the created nodes are orphaned (#12392) + tmp.textContent = ""; + } + } + } + + // Remove wrapper from fragment + fragment.textContent = ""; + + i = 0; + while ( ( elem = nodes[ i++ ] ) ) { + + // Skip elements already in the context collection (trac-4087) + if ( selection && jQuery.inArray( elem, selection ) > -1 ) { + if ( ignored ) { + ignored.push( elem ); + } + continue; + } + + attached = isAttached( elem ); + + // Append to fragment + tmp = getAll( fragment.appendChild( elem ), "script" ); + + // Preserve script evaluation history + if ( attached ) { + setGlobalEval( tmp ); + } + + // Capture executables + if ( scripts ) { + j = 0; + while ( ( elem = tmp[ j++ ] ) ) { + if ( rscriptType.test( elem.type || "" ) ) { + scripts.push( elem ); + } + } + } + } + + return fragment; +} + + +( function() { + var fragment = document.createDocumentFragment(), + div = fragment.appendChild( document.createElement( "div" ) ), + input = document.createElement( "input" ); + + // Support: Android 4.0 - 4.3 only + // Check state lost if the name is set (#11217) + // Support: Windows Web Apps (WWA) + // `name` and `type` must use .setAttribute for WWA (#14901) + input.setAttribute( "type", "radio" ); + input.setAttribute( "checked", "checked" ); + input.setAttribute( "name", "t" ); + + div.appendChild( input ); + + // Support: Android <=4.1 only + // Older WebKit doesn't clone checked state correctly in fragments + support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; + + // Support: IE <=11 only + // Make sure textarea (and checkbox) defaultValue is properly cloned + div.innerHTML = ""; + support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; +} )(); + + +var + rkeyEvent = /^key/, + rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, + rtypenamespace = /^([^.]*)(?:\.(.+)|)/; + +function returnTrue() { + return true; +} + +function returnFalse() { + return false; +} + +// Support: IE <=9 - 11+ +// focus() and blur() are asynchronous, except when they are no-op. +// So expect focus to be synchronous when the element is already active, +// and blur to be synchronous when the element is not already active. +// (focus and blur are always synchronous in other supported browsers, +// this just defines when we can count on it). +function expectSync( elem, type ) { + return ( elem === safeActiveElement() ) === ( type === "focus" ); +} + +// Support: IE <=9 only +// Accessing document.activeElement can throw unexpectedly +// https://bugs.jquery.com/ticket/13393 +function safeActiveElement() { + try { + return document.activeElement; + } catch ( err ) { } +} + +function on( elem, types, selector, data, fn, one ) { + var origFn, type; + + // Types can be a map of types/handlers + if ( typeof types === "object" ) { + + // ( types-Object, selector, data ) + if ( typeof selector !== "string" ) { + + // ( types-Object, data ) + data = data || selector; + selector = undefined; + } + for ( type in types ) { + on( elem, type, selector, data, types[ type ], one ); + } + return elem; + } + + if ( data == null && fn == null ) { + + // ( types, fn ) + fn = selector; + data = selector = undefined; + } else if ( fn == null ) { + if ( typeof selector === "string" ) { + + // ( types, selector, fn ) + fn = data; + data = undefined; + } else { + + // ( types, data, fn ) + fn = data; + data = selector; + selector = undefined; + } + } + if ( fn === false ) { + fn = returnFalse; + } else if ( !fn ) { + return elem; + } + + if ( one === 1 ) { + origFn = fn; + fn = function( event ) { + + // Can use an empty set, since event contains the info + jQuery().off( event ); + return origFn.apply( this, arguments ); + }; + + // Use same guid so caller can remove using origFn + fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); + } + return elem.each( function() { + jQuery.event.add( this, types, fn, data, selector ); + } ); +} + +/* + * Helper functions for managing events -- not part of the public interface. + * Props to Dean Edwards' addEvent library for many of the ideas. + */ +jQuery.event = { + + global: {}, + + add: function( elem, types, handler, data, selector ) { + + var handleObjIn, eventHandle, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = dataPriv.get( elem ); + + // Don't attach events to noData or text/comment nodes (but allow plain objects) + if ( !elemData ) { + return; + } + + // Caller can pass in an object of custom data in lieu of the handler + if ( handler.handler ) { + handleObjIn = handler; + handler = handleObjIn.handler; + selector = handleObjIn.selector; + } + + // Ensure that invalid selectors throw exceptions at attach time + // Evaluate against documentElement in case elem is a non-element node (e.g., document) + if ( selector ) { + jQuery.find.matchesSelector( documentElement, selector ); + } + + // Make sure that the handler has a unique ID, used to find/remove it later + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure and main handler, if this is the first + if ( !( events = elemData.events ) ) { + events = elemData.events = {}; + } + if ( !( eventHandle = elemData.handle ) ) { + eventHandle = elemData.handle = function( e ) { + + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? + jQuery.event.dispatch.apply( elem, arguments ) : undefined; + }; + } + + // Handle multiple events separated by a space + types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[ t ] ) || []; + type = origType = tmp[ 1 ]; + namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); + + // There *must* be a type, no attaching namespace-only handlers + if ( !type ) { + continue; + } + + // If event changes its type, use the special event handlers for the changed type + special = jQuery.event.special[ type ] || {}; + + // If selector defined, determine special event api type, otherwise given type + type = ( selector ? special.delegateType : special.bindType ) || type; + + // Update special based on newly reset type + special = jQuery.event.special[ type ] || {}; + + // handleObj is passed to all event handlers + handleObj = jQuery.extend( { + type: type, + origType: origType, + data: data, + handler: handler, + guid: handler.guid, + selector: selector, + needsContext: selector && jQuery.expr.match.needsContext.test( selector ), + namespace: namespaces.join( "." ) + }, handleObjIn ); + + // Init the event handler queue if we're the first + if ( !( handlers = events[ type ] ) ) { + handlers = events[ type ] = []; + handlers.delegateCount = 0; + + // Only use addEventListener if the special events handler returns false + if ( !special.setup || + special.setup.call( elem, data, namespaces, eventHandle ) === false ) { + + if ( elem.addEventListener ) { + elem.addEventListener( type, eventHandle ); + } + } + } + + if ( special.add ) { + special.add.call( elem, handleObj ); + + if ( !handleObj.handler.guid ) { + handleObj.handler.guid = handler.guid; + } + } + + // Add to the element's handler list, delegates in front + if ( selector ) { + handlers.splice( handlers.delegateCount++, 0, handleObj ); + } else { + handlers.push( handleObj ); + } + + // Keep track of which events have ever been used, for event optimization + jQuery.event.global[ type ] = true; + } + + }, + + // Detach an event or set of events from an element + remove: function( elem, types, handler, selector, mappedTypes ) { + + var j, origCount, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); + + if ( !elemData || !( events = elemData.events ) ) { + return; + } + + // Once for each type.namespace in types; type may be omitted + types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[ t ] ) || []; + type = origType = tmp[ 1 ]; + namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); + + // Unbind all events (on this namespace, if provided) for the element + if ( !type ) { + for ( type in events ) { + jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); + } + continue; + } + + special = jQuery.event.special[ type ] || {}; + type = ( selector ? special.delegateType : special.bindType ) || type; + handlers = events[ type ] || []; + tmp = tmp[ 2 ] && + new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); + + // Remove matching events + origCount = j = handlers.length; + while ( j-- ) { + handleObj = handlers[ j ]; + + if ( ( mappedTypes || origType === handleObj.origType ) && + ( !handler || handler.guid === handleObj.guid ) && + ( !tmp || tmp.test( handleObj.namespace ) ) && + ( !selector || selector === handleObj.selector || + selector === "**" && handleObj.selector ) ) { + handlers.splice( j, 1 ); + + if ( handleObj.selector ) { + handlers.delegateCount--; + } + if ( special.remove ) { + special.remove.call( elem, handleObj ); + } + } + } + + // Remove generic event handler if we removed something and no more handlers exist + // (avoids potential for endless recursion during removal of special event handlers) + if ( origCount && !handlers.length ) { + if ( !special.teardown || + special.teardown.call( elem, namespaces, elemData.handle ) === false ) { + + jQuery.removeEvent( elem, type, elemData.handle ); + } + + delete events[ type ]; + } + } + + // Remove data and the expando if it's no longer used + if ( jQuery.isEmptyObject( events ) ) { + dataPriv.remove( elem, "handle events" ); + } + }, + + dispatch: function( nativeEvent ) { + + // Make a writable jQuery.Event from the native event object + var event = jQuery.event.fix( nativeEvent ); + + var i, j, ret, matched, handleObj, handlerQueue, + args = new Array( arguments.length ), + handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [], + special = jQuery.event.special[ event.type ] || {}; + + // Use the fix-ed jQuery.Event rather than the (read-only) native event + args[ 0 ] = event; + + for ( i = 1; i < arguments.length; i++ ) { + args[ i ] = arguments[ i ]; + } + + event.delegateTarget = this; + + // Call the preDispatch hook for the mapped type, and let it bail if desired + if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { + return; + } + + // Determine handlers + handlerQueue = jQuery.event.handlers.call( this, event, handlers ); + + // Run delegates first; they may want to stop propagation beneath us + i = 0; + while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { + event.currentTarget = matched.elem; + + j = 0; + while ( ( handleObj = matched.handlers[ j++ ] ) && + !event.isImmediatePropagationStopped() ) { + + // If the event is namespaced, then each handler is only invoked if it is + // specially universal or its namespaces are a superset of the event's. + if ( !event.rnamespace || handleObj.namespace === false || + event.rnamespace.test( handleObj.namespace ) ) { + + event.handleObj = handleObj; + event.data = handleObj.data; + + ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || + handleObj.handler ).apply( matched.elem, args ); + + if ( ret !== undefined ) { + if ( ( event.result = ret ) === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + } + } + } + + // Call the postDispatch hook for the mapped type + if ( special.postDispatch ) { + special.postDispatch.call( this, event ); + } + + return event.result; + }, + + handlers: function( event, handlers ) { + var i, handleObj, sel, matchedHandlers, matchedSelectors, + handlerQueue = [], + delegateCount = handlers.delegateCount, + cur = event.target; + + // Find delegate handlers + if ( delegateCount && + + // Support: IE <=9 + // Black-hole SVG instance trees (trac-13180) + cur.nodeType && + + // Support: Firefox <=42 + // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) + // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click + // Support: IE 11 only + // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) + !( event.type === "click" && event.button >= 1 ) ) { + + for ( ; cur !== this; cur = cur.parentNode || this ) { + + // Don't check non-elements (#13208) + // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) + if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { + matchedHandlers = []; + matchedSelectors = {}; + for ( i = 0; i < delegateCount; i++ ) { + handleObj = handlers[ i ]; + + // Don't conflict with Object.prototype properties (#13203) + sel = handleObj.selector + " "; + + if ( matchedSelectors[ sel ] === undefined ) { + matchedSelectors[ sel ] = handleObj.needsContext ? + jQuery( sel, this ).index( cur ) > -1 : + jQuery.find( sel, this, null, [ cur ] ).length; + } + if ( matchedSelectors[ sel ] ) { + matchedHandlers.push( handleObj ); + } + } + if ( matchedHandlers.length ) { + handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); + } + } + } + } + + // Add the remaining (directly-bound) handlers + cur = this; + if ( delegateCount < handlers.length ) { + handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); + } + + return handlerQueue; + }, + + addProp: function( name, hook ) { + Object.defineProperty( jQuery.Event.prototype, name, { + enumerable: true, + configurable: true, + + get: isFunction( hook ) ? + function() { + if ( this.originalEvent ) { + return hook( this.originalEvent ); + } + } : + function() { + if ( this.originalEvent ) { + return this.originalEvent[ name ]; + } + }, + + set: function( value ) { + Object.defineProperty( this, name, { + enumerable: true, + configurable: true, + writable: true, + value: value + } ); + } + } ); + }, + + fix: function( originalEvent ) { + return originalEvent[ jQuery.expando ] ? + originalEvent : + new jQuery.Event( originalEvent ); + }, + + special: { + load: { + + // Prevent triggered image.load events from bubbling to window.load + noBubble: true + }, + click: { + + // Utilize native event to ensure correct state for checkable inputs + setup: function( data ) { + + // For mutual compressibility with _default, replace `this` access with a local var. + // `|| data` is dead code meant only to preserve the variable through minification. + var el = this || data; + + // Claim the first handler + if ( rcheckableType.test( el.type ) && + el.click && nodeName( el, "input" ) ) { + + // dataPriv.set( el, "click", ... ) + leverageNative( el, "click", returnTrue ); + } + + // Return false to allow normal processing in the caller + return false; + }, + trigger: function( data ) { + + // For mutual compressibility with _default, replace `this` access with a local var. + // `|| data` is dead code meant only to preserve the variable through minification. + var el = this || data; + + // Force setup before triggering a click + if ( rcheckableType.test( el.type ) && + el.click && nodeName( el, "input" ) ) { + + leverageNative( el, "click" ); + } + + // Return non-false to allow normal event-path propagation + return true; + }, + + // For cross-browser consistency, suppress native .click() on links + // Also prevent it if we're currently inside a leveraged native-event stack + _default: function( event ) { + var target = event.target; + return rcheckableType.test( target.type ) && + target.click && nodeName( target, "input" ) && + dataPriv.get( target, "click" ) || + nodeName( target, "a" ); + } + }, + + beforeunload: { + postDispatch: function( event ) { + + // Support: Firefox 20+ + // Firefox doesn't alert if the returnValue field is not set. + if ( event.result !== undefined && event.originalEvent ) { + event.originalEvent.returnValue = event.result; + } + } + } + } +}; + +// Ensure the presence of an event listener that handles manually-triggered +// synthetic events by interrupting progress until reinvoked in response to +// *native* events that it fires directly, ensuring that state changes have +// already occurred before other listeners are invoked. +function leverageNative( el, type, expectSync ) { + + // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add + if ( !expectSync ) { + if ( dataPriv.get( el, type ) === undefined ) { + jQuery.event.add( el, type, returnTrue ); + } + return; + } + + // Register the controller as a special universal handler for all event namespaces + dataPriv.set( el, type, false ); + jQuery.event.add( el, type, { + namespace: false, + handler: function( event ) { + var notAsync, result, + saved = dataPriv.get( this, type ); + + if ( ( event.isTrigger & 1 ) && this[ type ] ) { + + // Interrupt processing of the outer synthetic .trigger()ed event + // Saved data should be false in such cases, but might be a leftover capture object + // from an async native handler (gh-4350) + if ( !saved.length ) { + + // Store arguments for use when handling the inner native event + // There will always be at least one argument (an event object), so this array + // will not be confused with a leftover capture object. + saved = slice.call( arguments ); + dataPriv.set( this, type, saved ); + + // Trigger the native event and capture its result + // Support: IE <=9 - 11+ + // focus() and blur() are asynchronous + notAsync = expectSync( this, type ); + this[ type ](); + result = dataPriv.get( this, type ); + if ( saved !== result || notAsync ) { + dataPriv.set( this, type, false ); + } else { + result = {}; + } + if ( saved !== result ) { + + // Cancel the outer synthetic event + event.stopImmediatePropagation(); + event.preventDefault(); + return result.value; + } + + // If this is an inner synthetic event for an event with a bubbling surrogate + // (focus or blur), assume that the surrogate already propagated from triggering the + // native event and prevent that from happening again here. + // This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the + // bubbling surrogate propagates *after* the non-bubbling base), but that seems + // less bad than duplication. + } else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) { + event.stopPropagation(); + } + + // If this is a native event triggered above, everything is now in order + // Fire an inner synthetic event with the original arguments + } else if ( saved.length ) { + + // ...and capture the result + dataPriv.set( this, type, { + value: jQuery.event.trigger( + + // Support: IE <=9 - 11+ + // Extend with the prototype to reset the above stopImmediatePropagation() + jQuery.extend( saved[ 0 ], jQuery.Event.prototype ), + saved.slice( 1 ), + this + ) + } ); + + // Abort handling of the native event + event.stopImmediatePropagation(); + } + } + } ); +} + +jQuery.removeEvent = function( elem, type, handle ) { + + // This "if" is needed for plain objects + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle ); + } +}; + +jQuery.Event = function( src, props ) { + + // Allow instantiation without the 'new' keyword + if ( !( this instanceof jQuery.Event ) ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = src.defaultPrevented || + src.defaultPrevented === undefined && + + // Support: Android <=2.3 only + src.returnValue === false ? + returnTrue : + returnFalse; + + // Create target properties + // Support: Safari <=6 - 7 only + // Target should not be a text node (#504, #13143) + this.target = ( src.target && src.target.nodeType === 3 ) ? + src.target.parentNode : + src.target; + + this.currentTarget = src.currentTarget; + this.relatedTarget = src.relatedTarget; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // Create a timestamp if incoming event doesn't have one + this.timeStamp = src && src.timeStamp || Date.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +jQuery.Event.prototype = { + constructor: jQuery.Event, + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse, + isSimulated: false, + + preventDefault: function() { + var e = this.originalEvent; + + this.isDefaultPrevented = returnTrue; + + if ( e && !this.isSimulated ) { + e.preventDefault(); + } + }, + stopPropagation: function() { + var e = this.originalEvent; + + this.isPropagationStopped = returnTrue; + + if ( e && !this.isSimulated ) { + e.stopPropagation(); + } + }, + stopImmediatePropagation: function() { + var e = this.originalEvent; + + this.isImmediatePropagationStopped = returnTrue; + + if ( e && !this.isSimulated ) { + e.stopImmediatePropagation(); + } + + this.stopPropagation(); + } +}; + +// Includes all common event props including KeyEvent and MouseEvent specific props +jQuery.each( { + altKey: true, + bubbles: true, + cancelable: true, + changedTouches: true, + ctrlKey: true, + detail: true, + eventPhase: true, + metaKey: true, + pageX: true, + pageY: true, + shiftKey: true, + view: true, + "char": true, + code: true, + charCode: true, + key: true, + keyCode: true, + button: true, + buttons: true, + clientX: true, + clientY: true, + offsetX: true, + offsetY: true, + pointerId: true, + pointerType: true, + screenX: true, + screenY: true, + targetTouches: true, + toElement: true, + touches: true, + + which: function( event ) { + var button = event.button; + + // Add which for key events + if ( event.which == null && rkeyEvent.test( event.type ) ) { + return event.charCode != null ? event.charCode : event.keyCode; + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) { + if ( button & 1 ) { + return 1; + } + + if ( button & 2 ) { + return 3; + } + + if ( button & 4 ) { + return 2; + } + + return 0; + } + + return event.which; + } +}, jQuery.event.addProp ); + +jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) { + jQuery.event.special[ type ] = { + + // Utilize native event if possible so blur/focus sequence is correct + setup: function() { + + // Claim the first handler + // dataPriv.set( this, "focus", ... ) + // dataPriv.set( this, "blur", ... ) + leverageNative( this, type, expectSync ); + + // Return false to allow normal processing in the caller + return false; + }, + trigger: function() { + + // Force setup before trigger + leverageNative( this, type ); + + // Return non-false to allow normal event-path propagation + return true; + }, + + delegateType: delegateType + }; +} ); + +// Create mouseenter/leave events using mouseover/out and event-time checks +// so that event delegation works in jQuery. +// Do the same for pointerenter/pointerleave and pointerover/pointerout +// +// Support: Safari 7 only +// Safari sends mouseenter too often; see: +// https://bugs.chromium.org/p/chromium/issues/detail?id=470258 +// for the description of the bug (it existed in older Chrome versions as well). +jQuery.each( { + mouseenter: "mouseover", + mouseleave: "mouseout", + pointerenter: "pointerover", + pointerleave: "pointerout" +}, function( orig, fix ) { + jQuery.event.special[ orig ] = { + delegateType: fix, + bindType: fix, + + handle: function( event ) { + var ret, + target = this, + related = event.relatedTarget, + handleObj = event.handleObj; + + // For mouseenter/leave call the handler if related is outside the target. + // NB: No relatedTarget if the mouse left/entered the browser window + if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { + event.type = handleObj.origType; + ret = handleObj.handler.apply( this, arguments ); + event.type = fix; + } + return ret; + } + }; +} ); + +jQuery.fn.extend( { + + on: function( types, selector, data, fn ) { + return on( this, types, selector, data, fn ); + }, + one: function( types, selector, data, fn ) { + return on( this, types, selector, data, fn, 1 ); + }, + off: function( types, selector, fn ) { + var handleObj, type; + if ( types && types.preventDefault && types.handleObj ) { + + // ( event ) dispatched jQuery.Event + handleObj = types.handleObj; + jQuery( types.delegateTarget ).off( + handleObj.namespace ? + handleObj.origType + "." + handleObj.namespace : + handleObj.origType, + handleObj.selector, + handleObj.handler + ); + return this; + } + if ( typeof types === "object" ) { + + // ( types-object [, selector] ) + for ( type in types ) { + this.off( type, selector, types[ type ] ); + } + return this; + } + if ( selector === false || typeof selector === "function" ) { + + // ( types [, fn] ) + fn = selector; + selector = undefined; + } + if ( fn === false ) { + fn = returnFalse; + } + return this.each( function() { + jQuery.event.remove( this, types, fn, selector ); + } ); + } +} ); + + +var + + /* eslint-disable max-len */ + + // See https://github.com/eslint/eslint/issues/3229 + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, + + /* eslint-enable */ + + // Support: IE <=10 - 11, Edge 12 - 13 only + // In IE/Edge using regex groups here causes severe slowdowns. + // See https://connect.microsoft.com/IE/feedback/details/1736512/ + rnoInnerhtml = /\s*$/g; + +// Prefer a tbody over its parent table for containing new rows +function manipulationTarget( elem, content ) { + if ( nodeName( elem, "table" ) && + nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { + + return jQuery( elem ).children( "tbody" )[ 0 ] || elem; + } + + return elem; +} + +// Replace/restore the type attribute of script elements for safe DOM manipulation +function disableScript( elem ) { + elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; + return elem; +} +function restoreScript( elem ) { + if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) { + elem.type = elem.type.slice( 5 ); + } else { + elem.removeAttribute( "type" ); + } + + return elem; +} + +function cloneCopyEvent( src, dest ) { + var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; + + if ( dest.nodeType !== 1 ) { + return; + } + + // 1. Copy private data: events, handlers, etc. + if ( dataPriv.hasData( src ) ) { + pdataOld = dataPriv.access( src ); + pdataCur = dataPriv.set( dest, pdataOld ); + events = pdataOld.events; + + if ( events ) { + delete pdataCur.handle; + pdataCur.events = {}; + + for ( type in events ) { + for ( i = 0, l = events[ type ].length; i < l; i++ ) { + jQuery.event.add( dest, type, events[ type ][ i ] ); + } + } + } + } + + // 2. Copy user data + if ( dataUser.hasData( src ) ) { + udataOld = dataUser.access( src ); + udataCur = jQuery.extend( {}, udataOld ); + + dataUser.set( dest, udataCur ); + } +} + +// Fix IE bugs, see support tests +function fixInput( src, dest ) { + var nodeName = dest.nodeName.toLowerCase(); + + // Fails to persist the checked state of a cloned checkbox or radio button. + if ( nodeName === "input" && rcheckableType.test( src.type ) ) { + dest.checked = src.checked; + + // Fails to return the selected option to the default selected state when cloning options + } else if ( nodeName === "input" || nodeName === "textarea" ) { + dest.defaultValue = src.defaultValue; + } +} + +function domManip( collection, args, callback, ignored ) { + + // Flatten any nested arrays + args = concat.apply( [], args ); + + var fragment, first, scripts, hasScripts, node, doc, + i = 0, + l = collection.length, + iNoClone = l - 1, + value = args[ 0 ], + valueIsFunction = isFunction( value ); + + // We can't cloneNode fragments that contain checked, in WebKit + if ( valueIsFunction || + ( l > 1 && typeof value === "string" && + !support.checkClone && rchecked.test( value ) ) ) { + return collection.each( function( index ) { + var self = collection.eq( index ); + if ( valueIsFunction ) { + args[ 0 ] = value.call( this, index, self.html() ); + } + domManip( self, args, callback, ignored ); + } ); + } + + if ( l ) { + fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); + first = fragment.firstChild; + + if ( fragment.childNodes.length === 1 ) { + fragment = first; + } + + // Require either new content or an interest in ignored elements to invoke the callback + if ( first || ignored ) { + scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); + hasScripts = scripts.length; + + // Use the original fragment for the last item + // instead of the first because it can end up + // being emptied incorrectly in certain situations (#8070). + for ( ; i < l; i++ ) { + node = fragment; + + if ( i !== iNoClone ) { + node = jQuery.clone( node, true, true ); + + // Keep references to cloned scripts for later restoration + if ( hasScripts ) { + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( scripts, getAll( node, "script" ) ); + } + } + + callback.call( collection[ i ], node, i ); + } + + if ( hasScripts ) { + doc = scripts[ scripts.length - 1 ].ownerDocument; + + // Reenable scripts + jQuery.map( scripts, restoreScript ); + + // Evaluate executable scripts on first document insertion + for ( i = 0; i < hasScripts; i++ ) { + node = scripts[ i ]; + if ( rscriptType.test( node.type || "" ) && + !dataPriv.access( node, "globalEval" ) && + jQuery.contains( doc, node ) ) { + + if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) { + + // Optional AJAX dependency, but won't run scripts if not present + if ( jQuery._evalUrl && !node.noModule ) { + jQuery._evalUrl( node.src, { + nonce: node.nonce || node.getAttribute( "nonce" ) + } ); + } + } else { + DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc ); + } + } + } + } + } + } + + return collection; +} + +function remove( elem, selector, keepData ) { + var node, + nodes = selector ? jQuery.filter( selector, elem ) : elem, + i = 0; + + for ( ; ( node = nodes[ i ] ) != null; i++ ) { + if ( !keepData && node.nodeType === 1 ) { + jQuery.cleanData( getAll( node ) ); + } + + if ( node.parentNode ) { + if ( keepData && isAttached( node ) ) { + setGlobalEval( getAll( node, "script" ) ); + } + node.parentNode.removeChild( node ); + } + } + + return elem; +} + +jQuery.extend( { + htmlPrefilter: function( html ) { + return html.replace( rxhtmlTag, "<$1>" ); + }, + + clone: function( elem, dataAndEvents, deepDataAndEvents ) { + var i, l, srcElements, destElements, + clone = elem.cloneNode( true ), + inPage = isAttached( elem ); + + // Fix IE cloning issues + if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && + !jQuery.isXMLDoc( elem ) ) { + + // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 + destElements = getAll( clone ); + srcElements = getAll( elem ); + + for ( i = 0, l = srcElements.length; i < l; i++ ) { + fixInput( srcElements[ i ], destElements[ i ] ); + } + } + + // Copy the events from the original to the clone + if ( dataAndEvents ) { + if ( deepDataAndEvents ) { + srcElements = srcElements || getAll( elem ); + destElements = destElements || getAll( clone ); + + for ( i = 0, l = srcElements.length; i < l; i++ ) { + cloneCopyEvent( srcElements[ i ], destElements[ i ] ); + } + } else { + cloneCopyEvent( elem, clone ); + } + } + + // Preserve script evaluation history + destElements = getAll( clone, "script" ); + if ( destElements.length > 0 ) { + setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); + } + + // Return the cloned set + return clone; + }, + + cleanData: function( elems ) { + var data, elem, type, + special = jQuery.event.special, + i = 0; + + for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { + if ( acceptData( elem ) ) { + if ( ( data = elem[ dataPriv.expando ] ) ) { + if ( data.events ) { + for ( type in data.events ) { + if ( special[ type ] ) { + jQuery.event.remove( elem, type ); + + // This is a shortcut to avoid jQuery.event.remove's overhead + } else { + jQuery.removeEvent( elem, type, data.handle ); + } + } + } + + // Support: Chrome <=35 - 45+ + // Assign undefined instead of using delete, see Data#remove + elem[ dataPriv.expando ] = undefined; + } + if ( elem[ dataUser.expando ] ) { + + // Support: Chrome <=35 - 45+ + // Assign undefined instead of using delete, see Data#remove + elem[ dataUser.expando ] = undefined; + } + } + } + } +} ); + +jQuery.fn.extend( { + detach: function( selector ) { + return remove( this, selector, true ); + }, + + remove: function( selector ) { + return remove( this, selector ); + }, + + text: function( value ) { + return access( this, function( value ) { + return value === undefined ? + jQuery.text( this ) : + this.empty().each( function() { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + this.textContent = value; + } + } ); + }, null, value, arguments.length ); + }, + + append: function() { + return domManip( this, arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.appendChild( elem ); + } + } ); + }, + + prepend: function() { + return domManip( this, arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.insertBefore( elem, target.firstChild ); + } + } ); + }, + + before: function() { + return domManip( this, arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this ); + } + } ); + }, + + after: function() { + return domManip( this, arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this.nextSibling ); + } + } ); + }, + + empty: function() { + var elem, + i = 0; + + for ( ; ( elem = this[ i ] ) != null; i++ ) { + if ( elem.nodeType === 1 ) { + + // Prevent memory leaks + jQuery.cleanData( getAll( elem, false ) ); + + // Remove any remaining nodes + elem.textContent = ""; + } + } + + return this; + }, + + clone: function( dataAndEvents, deepDataAndEvents ) { + dataAndEvents = dataAndEvents == null ? false : dataAndEvents; + deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + + return this.map( function() { + return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); + } ); + }, + + html: function( value ) { + return access( this, function( value ) { + var elem = this[ 0 ] || {}, + i = 0, + l = this.length; + + if ( value === undefined && elem.nodeType === 1 ) { + return elem.innerHTML; + } + + // See if we can take a shortcut and just use innerHTML + if ( typeof value === "string" && !rnoInnerhtml.test( value ) && + !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { + + value = jQuery.htmlPrefilter( value ); + + try { + for ( ; i < l; i++ ) { + elem = this[ i ] || {}; + + // Remove element nodes and prevent memory leaks + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + elem.innerHTML = value; + } + } + + elem = 0; + + // If using innerHTML throws an exception, use the fallback method + } catch ( e ) {} + } + + if ( elem ) { + this.empty().append( value ); + } + }, null, value, arguments.length ); + }, + + replaceWith: function() { + var ignored = []; + + // Make the changes, replacing each non-ignored context element with the new content + return domManip( this, arguments, function( elem ) { + var parent = this.parentNode; + + if ( jQuery.inArray( this, ignored ) < 0 ) { + jQuery.cleanData( getAll( this ) ); + if ( parent ) { + parent.replaceChild( elem, this ); + } + } + + // Force callback invocation + }, ignored ); + } +} ); + +jQuery.each( { + appendTo: "append", + prependTo: "prepend", + insertBefore: "before", + insertAfter: "after", + replaceAll: "replaceWith" +}, function( name, original ) { + jQuery.fn[ name ] = function( selector ) { + var elems, + ret = [], + insert = jQuery( selector ), + last = insert.length - 1, + i = 0; + + for ( ; i <= last; i++ ) { + elems = i === last ? this : this.clone( true ); + jQuery( insert[ i ] )[ original ]( elems ); + + // Support: Android <=4.0 only, PhantomJS 1 only + // .get() because push.apply(_, arraylike) throws on ancient WebKit + push.apply( ret, elems.get() ); + } + + return this.pushStack( ret ); + }; +} ); +var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); + +var getStyles = function( elem ) { + + // Support: IE <=11 only, Firefox <=30 (#15098, #14150) + // IE throws on elements created in popups + // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" + var view = elem.ownerDocument.defaultView; + + if ( !view || !view.opener ) { + view = window; + } + + return view.getComputedStyle( elem ); + }; + +var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" ); + + + +( function() { + + // Executing both pixelPosition & boxSizingReliable tests require only one layout + // so they're executed at the same time to save the second computation. + function computeStyleTests() { + + // This is a singleton, we need to execute it only once + if ( !div ) { + return; + } + + container.style.cssText = "position:absolute;left:-11111px;width:60px;" + + "margin-top:1px;padding:0;border:0"; + div.style.cssText = + "position:relative;display:block;box-sizing:border-box;overflow:scroll;" + + "margin:auto;border:1px;padding:1px;" + + "width:60%;top:1%"; + documentElement.appendChild( container ).appendChild( div ); + + var divStyle = window.getComputedStyle( div ); + pixelPositionVal = divStyle.top !== "1%"; + + // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 + reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12; + + // Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3 + // Some styles come back with percentage values, even though they shouldn't + div.style.right = "60%"; + pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36; + + // Support: IE 9 - 11 only + // Detect misreporting of content dimensions for box-sizing:border-box elements + boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36; + + // Support: IE 9 only + // Detect overflow:scroll screwiness (gh-3699) + // Support: Chrome <=64 + // Don't get tricked when zoom affects offsetWidth (gh-4029) + div.style.position = "absolute"; + scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12; + + documentElement.removeChild( container ); + + // Nullify the div so it wouldn't be stored in the memory and + // it will also be a sign that checks already performed + div = null; + } + + function roundPixelMeasures( measure ) { + return Math.round( parseFloat( measure ) ); + } + + var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal, + reliableMarginLeftVal, + container = document.createElement( "div" ), + div = document.createElement( "div" ); + + // Finish early in limited (non-browser) environments + if ( !div.style ) { + return; + } + + // Support: IE <=9 - 11 only + // Style of cloned element affects source element cloned (#8908) + div.style.backgroundClip = "content-box"; + div.cloneNode( true ).style.backgroundClip = ""; + support.clearCloneStyle = div.style.backgroundClip === "content-box"; + + jQuery.extend( support, { + boxSizingReliable: function() { + computeStyleTests(); + return boxSizingReliableVal; + }, + pixelBoxStyles: function() { + computeStyleTests(); + return pixelBoxStylesVal; + }, + pixelPosition: function() { + computeStyleTests(); + return pixelPositionVal; + }, + reliableMarginLeft: function() { + computeStyleTests(); + return reliableMarginLeftVal; + }, + scrollboxSize: function() { + computeStyleTests(); + return scrollboxSizeVal; + } + } ); +} )(); + + +function curCSS( elem, name, computed ) { + var width, minWidth, maxWidth, ret, + + // Support: Firefox 51+ + // Retrieving style before computed somehow + // fixes an issue with getting wrong values + // on detached elements + style = elem.style; + + computed = computed || getStyles( elem ); + + // getPropertyValue is needed for: + // .css('filter') (IE 9 only, #12537) + // .css('--customProperty) (#3144) + if ( computed ) { + ret = computed.getPropertyValue( name ) || computed[ name ]; + + if ( ret === "" && !isAttached( elem ) ) { + ret = jQuery.style( elem, name ); + } + + // A tribute to the "awesome hack by Dean Edwards" + // Android Browser returns percentage for some values, + // but width seems to be reliably pixels. + // This is against the CSSOM draft spec: + // https://drafts.csswg.org/cssom/#resolved-values + if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) { + + // Remember the original values + width = style.width; + minWidth = style.minWidth; + maxWidth = style.maxWidth; + + // Put in the new values to get a computed value out + style.minWidth = style.maxWidth = style.width = ret; + ret = computed.width; + + // Revert the changed values + style.width = width; + style.minWidth = minWidth; + style.maxWidth = maxWidth; + } + } + + return ret !== undefined ? + + // Support: IE <=9 - 11 only + // IE returns zIndex value as an integer. + ret + "" : + ret; +} + + +function addGetHookIf( conditionFn, hookFn ) { + + // Define the hook, we'll check on the first run if it's really needed. + return { + get: function() { + if ( conditionFn() ) { + + // Hook not needed (or it's not possible to use it due + // to missing dependency), remove it. + delete this.get; + return; + } + + // Hook needed; redefine it so that the support test is not executed again. + return ( this.get = hookFn ).apply( this, arguments ); + } + }; +} + + +var cssPrefixes = [ "Webkit", "Moz", "ms" ], + emptyStyle = document.createElement( "div" ).style, + vendorProps = {}; + +// Return a vendor-prefixed property or undefined +function vendorPropName( name ) { + + // Check for vendor prefixed names + var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), + i = cssPrefixes.length; + + while ( i-- ) { + name = cssPrefixes[ i ] + capName; + if ( name in emptyStyle ) { + return name; + } + } +} + +// Return a potentially-mapped jQuery.cssProps or vendor prefixed property +function finalPropName( name ) { + var final = jQuery.cssProps[ name ] || vendorProps[ name ]; + + if ( final ) { + return final; + } + if ( name in emptyStyle ) { + return name; + } + return vendorProps[ name ] = vendorPropName( name ) || name; +} + + +var + + // Swappable if display is none or starts with table + // except "table", "table-cell", or "table-caption" + // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display + rdisplayswap = /^(none|table(?!-c[ea]).+)/, + rcustomProp = /^--/, + cssShow = { position: "absolute", visibility: "hidden", display: "block" }, + cssNormalTransform = { + letterSpacing: "0", + fontWeight: "400" + }; + +function setPositiveNumber( elem, value, subtract ) { + + // Any relative (+/-) values have already been + // normalized at this point + var matches = rcssNum.exec( value ); + return matches ? + + // Guard against undefined "subtract", e.g., when used as in cssHooks + Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : + value; +} + +function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) { + var i = dimension === "width" ? 1 : 0, + extra = 0, + delta = 0; + + // Adjustment may not be necessary + if ( box === ( isBorderBox ? "border" : "content" ) ) { + return 0; + } + + for ( ; i < 4; i += 2 ) { + + // Both box models exclude margin + if ( box === "margin" ) { + delta += jQuery.css( elem, box + cssExpand[ i ], true, styles ); + } + + // If we get here with a content-box, we're seeking "padding" or "border" or "margin" + if ( !isBorderBox ) { + + // Add padding + delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); + + // For "border" or "margin", add border + if ( box !== "padding" ) { + delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + + // But still keep track of it otherwise + } else { + extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + } + + // If we get here with a border-box (content + padding + border), we're seeking "content" or + // "padding" or "margin" + } else { + + // For "content", subtract padding + if ( box === "content" ) { + delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); + } + + // For "content" or "padding", subtract border + if ( box !== "margin" ) { + delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + } + } + } + + // Account for positive content-box scroll gutter when requested by providing computedVal + if ( !isBorderBox && computedVal >= 0 ) { + + // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border + // Assuming integer scroll gutter, subtract the rest and round down + delta += Math.max( 0, Math.ceil( + elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - + computedVal - + delta - + extra - + 0.5 + + // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter + // Use an explicit zero to avoid NaN (gh-3964) + ) ) || 0; + } + + return delta; +} + +function getWidthOrHeight( elem, dimension, extra ) { + + // Start with computed style + var styles = getStyles( elem ), + + // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322). + // Fake content-box until we know it's needed to know the true value. + boxSizingNeeded = !support.boxSizingReliable() || extra, + isBorderBox = boxSizingNeeded && + jQuery.css( elem, "boxSizing", false, styles ) === "border-box", + valueIsBorderBox = isBorderBox, + + val = curCSS( elem, dimension, styles ), + offsetProp = "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ); + + // Support: Firefox <=54 + // Return a confounding non-pixel value or feign ignorance, as appropriate. + if ( rnumnonpx.test( val ) ) { + if ( !extra ) { + return val; + } + val = "auto"; + } + + + // Fall back to offsetWidth/offsetHeight when value is "auto" + // This happens for inline elements with no explicit setting (gh-3571) + // Support: Android <=4.1 - 4.3 only + // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602) + // Support: IE 9-11 only + // Also use offsetWidth/offsetHeight for when box sizing is unreliable + // We use getClientRects() to check for hidden/disconnected. + // In those cases, the computed value can be trusted to be border-box + if ( ( !support.boxSizingReliable() && isBorderBox || + val === "auto" || + !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) && + elem.getClientRects().length ) { + + isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; + + // Where available, offsetWidth/offsetHeight approximate border box dimensions. + // Where not available (e.g., SVG), assume unreliable box-sizing and interpret the + // retrieved value as a content box dimension. + valueIsBorderBox = offsetProp in elem; + if ( valueIsBorderBox ) { + val = elem[ offsetProp ]; + } + } + + // Normalize "" and auto + val = parseFloat( val ) || 0; + + // Adjust for the element's box model + return ( val + + boxModelAdjustment( + elem, + dimension, + extra || ( isBorderBox ? "border" : "content" ), + valueIsBorderBox, + styles, + + // Provide the current computed size to request scroll gutter calculation (gh-3589) + val + ) + ) + "px"; +} + +jQuery.extend( { + + // Add in style property hooks for overriding the default + // behavior of getting and setting a style property + cssHooks: { + opacity: { + get: function( elem, computed ) { + if ( computed ) { + + // We should always get a number back from opacity + var ret = curCSS( elem, "opacity" ); + return ret === "" ? "1" : ret; + } + } + } + }, + + // Don't automatically add "px" to these possibly-unitless properties + cssNumber: { + "animationIterationCount": true, + "columnCount": true, + "fillOpacity": true, + "flexGrow": true, + "flexShrink": true, + "fontWeight": true, + "gridArea": true, + "gridColumn": true, + "gridColumnEnd": true, + "gridColumnStart": true, + "gridRow": true, + "gridRowEnd": true, + "gridRowStart": true, + "lineHeight": true, + "opacity": true, + "order": true, + "orphans": true, + "widows": true, + "zIndex": true, + "zoom": true + }, + + // Add in properties whose names you wish to fix before + // setting or getting the value + cssProps: {}, + + // Get and set the style property on a DOM Node + style: function( elem, name, value, extra ) { + + // Don't set styles on text and comment nodes + if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { + return; + } + + // Make sure that we're working with the right name + var ret, type, hooks, + origName = camelCase( name ), + isCustomProp = rcustomProp.test( name ), + style = elem.style; + + // Make sure that we're working with the right name. We don't + // want to query the value if it is a CSS custom property + // since they are user-defined. + if ( !isCustomProp ) { + name = finalPropName( origName ); + } + + // Gets hook for the prefixed version, then unprefixed version + hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; + + // Check if we're setting a value + if ( value !== undefined ) { + type = typeof value; + + // Convert "+=" or "-=" to relative numbers (#7345) + if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { + value = adjustCSS( elem, name, ret ); + + // Fixes bug #9237 + type = "number"; + } + + // Make sure that null and NaN values aren't set (#7116) + if ( value == null || value !== value ) { + return; + } + + // If a number was passed in, add the unit (except for certain CSS properties) + // The isCustomProp check can be removed in jQuery 4.0 when we only auto-append + // "px" to a few hardcoded values. + if ( type === "number" && !isCustomProp ) { + value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); + } + + // background-* props affect original clone's values + if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { + style[ name ] = "inherit"; + } + + // If a hook was provided, use that value, otherwise just set the specified value + if ( !hooks || !( "set" in hooks ) || + ( value = hooks.set( elem, value, extra ) ) !== undefined ) { + + if ( isCustomProp ) { + style.setProperty( name, value ); + } else { + style[ name ] = value; + } + } + + } else { + + // If a hook was provided get the non-computed value from there + if ( hooks && "get" in hooks && + ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { + + return ret; + } + + // Otherwise just get the value from the style object + return style[ name ]; + } + }, + + css: function( elem, name, extra, styles ) { + var val, num, hooks, + origName = camelCase( name ), + isCustomProp = rcustomProp.test( name ); + + // Make sure that we're working with the right name. We don't + // want to modify the value if it is a CSS custom property + // since they are user-defined. + if ( !isCustomProp ) { + name = finalPropName( origName ); + } + + // Try prefixed name followed by the unprefixed name + hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; + + // If a hook was provided get the computed value from there + if ( hooks && "get" in hooks ) { + val = hooks.get( elem, true, extra ); + } + + // Otherwise, if a way to get the computed value exists, use that + if ( val === undefined ) { + val = curCSS( elem, name, styles ); + } + + // Convert "normal" to computed value + if ( val === "normal" && name in cssNormalTransform ) { + val = cssNormalTransform[ name ]; + } + + // Make numeric if forced or a qualifier was provided and val looks numeric + if ( extra === "" || extra ) { + num = parseFloat( val ); + return extra === true || isFinite( num ) ? num || 0 : val; + } + + return val; + } +} ); + +jQuery.each( [ "height", "width" ], function( i, dimension ) { + jQuery.cssHooks[ dimension ] = { + get: function( elem, computed, extra ) { + if ( computed ) { + + // Certain elements can have dimension info if we invisibly show them + // but it must have a current display style that would benefit + return rdisplayswap.test( jQuery.css( elem, "display" ) ) && + + // Support: Safari 8+ + // Table columns in Safari have non-zero offsetWidth & zero + // getBoundingClientRect().width unless display is changed. + // Support: IE <=11 only + // Running getBoundingClientRect on a disconnected node + // in IE throws an error. + ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? + swap( elem, cssShow, function() { + return getWidthOrHeight( elem, dimension, extra ); + } ) : + getWidthOrHeight( elem, dimension, extra ); + } + }, + + set: function( elem, value, extra ) { + var matches, + styles = getStyles( elem ), + + // Only read styles.position if the test has a chance to fail + // to avoid forcing a reflow. + scrollboxSizeBuggy = !support.scrollboxSize() && + styles.position === "absolute", + + // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991) + boxSizingNeeded = scrollboxSizeBuggy || extra, + isBorderBox = boxSizingNeeded && + jQuery.css( elem, "boxSizing", false, styles ) === "border-box", + subtract = extra ? + boxModelAdjustment( + elem, + dimension, + extra, + isBorderBox, + styles + ) : + 0; + + // Account for unreliable border-box dimensions by comparing offset* to computed and + // faking a content-box to get border and padding (gh-3699) + if ( isBorderBox && scrollboxSizeBuggy ) { + subtract -= Math.ceil( + elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - + parseFloat( styles[ dimension ] ) - + boxModelAdjustment( elem, dimension, "border", false, styles ) - + 0.5 + ); + } + + // Convert to pixels if value adjustment is needed + if ( subtract && ( matches = rcssNum.exec( value ) ) && + ( matches[ 3 ] || "px" ) !== "px" ) { + + elem.style[ dimension ] = value; + value = jQuery.css( elem, dimension ); + } + + return setPositiveNumber( elem, value, subtract ); + } + }; +} ); + +jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, + function( elem, computed ) { + if ( computed ) { + return ( parseFloat( curCSS( elem, "marginLeft" ) ) || + elem.getBoundingClientRect().left - + swap( elem, { marginLeft: 0 }, function() { + return elem.getBoundingClientRect().left; + } ) + ) + "px"; + } + } +); + +// These hooks are used by animate to expand properties +jQuery.each( { + margin: "", + padding: "", + border: "Width" +}, function( prefix, suffix ) { + jQuery.cssHooks[ prefix + suffix ] = { + expand: function( value ) { + var i = 0, + expanded = {}, + + // Assumes a single number if not a string + parts = typeof value === "string" ? value.split( " " ) : [ value ]; + + for ( ; i < 4; i++ ) { + expanded[ prefix + cssExpand[ i ] + suffix ] = + parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; + } + + return expanded; + } + }; + + if ( prefix !== "margin" ) { + jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; + } +} ); + +jQuery.fn.extend( { + css: function( name, value ) { + return access( this, function( elem, name, value ) { + var styles, len, + map = {}, + i = 0; + + if ( Array.isArray( name ) ) { + styles = getStyles( elem ); + len = name.length; + + for ( ; i < len; i++ ) { + map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); + } + + return map; + } + + return value !== undefined ? + jQuery.style( elem, name, value ) : + jQuery.css( elem, name ); + }, name, value, arguments.length > 1 ); + } +} ); + + +function Tween( elem, options, prop, end, easing ) { + return new Tween.prototype.init( elem, options, prop, end, easing ); +} +jQuery.Tween = Tween; + +Tween.prototype = { + constructor: Tween, + init: function( elem, options, prop, end, easing, unit ) { + this.elem = elem; + this.prop = prop; + this.easing = easing || jQuery.easing._default; + this.options = options; + this.start = this.now = this.cur(); + this.end = end; + this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); + }, + cur: function() { + var hooks = Tween.propHooks[ this.prop ]; + + return hooks && hooks.get ? + hooks.get( this ) : + Tween.propHooks._default.get( this ); + }, + run: function( percent ) { + var eased, + hooks = Tween.propHooks[ this.prop ]; + + if ( this.options.duration ) { + this.pos = eased = jQuery.easing[ this.easing ]( + percent, this.options.duration * percent, 0, 1, this.options.duration + ); + } else { + this.pos = eased = percent; + } + this.now = ( this.end - this.start ) * eased + this.start; + + if ( this.options.step ) { + this.options.step.call( this.elem, this.now, this ); + } + + if ( hooks && hooks.set ) { + hooks.set( this ); + } else { + Tween.propHooks._default.set( this ); + } + return this; + } +}; + +Tween.prototype.init.prototype = Tween.prototype; + +Tween.propHooks = { + _default: { + get: function( tween ) { + var result; + + // Use a property on the element directly when it is not a DOM element, + // or when there is no matching style property that exists. + if ( tween.elem.nodeType !== 1 || + tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { + return tween.elem[ tween.prop ]; + } + + // Passing an empty string as a 3rd parameter to .css will automatically + // attempt a parseFloat and fallback to a string if the parse fails. + // Simple values such as "10px" are parsed to Float; + // complex values such as "rotate(1rad)" are returned as-is. + result = jQuery.css( tween.elem, tween.prop, "" ); + + // Empty strings, null, undefined and "auto" are converted to 0. + return !result || result === "auto" ? 0 : result; + }, + set: function( tween ) { + + // Use step hook for back compat. + // Use cssHook if its there. + // Use .style if available and use plain properties where available. + if ( jQuery.fx.step[ tween.prop ] ) { + jQuery.fx.step[ tween.prop ]( tween ); + } else if ( tween.elem.nodeType === 1 && ( + jQuery.cssHooks[ tween.prop ] || + tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) { + jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); + } else { + tween.elem[ tween.prop ] = tween.now; + } + } + } +}; + +// Support: IE <=9 only +// Panic based approach to setting things on disconnected nodes +Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { + set: function( tween ) { + if ( tween.elem.nodeType && tween.elem.parentNode ) { + tween.elem[ tween.prop ] = tween.now; + } + } +}; + +jQuery.easing = { + linear: function( p ) { + return p; + }, + swing: function( p ) { + return 0.5 - Math.cos( p * Math.PI ) / 2; + }, + _default: "swing" +}; + +jQuery.fx = Tween.prototype.init; + +// Back compat <1.8 extension point +jQuery.fx.step = {}; + + + + +var + fxNow, inProgress, + rfxtypes = /^(?:toggle|show|hide)$/, + rrun = /queueHooks$/; + +function schedule() { + if ( inProgress ) { + if ( document.hidden === false && window.requestAnimationFrame ) { + window.requestAnimationFrame( schedule ); + } else { + window.setTimeout( schedule, jQuery.fx.interval ); + } + + jQuery.fx.tick(); + } +} + +// Animations created synchronously will run synchronously +function createFxNow() { + window.setTimeout( function() { + fxNow = undefined; + } ); + return ( fxNow = Date.now() ); +} + +// Generate parameters to create a standard animation +function genFx( type, includeWidth ) { + var which, + i = 0, + attrs = { height: type }; + + // If we include width, step value is 1 to do all cssExpand values, + // otherwise step value is 2 to skip over Left and Right + includeWidth = includeWidth ? 1 : 0; + for ( ; i < 4; i += 2 - includeWidth ) { + which = cssExpand[ i ]; + attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; + } + + if ( includeWidth ) { + attrs.opacity = attrs.width = type; + } + + return attrs; +} + +function createTween( value, prop, animation ) { + var tween, + collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), + index = 0, + length = collection.length; + for ( ; index < length; index++ ) { + if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { + + // We're done with this property + return tween; + } + } +} + +function defaultPrefilter( elem, props, opts ) { + var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, + isBox = "width" in props || "height" in props, + anim = this, + orig = {}, + style = elem.style, + hidden = elem.nodeType && isHiddenWithinTree( elem ), + dataShow = dataPriv.get( elem, "fxshow" ); + + // Queue-skipping animations hijack the fx hooks + if ( !opts.queue ) { + hooks = jQuery._queueHooks( elem, "fx" ); + if ( hooks.unqueued == null ) { + hooks.unqueued = 0; + oldfire = hooks.empty.fire; + hooks.empty.fire = function() { + if ( !hooks.unqueued ) { + oldfire(); + } + }; + } + hooks.unqueued++; + + anim.always( function() { + + // Ensure the complete handler is called before this completes + anim.always( function() { + hooks.unqueued--; + if ( !jQuery.queue( elem, "fx" ).length ) { + hooks.empty.fire(); + } + } ); + } ); + } + + // Detect show/hide animations + for ( prop in props ) { + value = props[ prop ]; + if ( rfxtypes.test( value ) ) { + delete props[ prop ]; + toggle = toggle || value === "toggle"; + if ( value === ( hidden ? "hide" : "show" ) ) { + + // Pretend to be hidden if this is a "show" and + // there is still data from a stopped show/hide + if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { + hidden = true; + + // Ignore all other no-op show/hide data + } else { + continue; + } + } + orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); + } + } + + // Bail out if this is a no-op like .hide().hide() + propTween = !jQuery.isEmptyObject( props ); + if ( !propTween && jQuery.isEmptyObject( orig ) ) { + return; + } + + // Restrict "overflow" and "display" styles during box animations + if ( isBox && elem.nodeType === 1 ) { + + // Support: IE <=9 - 11, Edge 12 - 15 + // Record all 3 overflow attributes because IE does not infer the shorthand + // from identically-valued overflowX and overflowY and Edge just mirrors + // the overflowX value there. + opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; + + // Identify a display type, preferring old show/hide data over the CSS cascade + restoreDisplay = dataShow && dataShow.display; + if ( restoreDisplay == null ) { + restoreDisplay = dataPriv.get( elem, "display" ); + } + display = jQuery.css( elem, "display" ); + if ( display === "none" ) { + if ( restoreDisplay ) { + display = restoreDisplay; + } else { + + // Get nonempty value(s) by temporarily forcing visibility + showHide( [ elem ], true ); + restoreDisplay = elem.style.display || restoreDisplay; + display = jQuery.css( elem, "display" ); + showHide( [ elem ] ); + } + } + + // Animate inline elements as inline-block + if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { + if ( jQuery.css( elem, "float" ) === "none" ) { + + // Restore the original display value at the end of pure show/hide animations + if ( !propTween ) { + anim.done( function() { + style.display = restoreDisplay; + } ); + if ( restoreDisplay == null ) { + display = style.display; + restoreDisplay = display === "none" ? "" : display; + } + } + style.display = "inline-block"; + } + } + } + + if ( opts.overflow ) { + style.overflow = "hidden"; + anim.always( function() { + style.overflow = opts.overflow[ 0 ]; + style.overflowX = opts.overflow[ 1 ]; + style.overflowY = opts.overflow[ 2 ]; + } ); + } + + // Implement show/hide animations + propTween = false; + for ( prop in orig ) { + + // General show/hide setup for this element animation + if ( !propTween ) { + if ( dataShow ) { + if ( "hidden" in dataShow ) { + hidden = dataShow.hidden; + } + } else { + dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); + } + + // Store hidden/visible for toggle so `.stop().toggle()` "reverses" + if ( toggle ) { + dataShow.hidden = !hidden; + } + + // Show elements before animating them + if ( hidden ) { + showHide( [ elem ], true ); + } + + /* eslint-disable no-loop-func */ + + anim.done( function() { + + /* eslint-enable no-loop-func */ + + // The final step of a "hide" animation is actually hiding the element + if ( !hidden ) { + showHide( [ elem ] ); + } + dataPriv.remove( elem, "fxshow" ); + for ( prop in orig ) { + jQuery.style( elem, prop, orig[ prop ] ); + } + } ); + } + + // Per-property setup + propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); + if ( !( prop in dataShow ) ) { + dataShow[ prop ] = propTween.start; + if ( hidden ) { + propTween.end = propTween.start; + propTween.start = 0; + } + } + } +} + +function propFilter( props, specialEasing ) { + var index, name, easing, value, hooks; + + // camelCase, specialEasing and expand cssHook pass + for ( index in props ) { + name = camelCase( index ); + easing = specialEasing[ name ]; + value = props[ index ]; + if ( Array.isArray( value ) ) { + easing = value[ 1 ]; + value = props[ index ] = value[ 0 ]; + } + + if ( index !== name ) { + props[ name ] = value; + delete props[ index ]; + } + + hooks = jQuery.cssHooks[ name ]; + if ( hooks && "expand" in hooks ) { + value = hooks.expand( value ); + delete props[ name ]; + + // Not quite $.extend, this won't overwrite existing keys. + // Reusing 'index' because we have the correct "name" + for ( index in value ) { + if ( !( index in props ) ) { + props[ index ] = value[ index ]; + specialEasing[ index ] = easing; + } + } + } else { + specialEasing[ name ] = easing; + } + } +} + +function Animation( elem, properties, options ) { + var result, + stopped, + index = 0, + length = Animation.prefilters.length, + deferred = jQuery.Deferred().always( function() { + + // Don't match elem in the :animated selector + delete tick.elem; + } ), + tick = function() { + if ( stopped ) { + return false; + } + var currentTime = fxNow || createFxNow(), + remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), + + // Support: Android 2.3 only + // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) + temp = remaining / animation.duration || 0, + percent = 1 - temp, + index = 0, + length = animation.tweens.length; + + for ( ; index < length; index++ ) { + animation.tweens[ index ].run( percent ); + } + + deferred.notifyWith( elem, [ animation, percent, remaining ] ); + + // If there's more to do, yield + if ( percent < 1 && length ) { + return remaining; + } + + // If this was an empty animation, synthesize a final progress notification + if ( !length ) { + deferred.notifyWith( elem, [ animation, 1, 0 ] ); + } + + // Resolve the animation and report its conclusion + deferred.resolveWith( elem, [ animation ] ); + return false; + }, + animation = deferred.promise( { + elem: elem, + props: jQuery.extend( {}, properties ), + opts: jQuery.extend( true, { + specialEasing: {}, + easing: jQuery.easing._default + }, options ), + originalProperties: properties, + originalOptions: options, + startTime: fxNow || createFxNow(), + duration: options.duration, + tweens: [], + createTween: function( prop, end ) { + var tween = jQuery.Tween( elem, animation.opts, prop, end, + animation.opts.specialEasing[ prop ] || animation.opts.easing ); + animation.tweens.push( tween ); + return tween; + }, + stop: function( gotoEnd ) { + var index = 0, + + // If we are going to the end, we want to run all the tweens + // otherwise we skip this part + length = gotoEnd ? animation.tweens.length : 0; + if ( stopped ) { + return this; + } + stopped = true; + for ( ; index < length; index++ ) { + animation.tweens[ index ].run( 1 ); + } + + // Resolve when we played the last frame; otherwise, reject + if ( gotoEnd ) { + deferred.notifyWith( elem, [ animation, 1, 0 ] ); + deferred.resolveWith( elem, [ animation, gotoEnd ] ); + } else { + deferred.rejectWith( elem, [ animation, gotoEnd ] ); + } + return this; + } + } ), + props = animation.props; + + propFilter( props, animation.opts.specialEasing ); + + for ( ; index < length; index++ ) { + result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); + if ( result ) { + if ( isFunction( result.stop ) ) { + jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = + result.stop.bind( result ); + } + return result; + } + } + + jQuery.map( props, createTween, animation ); + + if ( isFunction( animation.opts.start ) ) { + animation.opts.start.call( elem, animation ); + } + + // Attach callbacks from options + animation + .progress( animation.opts.progress ) + .done( animation.opts.done, animation.opts.complete ) + .fail( animation.opts.fail ) + .always( animation.opts.always ); + + jQuery.fx.timer( + jQuery.extend( tick, { + elem: elem, + anim: animation, + queue: animation.opts.queue + } ) + ); + + return animation; +} + +jQuery.Animation = jQuery.extend( Animation, { + + tweeners: { + "*": [ function( prop, value ) { + var tween = this.createTween( prop, value ); + adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); + return tween; + } ] + }, + + tweener: function( props, callback ) { + if ( isFunction( props ) ) { + callback = props; + props = [ "*" ]; + } else { + props = props.match( rnothtmlwhite ); + } + + var prop, + index = 0, + length = props.length; + + for ( ; index < length; index++ ) { + prop = props[ index ]; + Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; + Animation.tweeners[ prop ].unshift( callback ); + } + }, + + prefilters: [ defaultPrefilter ], + + prefilter: function( callback, prepend ) { + if ( prepend ) { + Animation.prefilters.unshift( callback ); + } else { + Animation.prefilters.push( callback ); + } + } +} ); + +jQuery.speed = function( speed, easing, fn ) { + var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { + complete: fn || !fn && easing || + isFunction( speed ) && speed, + duration: speed, + easing: fn && easing || easing && !isFunction( easing ) && easing + }; + + // Go to the end state if fx are off + if ( jQuery.fx.off ) { + opt.duration = 0; + + } else { + if ( typeof opt.duration !== "number" ) { + if ( opt.duration in jQuery.fx.speeds ) { + opt.duration = jQuery.fx.speeds[ opt.duration ]; + + } else { + opt.duration = jQuery.fx.speeds._default; + } + } + } + + // Normalize opt.queue - true/undefined/null -> "fx" + if ( opt.queue == null || opt.queue === true ) { + opt.queue = "fx"; + } + + // Queueing + opt.old = opt.complete; + + opt.complete = function() { + if ( isFunction( opt.old ) ) { + opt.old.call( this ); + } + + if ( opt.queue ) { + jQuery.dequeue( this, opt.queue ); + } + }; + + return opt; +}; + +jQuery.fn.extend( { + fadeTo: function( speed, to, easing, callback ) { + + // Show any hidden elements after setting opacity to 0 + return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() + + // Animate to the value specified + .end().animate( { opacity: to }, speed, easing, callback ); + }, + animate: function( prop, speed, easing, callback ) { + var empty = jQuery.isEmptyObject( prop ), + optall = jQuery.speed( speed, easing, callback ), + doAnimation = function() { + + // Operate on a copy of prop so per-property easing won't be lost + var anim = Animation( this, jQuery.extend( {}, prop ), optall ); + + // Empty animations, or finishing resolves immediately + if ( empty || dataPriv.get( this, "finish" ) ) { + anim.stop( true ); + } + }; + doAnimation.finish = doAnimation; + + return empty || optall.queue === false ? + this.each( doAnimation ) : + this.queue( optall.queue, doAnimation ); + }, + stop: function( type, clearQueue, gotoEnd ) { + var stopQueue = function( hooks ) { + var stop = hooks.stop; + delete hooks.stop; + stop( gotoEnd ); + }; + + if ( typeof type !== "string" ) { + gotoEnd = clearQueue; + clearQueue = type; + type = undefined; + } + if ( clearQueue && type !== false ) { + this.queue( type || "fx", [] ); + } + + return this.each( function() { + var dequeue = true, + index = type != null && type + "queueHooks", + timers = jQuery.timers, + data = dataPriv.get( this ); + + if ( index ) { + if ( data[ index ] && data[ index ].stop ) { + stopQueue( data[ index ] ); + } + } else { + for ( index in data ) { + if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { + stopQueue( data[ index ] ); + } + } + } + + for ( index = timers.length; index--; ) { + if ( timers[ index ].elem === this && + ( type == null || timers[ index ].queue === type ) ) { + + timers[ index ].anim.stop( gotoEnd ); + dequeue = false; + timers.splice( index, 1 ); + } + } + + // Start the next in the queue if the last step wasn't forced. + // Timers currently will call their complete callbacks, which + // will dequeue but only if they were gotoEnd. + if ( dequeue || !gotoEnd ) { + jQuery.dequeue( this, type ); + } + } ); + }, + finish: function( type ) { + if ( type !== false ) { + type = type || "fx"; + } + return this.each( function() { + var index, + data = dataPriv.get( this ), + queue = data[ type + "queue" ], + hooks = data[ type + "queueHooks" ], + timers = jQuery.timers, + length = queue ? queue.length : 0; + + // Enable finishing flag on private data + data.finish = true; + + // Empty the queue first + jQuery.queue( this, type, [] ); + + if ( hooks && hooks.stop ) { + hooks.stop.call( this, true ); + } + + // Look for any active animations, and finish them + for ( index = timers.length; index--; ) { + if ( timers[ index ].elem === this && timers[ index ].queue === type ) { + timers[ index ].anim.stop( true ); + timers.splice( index, 1 ); + } + } + + // Look for any animations in the old queue and finish them + for ( index = 0; index < length; index++ ) { + if ( queue[ index ] && queue[ index ].finish ) { + queue[ index ].finish.call( this ); + } + } + + // Turn off finishing flag + delete data.finish; + } ); + } +} ); + +jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) { + var cssFn = jQuery.fn[ name ]; + jQuery.fn[ name ] = function( speed, easing, callback ) { + return speed == null || typeof speed === "boolean" ? + cssFn.apply( this, arguments ) : + this.animate( genFx( name, true ), speed, easing, callback ); + }; +} ); + +// Generate shortcuts for custom animations +jQuery.each( { + slideDown: genFx( "show" ), + slideUp: genFx( "hide" ), + slideToggle: genFx( "toggle" ), + fadeIn: { opacity: "show" }, + fadeOut: { opacity: "hide" }, + fadeToggle: { opacity: "toggle" } +}, function( name, props ) { + jQuery.fn[ name ] = function( speed, easing, callback ) { + return this.animate( props, speed, easing, callback ); + }; +} ); + +jQuery.timers = []; +jQuery.fx.tick = function() { + var timer, + i = 0, + timers = jQuery.timers; + + fxNow = Date.now(); + + for ( ; i < timers.length; i++ ) { + timer = timers[ i ]; + + // Run the timer and safely remove it when done (allowing for external removal) + if ( !timer() && timers[ i ] === timer ) { + timers.splice( i--, 1 ); + } + } + + if ( !timers.length ) { + jQuery.fx.stop(); + } + fxNow = undefined; +}; + +jQuery.fx.timer = function( timer ) { + jQuery.timers.push( timer ); + jQuery.fx.start(); +}; + +jQuery.fx.interval = 13; +jQuery.fx.start = function() { + if ( inProgress ) { + return; + } + + inProgress = true; + schedule(); +}; + +jQuery.fx.stop = function() { + inProgress = null; +}; + +jQuery.fx.speeds = { + slow: 600, + fast: 200, + + // Default speed + _default: 400 +}; + + +// Based off of the plugin by Clint Helfers, with permission. +// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ +jQuery.fn.delay = function( time, type ) { + time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; + type = type || "fx"; + + return this.queue( type, function( next, hooks ) { + var timeout = window.setTimeout( next, time ); + hooks.stop = function() { + window.clearTimeout( timeout ); + }; + } ); +}; + + +( function() { + var input = document.createElement( "input" ), + select = document.createElement( "select" ), + opt = select.appendChild( document.createElement( "option" ) ); + + input.type = "checkbox"; + + // Support: Android <=4.3 only + // Default value for a checkbox should be "on" + support.checkOn = input.value !== ""; + + // Support: IE <=11 only + // Must access selectedIndex to make default options select + support.optSelected = opt.selected; + + // Support: IE <=11 only + // An input loses its value after becoming a radio + input = document.createElement( "input" ); + input.value = "t"; + input.type = "radio"; + support.radioValue = input.value === "t"; +} )(); + + +var boolHook, + attrHandle = jQuery.expr.attrHandle; + +jQuery.fn.extend( { + attr: function( name, value ) { + return access( this, jQuery.attr, name, value, arguments.length > 1 ); + }, + + removeAttr: function( name ) { + return this.each( function() { + jQuery.removeAttr( this, name ); + } ); + } +} ); + +jQuery.extend( { + attr: function( elem, name, value ) { + var ret, hooks, + nType = elem.nodeType; + + // Don't get/set attributes on text, comment and attribute nodes + if ( nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + // Fallback to prop when attributes are not supported + if ( typeof elem.getAttribute === "undefined" ) { + return jQuery.prop( elem, name, value ); + } + + // Attribute hooks are determined by the lowercase version + // Grab necessary hook if one is defined + if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { + hooks = jQuery.attrHooks[ name.toLowerCase() ] || + ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); + } + + if ( value !== undefined ) { + if ( value === null ) { + jQuery.removeAttr( elem, name ); + return; + } + + if ( hooks && "set" in hooks && + ( ret = hooks.set( elem, value, name ) ) !== undefined ) { + return ret; + } + + elem.setAttribute( name, value + "" ); + return value; + } + + if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { + return ret; + } + + ret = jQuery.find.attr( elem, name ); + + // Non-existent attributes return null, we normalize to undefined + return ret == null ? undefined : ret; + }, + + attrHooks: { + type: { + set: function( elem, value ) { + if ( !support.radioValue && value === "radio" && + nodeName( elem, "input" ) ) { + var val = elem.value; + elem.setAttribute( "type", value ); + if ( val ) { + elem.value = val; + } + return value; + } + } + } + }, + + removeAttr: function( elem, value ) { + var name, + i = 0, + + // Attribute names can contain non-HTML whitespace characters + // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 + attrNames = value && value.match( rnothtmlwhite ); + + if ( attrNames && elem.nodeType === 1 ) { + while ( ( name = attrNames[ i++ ] ) ) { + elem.removeAttribute( name ); + } + } + } +} ); + +// Hooks for boolean attributes +boolHook = { + set: function( elem, value, name ) { + if ( value === false ) { + + // Remove boolean attributes when set to false + jQuery.removeAttr( elem, name ); + } else { + elem.setAttribute( name, name ); + } + return name; + } +}; + +jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { + var getter = attrHandle[ name ] || jQuery.find.attr; + + attrHandle[ name ] = function( elem, name, isXML ) { + var ret, handle, + lowercaseName = name.toLowerCase(); + + if ( !isXML ) { + + // Avoid an infinite loop by temporarily removing this function from the getter + handle = attrHandle[ lowercaseName ]; + attrHandle[ lowercaseName ] = ret; + ret = getter( elem, name, isXML ) != null ? + lowercaseName : + null; + attrHandle[ lowercaseName ] = handle; + } + return ret; + }; +} ); + + + + +var rfocusable = /^(?:input|select|textarea|button)$/i, + rclickable = /^(?:a|area)$/i; + +jQuery.fn.extend( { + prop: function( name, value ) { + return access( this, jQuery.prop, name, value, arguments.length > 1 ); + }, + + removeProp: function( name ) { + return this.each( function() { + delete this[ jQuery.propFix[ name ] || name ]; + } ); + } +} ); + +jQuery.extend( { + prop: function( elem, name, value ) { + var ret, hooks, + nType = elem.nodeType; + + // Don't get/set properties on text, comment and attribute nodes + if ( nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { + + // Fix name and attach hooks + name = jQuery.propFix[ name ] || name; + hooks = jQuery.propHooks[ name ]; + } + + if ( value !== undefined ) { + if ( hooks && "set" in hooks && + ( ret = hooks.set( elem, value, name ) ) !== undefined ) { + return ret; + } + + return ( elem[ name ] = value ); + } + + if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { + return ret; + } + + return elem[ name ]; + }, + + propHooks: { + tabIndex: { + get: function( elem ) { + + // Support: IE <=9 - 11 only + // elem.tabIndex doesn't always return the + // correct value when it hasn't been explicitly set + // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ + // Use proper attribute retrieval(#12072) + var tabindex = jQuery.find.attr( elem, "tabindex" ); + + if ( tabindex ) { + return parseInt( tabindex, 10 ); + } + + if ( + rfocusable.test( elem.nodeName ) || + rclickable.test( elem.nodeName ) && + elem.href + ) { + return 0; + } + + return -1; + } + } + }, + + propFix: { + "for": "htmlFor", + "class": "className" + } +} ); + +// Support: IE <=11 only +// Accessing the selectedIndex property +// forces the browser to respect setting selected +// on the option +// The getter ensures a default option is selected +// when in an optgroup +// eslint rule "no-unused-expressions" is disabled for this code +// since it considers such accessions noop +if ( !support.optSelected ) { + jQuery.propHooks.selected = { + get: function( elem ) { + + /* eslint no-unused-expressions: "off" */ + + var parent = elem.parentNode; + if ( parent && parent.parentNode ) { + parent.parentNode.selectedIndex; + } + return null; + }, + set: function( elem ) { + + /* eslint no-unused-expressions: "off" */ + + var parent = elem.parentNode; + if ( parent ) { + parent.selectedIndex; + + if ( parent.parentNode ) { + parent.parentNode.selectedIndex; + } + } + } + }; +} + +jQuery.each( [ + "tabIndex", + "readOnly", + "maxLength", + "cellSpacing", + "cellPadding", + "rowSpan", + "colSpan", + "useMap", + "frameBorder", + "contentEditable" +], function() { + jQuery.propFix[ this.toLowerCase() ] = this; +} ); + + + + + // Strip and collapse whitespace according to HTML spec + // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace + function stripAndCollapse( value ) { + var tokens = value.match( rnothtmlwhite ) || []; + return tokens.join( " " ); + } + + +function getClass( elem ) { + return elem.getAttribute && elem.getAttribute( "class" ) || ""; +} + +function classesToArray( value ) { + if ( Array.isArray( value ) ) { + return value; + } + if ( typeof value === "string" ) { + return value.match( rnothtmlwhite ) || []; + } + return []; +} + +jQuery.fn.extend( { + addClass: function( value ) { + var classes, elem, cur, curValue, clazz, j, finalValue, + i = 0; + + if ( isFunction( value ) ) { + return this.each( function( j ) { + jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); + } ); + } + + classes = classesToArray( value ); + + if ( classes.length ) { + while ( ( elem = this[ i++ ] ) ) { + curValue = getClass( elem ); + cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); + + if ( cur ) { + j = 0; + while ( ( clazz = classes[ j++ ] ) ) { + if ( cur.indexOf( " " + clazz + " " ) < 0 ) { + cur += clazz + " "; + } + } + + // Only assign if different to avoid unneeded rendering. + finalValue = stripAndCollapse( cur ); + if ( curValue !== finalValue ) { + elem.setAttribute( "class", finalValue ); + } + } + } + } + + return this; + }, + + removeClass: function( value ) { + var classes, elem, cur, curValue, clazz, j, finalValue, + i = 0; + + if ( isFunction( value ) ) { + return this.each( function( j ) { + jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); + } ); + } + + if ( !arguments.length ) { + return this.attr( "class", "" ); + } + + classes = classesToArray( value ); + + if ( classes.length ) { + while ( ( elem = this[ i++ ] ) ) { + curValue = getClass( elem ); + + // This expression is here for better compressibility (see addClass) + cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); + + if ( cur ) { + j = 0; + while ( ( clazz = classes[ j++ ] ) ) { + + // Remove *all* instances + while ( cur.indexOf( " " + clazz + " " ) > -1 ) { + cur = cur.replace( " " + clazz + " ", " " ); + } + } + + // Only assign if different to avoid unneeded rendering. + finalValue = stripAndCollapse( cur ); + if ( curValue !== finalValue ) { + elem.setAttribute( "class", finalValue ); + } + } + } + } + + return this; + }, + + toggleClass: function( value, stateVal ) { + var type = typeof value, + isValidValue = type === "string" || Array.isArray( value ); + + if ( typeof stateVal === "boolean" && isValidValue ) { + return stateVal ? this.addClass( value ) : this.removeClass( value ); + } + + if ( isFunction( value ) ) { + return this.each( function( i ) { + jQuery( this ).toggleClass( + value.call( this, i, getClass( this ), stateVal ), + stateVal + ); + } ); + } + + return this.each( function() { + var className, i, self, classNames; + + if ( isValidValue ) { + + // Toggle individual class names + i = 0; + self = jQuery( this ); + classNames = classesToArray( value ); + + while ( ( className = classNames[ i++ ] ) ) { + + // Check each className given, space separated list + if ( self.hasClass( className ) ) { + self.removeClass( className ); + } else { + self.addClass( className ); + } + } + + // Toggle whole class name + } else if ( value === undefined || type === "boolean" ) { + className = getClass( this ); + if ( className ) { + + // Store className if set + dataPriv.set( this, "__className__", className ); + } + + // If the element has a class name or if we're passed `false`, + // then remove the whole classname (if there was one, the above saved it). + // Otherwise bring back whatever was previously saved (if anything), + // falling back to the empty string if nothing was stored. + if ( this.setAttribute ) { + this.setAttribute( "class", + className || value === false ? + "" : + dataPriv.get( this, "__className__" ) || "" + ); + } + } + } ); + }, + + hasClass: function( selector ) { + var className, elem, + i = 0; + + className = " " + selector + " "; + while ( ( elem = this[ i++ ] ) ) { + if ( elem.nodeType === 1 && + ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { + return true; + } + } + + return false; + } +} ); + + + + +var rreturn = /\r/g; + +jQuery.fn.extend( { + val: function( value ) { + var hooks, ret, valueIsFunction, + elem = this[ 0 ]; + + if ( !arguments.length ) { + if ( elem ) { + hooks = jQuery.valHooks[ elem.type ] || + jQuery.valHooks[ elem.nodeName.toLowerCase() ]; + + if ( hooks && + "get" in hooks && + ( ret = hooks.get( elem, "value" ) ) !== undefined + ) { + return ret; + } + + ret = elem.value; + + // Handle most common string cases + if ( typeof ret === "string" ) { + return ret.replace( rreturn, "" ); + } + + // Handle cases where value is null/undef or number + return ret == null ? "" : ret; + } + + return; + } + + valueIsFunction = isFunction( value ); + + return this.each( function( i ) { + var val; + + if ( this.nodeType !== 1 ) { + return; + } + + if ( valueIsFunction ) { + val = value.call( this, i, jQuery( this ).val() ); + } else { + val = value; + } + + // Treat null/undefined as ""; convert numbers to string + if ( val == null ) { + val = ""; + + } else if ( typeof val === "number" ) { + val += ""; + + } else if ( Array.isArray( val ) ) { + val = jQuery.map( val, function( value ) { + return value == null ? "" : value + ""; + } ); + } + + hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; + + // If set returns undefined, fall back to normal setting + if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { + this.value = val; + } + } ); + } +} ); + +jQuery.extend( { + valHooks: { + option: { + get: function( elem ) { + + var val = jQuery.find.attr( elem, "value" ); + return val != null ? + val : + + // Support: IE <=10 - 11 only + // option.text throws exceptions (#14686, #14858) + // Strip and collapse whitespace + // https://html.spec.whatwg.org/#strip-and-collapse-whitespace + stripAndCollapse( jQuery.text( elem ) ); + } + }, + select: { + get: function( elem ) { + var value, option, i, + options = elem.options, + index = elem.selectedIndex, + one = elem.type === "select-one", + values = one ? null : [], + max = one ? index + 1 : options.length; + + if ( index < 0 ) { + i = max; + + } else { + i = one ? index : 0; + } + + // Loop through all the selected options + for ( ; i < max; i++ ) { + option = options[ i ]; + + // Support: IE <=9 only + // IE8-9 doesn't update selected after form reset (#2551) + if ( ( option.selected || i === index ) && + + // Don't return options that are disabled or in a disabled optgroup + !option.disabled && + ( !option.parentNode.disabled || + !nodeName( option.parentNode, "optgroup" ) ) ) { + + // Get the specific value for the option + value = jQuery( option ).val(); + + // We don't need an array for one selects + if ( one ) { + return value; + } + + // Multi-Selects return an array + values.push( value ); + } + } + + return values; + }, + + set: function( elem, value ) { + var optionSet, option, + options = elem.options, + values = jQuery.makeArray( value ), + i = options.length; + + while ( i-- ) { + option = options[ i ]; + + /* eslint-disable no-cond-assign */ + + if ( option.selected = + jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 + ) { + optionSet = true; + } + + /* eslint-enable no-cond-assign */ + } + + // Force browsers to behave consistently when non-matching value is set + if ( !optionSet ) { + elem.selectedIndex = -1; + } + return values; + } + } + } +} ); + +// Radios and checkboxes getter/setter +jQuery.each( [ "radio", "checkbox" ], function() { + jQuery.valHooks[ this ] = { + set: function( elem, value ) { + if ( Array.isArray( value ) ) { + return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); + } + } + }; + if ( !support.checkOn ) { + jQuery.valHooks[ this ].get = function( elem ) { + return elem.getAttribute( "value" ) === null ? "on" : elem.value; + }; + } +} ); + + + + +// Return jQuery for attributes-only inclusion + + +support.focusin = "onfocusin" in window; + + +var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, + stopPropagationCallback = function( e ) { + e.stopPropagation(); + }; + +jQuery.extend( jQuery.event, { + + trigger: function( event, data, elem, onlyHandlers ) { + + var i, cur, tmp, bubbleType, ontype, handle, special, lastElement, + eventPath = [ elem || document ], + type = hasOwn.call( event, "type" ) ? event.type : event, + namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; + + cur = lastElement = tmp = elem = elem || document; + + // Don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + // focus/blur morphs to focusin/out; ensure we're not firing them right now + if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { + return; + } + + if ( type.indexOf( "." ) > -1 ) { + + // Namespaced trigger; create a regexp to match event type in handle() + namespaces = type.split( "." ); + type = namespaces.shift(); + namespaces.sort(); + } + ontype = type.indexOf( ":" ) < 0 && "on" + type; + + // Caller can pass in a jQuery.Event object, Object, or just an event type string + event = event[ jQuery.expando ] ? + event : + new jQuery.Event( type, typeof event === "object" && event ); + + // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) + event.isTrigger = onlyHandlers ? 2 : 3; + event.namespace = namespaces.join( "." ); + event.rnamespace = event.namespace ? + new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : + null; + + // Clean up the event in case it is being reused + event.result = undefined; + if ( !event.target ) { + event.target = elem; + } + + // Clone any incoming data and prepend the event, creating the handler arg list + data = data == null ? + [ event ] : + jQuery.makeArray( data, [ event ] ); + + // Allow special events to draw outside the lines + special = jQuery.event.special[ type ] || {}; + if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { + return; + } + + // Determine event propagation path in advance, per W3C events spec (#9951) + // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) + if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) { + + bubbleType = special.delegateType || type; + if ( !rfocusMorph.test( bubbleType + type ) ) { + cur = cur.parentNode; + } + for ( ; cur; cur = cur.parentNode ) { + eventPath.push( cur ); + tmp = cur; + } + + // Only add window if we got to document (e.g., not plain obj or detached DOM) + if ( tmp === ( elem.ownerDocument || document ) ) { + eventPath.push( tmp.defaultView || tmp.parentWindow || window ); + } + } + + // Fire handlers on the event path + i = 0; + while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { + lastElement = cur; + event.type = i > 1 ? + bubbleType : + special.bindType || type; + + // jQuery handler + handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] && + dataPriv.get( cur, "handle" ); + if ( handle ) { + handle.apply( cur, data ); + } + + // Native handler + handle = ontype && cur[ ontype ]; + if ( handle && handle.apply && acceptData( cur ) ) { + event.result = handle.apply( cur, data ); + if ( event.result === false ) { + event.preventDefault(); + } + } + } + event.type = type; + + // If nobody prevented the default action, do it now + if ( !onlyHandlers && !event.isDefaultPrevented() ) { + + if ( ( !special._default || + special._default.apply( eventPath.pop(), data ) === false ) && + acceptData( elem ) ) { + + // Call a native DOM method on the target with the same name as the event. + // Don't do default actions on window, that's where global variables be (#6170) + if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) { + + // Don't re-trigger an onFOO event when we call its FOO() method + tmp = elem[ ontype ]; + + if ( tmp ) { + elem[ ontype ] = null; + } + + // Prevent re-triggering of the same event, since we already bubbled it above + jQuery.event.triggered = type; + + if ( event.isPropagationStopped() ) { + lastElement.addEventListener( type, stopPropagationCallback ); + } + + elem[ type ](); + + if ( event.isPropagationStopped() ) { + lastElement.removeEventListener( type, stopPropagationCallback ); + } + + jQuery.event.triggered = undefined; + + if ( tmp ) { + elem[ ontype ] = tmp; + } + } + } + } + + return event.result; + }, + + // Piggyback on a donor event to simulate a different one + // Used only for `focus(in | out)` events + simulate: function( type, elem, event ) { + var e = jQuery.extend( + new jQuery.Event(), + event, + { + type: type, + isSimulated: true + } + ); + + jQuery.event.trigger( e, null, elem ); + } + +} ); + +jQuery.fn.extend( { + + trigger: function( type, data ) { + return this.each( function() { + jQuery.event.trigger( type, data, this ); + } ); + }, + triggerHandler: function( type, data ) { + var elem = this[ 0 ]; + if ( elem ) { + return jQuery.event.trigger( type, data, elem, true ); + } + } +} ); + + +// Support: Firefox <=44 +// Firefox doesn't have focus(in | out) events +// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 +// +// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 +// focus(in | out) events fire after focus & blur events, +// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order +// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 +if ( !support.focusin ) { + jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { + + // Attach a single capturing handler on the document while someone wants focusin/focusout + var handler = function( event ) { + jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); + }; + + jQuery.event.special[ fix ] = { + setup: function() { + var doc = this.ownerDocument || this, + attaches = dataPriv.access( doc, fix ); + + if ( !attaches ) { + doc.addEventListener( orig, handler, true ); + } + dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); + }, + teardown: function() { + var doc = this.ownerDocument || this, + attaches = dataPriv.access( doc, fix ) - 1; + + if ( !attaches ) { + doc.removeEventListener( orig, handler, true ); + dataPriv.remove( doc, fix ); + + } else { + dataPriv.access( doc, fix, attaches ); + } + } + }; + } ); +} +var location = window.location; + +var nonce = Date.now(); + +var rquery = ( /\?/ ); + + + +// Cross-browser xml parsing +jQuery.parseXML = function( data ) { + var xml; + if ( !data || typeof data !== "string" ) { + return null; + } + + // Support: IE 9 - 11 only + // IE throws on parseFromString with invalid input. + try { + xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); + } catch ( e ) { + xml = undefined; + } + + if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { + jQuery.error( "Invalid XML: " + data ); + } + return xml; +}; + + +var + rbracket = /\[\]$/, + rCRLF = /\r?\n/g, + rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, + rsubmittable = /^(?:input|select|textarea|keygen)/i; + +function buildParams( prefix, obj, traditional, add ) { + var name; + + if ( Array.isArray( obj ) ) { + + // Serialize array item. + jQuery.each( obj, function( i, v ) { + if ( traditional || rbracket.test( prefix ) ) { + + // Treat each array item as a scalar. + add( prefix, v ); + + } else { + + // Item is non-scalar (array or object), encode its numeric index. + buildParams( + prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", + v, + traditional, + add + ); + } + } ); + + } else if ( !traditional && toType( obj ) === "object" ) { + + // Serialize object item. + for ( name in obj ) { + buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); + } + + } else { + + // Serialize scalar item. + add( prefix, obj ); + } +} + +// Serialize an array of form elements or a set of +// key/values into a query string +jQuery.param = function( a, traditional ) { + var prefix, + s = [], + add = function( key, valueOrFunction ) { + + // If value is a function, invoke it and use its return value + var value = isFunction( valueOrFunction ) ? + valueOrFunction() : + valueOrFunction; + + s[ s.length ] = encodeURIComponent( key ) + "=" + + encodeURIComponent( value == null ? "" : value ); + }; + + if ( a == null ) { + return ""; + } + + // If an array was passed in, assume that it is an array of form elements. + if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { + + // Serialize the form elements + jQuery.each( a, function() { + add( this.name, this.value ); + } ); + + } else { + + // If traditional, encode the "old" way (the way 1.3.2 or older + // did it), otherwise encode params recursively. + for ( prefix in a ) { + buildParams( prefix, a[ prefix ], traditional, add ); + } + } + + // Return the resulting serialization + return s.join( "&" ); +}; + +jQuery.fn.extend( { + serialize: function() { + return jQuery.param( this.serializeArray() ); + }, + serializeArray: function() { + return this.map( function() { + + // Can add propHook for "elements" to filter or add form elements + var elements = jQuery.prop( this, "elements" ); + return elements ? jQuery.makeArray( elements ) : this; + } ) + .filter( function() { + var type = this.type; + + // Use .is( ":disabled" ) so that fieldset[disabled] works + return this.name && !jQuery( this ).is( ":disabled" ) && + rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && + ( this.checked || !rcheckableType.test( type ) ); + } ) + .map( function( i, elem ) { + var val = jQuery( this ).val(); + + if ( val == null ) { + return null; + } + + if ( Array.isArray( val ) ) { + return jQuery.map( val, function( val ) { + return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; + } ); + } + + return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; + } ).get(); + } +} ); + + +var + r20 = /%20/g, + rhash = /#.*$/, + rantiCache = /([?&])_=[^&]*/, + rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, + + // #7653, #8125, #8152: local protocol detection + rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, + rnoContent = /^(?:GET|HEAD)$/, + rprotocol = /^\/\//, + + /* Prefilters + * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) + * 2) These are called: + * - BEFORE asking for a transport + * - AFTER param serialization (s.data is a string if s.processData is true) + * 3) key is the dataType + * 4) the catchall symbol "*" can be used + * 5) execution will start with transport dataType and THEN continue down to "*" if needed + */ + prefilters = {}, + + /* Transports bindings + * 1) key is the dataType + * 2) the catchall symbol "*" can be used + * 3) selection will start with transport dataType and THEN go to "*" if needed + */ + transports = {}, + + // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression + allTypes = "*/".concat( "*" ), + + // Anchor tag for parsing the document origin + originAnchor = document.createElement( "a" ); + originAnchor.href = location.href; + +// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport +function addToPrefiltersOrTransports( structure ) { + + // dataTypeExpression is optional and defaults to "*" + return function( dataTypeExpression, func ) { + + if ( typeof dataTypeExpression !== "string" ) { + func = dataTypeExpression; + dataTypeExpression = "*"; + } + + var dataType, + i = 0, + dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; + + if ( isFunction( func ) ) { + + // For each dataType in the dataTypeExpression + while ( ( dataType = dataTypes[ i++ ] ) ) { + + // Prepend if requested + if ( dataType[ 0 ] === "+" ) { + dataType = dataType.slice( 1 ) || "*"; + ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); + + // Otherwise append + } else { + ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); + } + } + } + }; +} + +// Base inspection function for prefilters and transports +function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { + + var inspected = {}, + seekingTransport = ( structure === transports ); + + function inspect( dataType ) { + var selected; + inspected[ dataType ] = true; + jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { + var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); + if ( typeof dataTypeOrTransport === "string" && + !seekingTransport && !inspected[ dataTypeOrTransport ] ) { + + options.dataTypes.unshift( dataTypeOrTransport ); + inspect( dataTypeOrTransport ); + return false; + } else if ( seekingTransport ) { + return !( selected = dataTypeOrTransport ); + } + } ); + return selected; + } + + return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); +} + +// A special extend for ajax options +// that takes "flat" options (not to be deep extended) +// Fixes #9887 +function ajaxExtend( target, src ) { + var key, deep, + flatOptions = jQuery.ajaxSettings.flatOptions || {}; + + for ( key in src ) { + if ( src[ key ] !== undefined ) { + ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; + } + } + if ( deep ) { + jQuery.extend( true, target, deep ); + } + + return target; +} + +/* Handles responses to an ajax request: + * - finds the right dataType (mediates between content-type and expected dataType) + * - returns the corresponding response + */ +function ajaxHandleResponses( s, jqXHR, responses ) { + + var ct, type, finalDataType, firstDataType, + contents = s.contents, + dataTypes = s.dataTypes; + + // Remove auto dataType and get content-type in the process + while ( dataTypes[ 0 ] === "*" ) { + dataTypes.shift(); + if ( ct === undefined ) { + ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); + } + } + + // Check if we're dealing with a known content-type + if ( ct ) { + for ( type in contents ) { + if ( contents[ type ] && contents[ type ].test( ct ) ) { + dataTypes.unshift( type ); + break; + } + } + } + + // Check to see if we have a response for the expected dataType + if ( dataTypes[ 0 ] in responses ) { + finalDataType = dataTypes[ 0 ]; + } else { + + // Try convertible dataTypes + for ( type in responses ) { + if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { + finalDataType = type; + break; + } + if ( !firstDataType ) { + firstDataType = type; + } + } + + // Or just use first one + finalDataType = finalDataType || firstDataType; + } + + // If we found a dataType + // We add the dataType to the list if needed + // and return the corresponding response + if ( finalDataType ) { + if ( finalDataType !== dataTypes[ 0 ] ) { + dataTypes.unshift( finalDataType ); + } + return responses[ finalDataType ]; + } +} + +/* Chain conversions given the request and the original response + * Also sets the responseXXX fields on the jqXHR instance + */ +function ajaxConvert( s, response, jqXHR, isSuccess ) { + var conv2, current, conv, tmp, prev, + converters = {}, + + // Work with a copy of dataTypes in case we need to modify it for conversion + dataTypes = s.dataTypes.slice(); + + // Create converters map with lowercased keys + if ( dataTypes[ 1 ] ) { + for ( conv in s.converters ) { + converters[ conv.toLowerCase() ] = s.converters[ conv ]; + } + } + + current = dataTypes.shift(); + + // Convert to each sequential dataType + while ( current ) { + + if ( s.responseFields[ current ] ) { + jqXHR[ s.responseFields[ current ] ] = response; + } + + // Apply the dataFilter if provided + if ( !prev && isSuccess && s.dataFilter ) { + response = s.dataFilter( response, s.dataType ); + } + + prev = current; + current = dataTypes.shift(); + + if ( current ) { + + // There's only work to do if current dataType is non-auto + if ( current === "*" ) { + + current = prev; + + // Convert response if prev dataType is non-auto and differs from current + } else if ( prev !== "*" && prev !== current ) { + + // Seek a direct converter + conv = converters[ prev + " " + current ] || converters[ "* " + current ]; + + // If none found, seek a pair + if ( !conv ) { + for ( conv2 in converters ) { + + // If conv2 outputs current + tmp = conv2.split( " " ); + if ( tmp[ 1 ] === current ) { + + // If prev can be converted to accepted input + conv = converters[ prev + " " + tmp[ 0 ] ] || + converters[ "* " + tmp[ 0 ] ]; + if ( conv ) { + + // Condense equivalence converters + if ( conv === true ) { + conv = converters[ conv2 ]; + + // Otherwise, insert the intermediate dataType + } else if ( converters[ conv2 ] !== true ) { + current = tmp[ 0 ]; + dataTypes.unshift( tmp[ 1 ] ); + } + break; + } + } + } + } + + // Apply converter (if not an equivalence) + if ( conv !== true ) { + + // Unless errors are allowed to bubble, catch and return them + if ( conv && s.throws ) { + response = conv( response ); + } else { + try { + response = conv( response ); + } catch ( e ) { + return { + state: "parsererror", + error: conv ? e : "No conversion from " + prev + " to " + current + }; + } + } + } + } + } + } + + return { state: "success", data: response }; +} + +jQuery.extend( { + + // Counter for holding the number of active queries + active: 0, + + // Last-Modified header cache for next request + lastModified: {}, + etag: {}, + + ajaxSettings: { + url: location.href, + type: "GET", + isLocal: rlocalProtocol.test( location.protocol ), + global: true, + processData: true, + async: true, + contentType: "application/x-www-form-urlencoded; charset=UTF-8", + + /* + timeout: 0, + data: null, + dataType: null, + username: null, + password: null, + cache: null, + throws: false, + traditional: false, + headers: {}, + */ + + accepts: { + "*": allTypes, + text: "text/plain", + html: "text/html", + xml: "application/xml, text/xml", + json: "application/json, text/javascript" + }, + + contents: { + xml: /\bxml\b/, + html: /\bhtml/, + json: /\bjson\b/ + }, + + responseFields: { + xml: "responseXML", + text: "responseText", + json: "responseJSON" + }, + + // Data converters + // Keys separate source (or catchall "*") and destination types with a single space + converters: { + + // Convert anything to text + "* text": String, + + // Text to html (true = no transformation) + "text html": true, + + // Evaluate text as a json expression + "text json": JSON.parse, + + // Parse text as xml + "text xml": jQuery.parseXML + }, + + // For options that shouldn't be deep extended: + // you can add your own custom options here if + // and when you create one that shouldn't be + // deep extended (see ajaxExtend) + flatOptions: { + url: true, + context: true + } + }, + + // Creates a full fledged settings object into target + // with both ajaxSettings and settings fields. + // If target is omitted, writes into ajaxSettings. + ajaxSetup: function( target, settings ) { + return settings ? + + // Building a settings object + ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : + + // Extending ajaxSettings + ajaxExtend( jQuery.ajaxSettings, target ); + }, + + ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), + ajaxTransport: addToPrefiltersOrTransports( transports ), + + // Main method + ajax: function( url, options ) { + + // If url is an object, simulate pre-1.5 signature + if ( typeof url === "object" ) { + options = url; + url = undefined; + } + + // Force options to be an object + options = options || {}; + + var transport, + + // URL without anti-cache param + cacheURL, + + // Response headers + responseHeadersString, + responseHeaders, + + // timeout handle + timeoutTimer, + + // Url cleanup var + urlAnchor, + + // Request state (becomes false upon send and true upon completion) + completed, + + // To know if global events are to be dispatched + fireGlobals, + + // Loop variable + i, + + // uncached part of the url + uncached, + + // Create the final options object + s = jQuery.ajaxSetup( {}, options ), + + // Callbacks context + callbackContext = s.context || s, + + // Context for global events is callbackContext if it is a DOM node or jQuery collection + globalEventContext = s.context && + ( callbackContext.nodeType || callbackContext.jquery ) ? + jQuery( callbackContext ) : + jQuery.event, + + // Deferreds + deferred = jQuery.Deferred(), + completeDeferred = jQuery.Callbacks( "once memory" ), + + // Status-dependent callbacks + statusCode = s.statusCode || {}, + + // Headers (they are sent all at once) + requestHeaders = {}, + requestHeadersNames = {}, + + // Default abort message + strAbort = "canceled", + + // Fake xhr + jqXHR = { + readyState: 0, + + // Builds headers hashtable if needed + getResponseHeader: function( key ) { + var match; + if ( completed ) { + if ( !responseHeaders ) { + responseHeaders = {}; + while ( ( match = rheaders.exec( responseHeadersString ) ) ) { + responseHeaders[ match[ 1 ].toLowerCase() + " " ] = + ( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] ) + .concat( match[ 2 ] ); + } + } + match = responseHeaders[ key.toLowerCase() + " " ]; + } + return match == null ? null : match.join( ", " ); + }, + + // Raw string + getAllResponseHeaders: function() { + return completed ? responseHeadersString : null; + }, + + // Caches the header + setRequestHeader: function( name, value ) { + if ( completed == null ) { + name = requestHeadersNames[ name.toLowerCase() ] = + requestHeadersNames[ name.toLowerCase() ] || name; + requestHeaders[ name ] = value; + } + return this; + }, + + // Overrides response content-type header + overrideMimeType: function( type ) { + if ( completed == null ) { + s.mimeType = type; + } + return this; + }, + + // Status-dependent callbacks + statusCode: function( map ) { + var code; + if ( map ) { + if ( completed ) { + + // Execute the appropriate callbacks + jqXHR.always( map[ jqXHR.status ] ); + } else { + + // Lazy-add the new callbacks in a way that preserves old ones + for ( code in map ) { + statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; + } + } + } + return this; + }, + + // Cancel the request + abort: function( statusText ) { + var finalText = statusText || strAbort; + if ( transport ) { + transport.abort( finalText ); + } + done( 0, finalText ); + return this; + } + }; + + // Attach deferreds + deferred.promise( jqXHR ); + + // Add protocol if not provided (prefilters might expect it) + // Handle falsy url in the settings object (#10093: consistency with old signature) + // We also use the url parameter if available + s.url = ( ( url || s.url || location.href ) + "" ) + .replace( rprotocol, location.protocol + "//" ); + + // Alias method option to type as per ticket #12004 + s.type = options.method || options.type || s.method || s.type; + + // Extract dataTypes list + s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; + + // A cross-domain request is in order when the origin doesn't match the current origin. + if ( s.crossDomain == null ) { + urlAnchor = document.createElement( "a" ); + + // Support: IE <=8 - 11, Edge 12 - 15 + // IE throws exception on accessing the href property if url is malformed, + // e.g. http://example.com:80x/ + try { + urlAnchor.href = s.url; + + // Support: IE <=8 - 11 only + // Anchor's host property isn't correctly set when s.url is relative + urlAnchor.href = urlAnchor.href; + s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== + urlAnchor.protocol + "//" + urlAnchor.host; + } catch ( e ) { + + // If there is an error parsing the URL, assume it is crossDomain, + // it can be rejected by the transport if it is invalid + s.crossDomain = true; + } + } + + // Convert data if not already a string + if ( s.data && s.processData && typeof s.data !== "string" ) { + s.data = jQuery.param( s.data, s.traditional ); + } + + // Apply prefilters + inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); + + // If request was aborted inside a prefilter, stop there + if ( completed ) { + return jqXHR; + } + + // We can fire global events as of now if asked to + // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) + fireGlobals = jQuery.event && s.global; + + // Watch for a new set of requests + if ( fireGlobals && jQuery.active++ === 0 ) { + jQuery.event.trigger( "ajaxStart" ); + } + + // Uppercase the type + s.type = s.type.toUpperCase(); + + // Determine if request has content + s.hasContent = !rnoContent.test( s.type ); + + // Save the URL in case we're toying with the If-Modified-Since + // and/or If-None-Match header later on + // Remove hash to simplify url manipulation + cacheURL = s.url.replace( rhash, "" ); + + // More options handling for requests with no content + if ( !s.hasContent ) { + + // Remember the hash so we can put it back + uncached = s.url.slice( cacheURL.length ); + + // If data is available and should be processed, append data to url + if ( s.data && ( s.processData || typeof s.data === "string" ) ) { + cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; + + // #9682: remove data so that it's not used in an eventual retry + delete s.data; + } + + // Add or update anti-cache param if needed + if ( s.cache === false ) { + cacheURL = cacheURL.replace( rantiCache, "$1" ); + uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached; + } + + // Put hash and anti-cache on the URL that will be requested (gh-1732) + s.url = cacheURL + uncached; + + // Change '%20' to '+' if this is encoded form body content (gh-2658) + } else if ( s.data && s.processData && + ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { + s.data = s.data.replace( r20, "+" ); + } + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + if ( jQuery.lastModified[ cacheURL ] ) { + jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); + } + if ( jQuery.etag[ cacheURL ] ) { + jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); + } + } + + // Set the correct header, if data is being sent + if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { + jqXHR.setRequestHeader( "Content-Type", s.contentType ); + } + + // Set the Accepts header for the server, depending on the dataType + jqXHR.setRequestHeader( + "Accept", + s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? + s.accepts[ s.dataTypes[ 0 ] ] + + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : + s.accepts[ "*" ] + ); + + // Check for headers option + for ( i in s.headers ) { + jqXHR.setRequestHeader( i, s.headers[ i ] ); + } + + // Allow custom headers/mimetypes and early abort + if ( s.beforeSend && + ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { + + // Abort if not done already and return + return jqXHR.abort(); + } + + // Aborting is no longer a cancellation + strAbort = "abort"; + + // Install callbacks on deferreds + completeDeferred.add( s.complete ); + jqXHR.done( s.success ); + jqXHR.fail( s.error ); + + // Get transport + transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); + + // If no transport, we auto-abort + if ( !transport ) { + done( -1, "No Transport" ); + } else { + jqXHR.readyState = 1; + + // Send global event + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); + } + + // If request was aborted inside ajaxSend, stop there + if ( completed ) { + return jqXHR; + } + + // Timeout + if ( s.async && s.timeout > 0 ) { + timeoutTimer = window.setTimeout( function() { + jqXHR.abort( "timeout" ); + }, s.timeout ); + } + + try { + completed = false; + transport.send( requestHeaders, done ); + } catch ( e ) { + + // Rethrow post-completion exceptions + if ( completed ) { + throw e; + } + + // Propagate others as results + done( -1, e ); + } + } + + // Callback for when everything is done + function done( status, nativeStatusText, responses, headers ) { + var isSuccess, success, error, response, modified, + statusText = nativeStatusText; + + // Ignore repeat invocations + if ( completed ) { + return; + } + + completed = true; + + // Clear timeout if it exists + if ( timeoutTimer ) { + window.clearTimeout( timeoutTimer ); + } + + // Dereference transport for early garbage collection + // (no matter how long the jqXHR object will be used) + transport = undefined; + + // Cache response headers + responseHeadersString = headers || ""; + + // Set readyState + jqXHR.readyState = status > 0 ? 4 : 0; + + // Determine if successful + isSuccess = status >= 200 && status < 300 || status === 304; + + // Get response data + if ( responses ) { + response = ajaxHandleResponses( s, jqXHR, responses ); + } + + // Convert no matter what (that way responseXXX fields are always set) + response = ajaxConvert( s, response, jqXHR, isSuccess ); + + // If successful, handle type chaining + if ( isSuccess ) { + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + modified = jqXHR.getResponseHeader( "Last-Modified" ); + if ( modified ) { + jQuery.lastModified[ cacheURL ] = modified; + } + modified = jqXHR.getResponseHeader( "etag" ); + if ( modified ) { + jQuery.etag[ cacheURL ] = modified; + } + } + + // if no content + if ( status === 204 || s.type === "HEAD" ) { + statusText = "nocontent"; + + // if not modified + } else if ( status === 304 ) { + statusText = "notmodified"; + + // If we have data, let's convert it + } else { + statusText = response.state; + success = response.data; + error = response.error; + isSuccess = !error; + } + } else { + + // Extract error from statusText and normalize for non-aborts + error = statusText; + if ( status || !statusText ) { + statusText = "error"; + if ( status < 0 ) { + status = 0; + } + } + } + + // Set data for the fake xhr object + jqXHR.status = status; + jqXHR.statusText = ( nativeStatusText || statusText ) + ""; + + // Success/Error + if ( isSuccess ) { + deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); + } else { + deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); + } + + // Status-dependent callbacks + jqXHR.statusCode( statusCode ); + statusCode = undefined; + + if ( fireGlobals ) { + globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", + [ jqXHR, s, isSuccess ? success : error ] ); + } + + // Complete + completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); + + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); + + // Handle the global AJAX counter + if ( !( --jQuery.active ) ) { + jQuery.event.trigger( "ajaxStop" ); + } + } + } + + return jqXHR; + }, + + getJSON: function( url, data, callback ) { + return jQuery.get( url, data, callback, "json" ); + }, + + getScript: function( url, callback ) { + return jQuery.get( url, undefined, callback, "script" ); + } +} ); + +jQuery.each( [ "get", "post" ], function( i, method ) { + jQuery[ method ] = function( url, data, callback, type ) { + + // Shift arguments if data argument was omitted + if ( isFunction( data ) ) { + type = type || callback; + callback = data; + data = undefined; + } + + // The url can be an options object (which then must have .url) + return jQuery.ajax( jQuery.extend( { + url: url, + type: method, + dataType: type, + data: data, + success: callback + }, jQuery.isPlainObject( url ) && url ) ); + }; +} ); + + +jQuery._evalUrl = function( url, options ) { + return jQuery.ajax( { + url: url, + + // Make this explicit, since user can override this through ajaxSetup (#11264) + type: "GET", + dataType: "script", + cache: true, + async: false, + global: false, + + // Only evaluate the response if it is successful (gh-4126) + // dataFilter is not invoked for failure responses, so using it instead + // of the default converter is kludgy but it works. + converters: { + "text script": function() {} + }, + dataFilter: function( response ) { + jQuery.globalEval( response, options ); + } + } ); +}; + + +jQuery.fn.extend( { + wrapAll: function( html ) { + var wrap; + + if ( this[ 0 ] ) { + if ( isFunction( html ) ) { + html = html.call( this[ 0 ] ); + } + + // The elements to wrap the target around + wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); + + if ( this[ 0 ].parentNode ) { + wrap.insertBefore( this[ 0 ] ); + } + + wrap.map( function() { + var elem = this; + + while ( elem.firstElementChild ) { + elem = elem.firstElementChild; + } + + return elem; + } ).append( this ); + } + + return this; + }, + + wrapInner: function( html ) { + if ( isFunction( html ) ) { + return this.each( function( i ) { + jQuery( this ).wrapInner( html.call( this, i ) ); + } ); + } + + return this.each( function() { + var self = jQuery( this ), + contents = self.contents(); + + if ( contents.length ) { + contents.wrapAll( html ); + + } else { + self.append( html ); + } + } ); + }, + + wrap: function( html ) { + var htmlIsFunction = isFunction( html ); + + return this.each( function( i ) { + jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html ); + } ); + }, + + unwrap: function( selector ) { + this.parent( selector ).not( "body" ).each( function() { + jQuery( this ).replaceWith( this.childNodes ); + } ); + return this; + } +} ); + + +jQuery.expr.pseudos.hidden = function( elem ) { + return !jQuery.expr.pseudos.visible( elem ); +}; +jQuery.expr.pseudos.visible = function( elem ) { + return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); +}; + + + + +jQuery.ajaxSettings.xhr = function() { + try { + return new window.XMLHttpRequest(); + } catch ( e ) {} +}; + +var xhrSuccessStatus = { + + // File protocol always yields status code 0, assume 200 + 0: 200, + + // Support: IE <=9 only + // #1450: sometimes IE returns 1223 when it should be 204 + 1223: 204 + }, + xhrSupported = jQuery.ajaxSettings.xhr(); + +support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); +support.ajax = xhrSupported = !!xhrSupported; + +jQuery.ajaxTransport( function( options ) { + var callback, errorCallback; + + // Cross domain only allowed if supported through XMLHttpRequest + if ( support.cors || xhrSupported && !options.crossDomain ) { + return { + send: function( headers, complete ) { + var i, + xhr = options.xhr(); + + xhr.open( + options.type, + options.url, + options.async, + options.username, + options.password + ); + + // Apply custom fields if provided + if ( options.xhrFields ) { + for ( i in options.xhrFields ) { + xhr[ i ] = options.xhrFields[ i ]; + } + } + + // Override mime type if needed + if ( options.mimeType && xhr.overrideMimeType ) { + xhr.overrideMimeType( options.mimeType ); + } + + // X-Requested-With header + // For cross-domain requests, seeing as conditions for a preflight are + // akin to a jigsaw puzzle, we simply never set it to be sure. + // (it can always be set on a per-request basis or even using ajaxSetup) + // For same-domain requests, won't change header if already provided. + if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { + headers[ "X-Requested-With" ] = "XMLHttpRequest"; + } + + // Set headers + for ( i in headers ) { + xhr.setRequestHeader( i, headers[ i ] ); + } + + // Callback + callback = function( type ) { + return function() { + if ( callback ) { + callback = errorCallback = xhr.onload = + xhr.onerror = xhr.onabort = xhr.ontimeout = + xhr.onreadystatechange = null; + + if ( type === "abort" ) { + xhr.abort(); + } else if ( type === "error" ) { + + // Support: IE <=9 only + // On a manual native abort, IE9 throws + // errors on any property access that is not readyState + if ( typeof xhr.status !== "number" ) { + complete( 0, "error" ); + } else { + complete( + + // File: protocol always yields status 0; see #8605, #14207 + xhr.status, + xhr.statusText + ); + } + } else { + complete( + xhrSuccessStatus[ xhr.status ] || xhr.status, + xhr.statusText, + + // Support: IE <=9 only + // IE9 has no XHR2 but throws on binary (trac-11426) + // For XHR2 non-text, let the caller handle it (gh-2498) + ( xhr.responseType || "text" ) !== "text" || + typeof xhr.responseText !== "string" ? + { binary: xhr.response } : + { text: xhr.responseText }, + xhr.getAllResponseHeaders() + ); + } + } + }; + }; + + // Listen to events + xhr.onload = callback(); + errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" ); + + // Support: IE 9 only + // Use onreadystatechange to replace onabort + // to handle uncaught aborts + if ( xhr.onabort !== undefined ) { + xhr.onabort = errorCallback; + } else { + xhr.onreadystatechange = function() { + + // Check readyState before timeout as it changes + if ( xhr.readyState === 4 ) { + + // Allow onerror to be called first, + // but that will not handle a native abort + // Also, save errorCallback to a variable + // as xhr.onerror cannot be accessed + window.setTimeout( function() { + if ( callback ) { + errorCallback(); + } + } ); + } + }; + } + + // Create the abort callback + callback = callback( "abort" ); + + try { + + // Do send the request (this may raise an exception) + xhr.send( options.hasContent && options.data || null ); + } catch ( e ) { + + // #14683: Only rethrow if this hasn't been notified as an error yet + if ( callback ) { + throw e; + } + } + }, + + abort: function() { + if ( callback ) { + callback(); + } + } + }; + } +} ); + + + + +// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) +jQuery.ajaxPrefilter( function( s ) { + if ( s.crossDomain ) { + s.contents.script = false; + } +} ); + +// Install script dataType +jQuery.ajaxSetup( { + accepts: { + script: "text/javascript, application/javascript, " + + "application/ecmascript, application/x-ecmascript" + }, + contents: { + script: /\b(?:java|ecma)script\b/ + }, + converters: { + "text script": function( text ) { + jQuery.globalEval( text ); + return text; + } + } +} ); + +// Handle cache's special case and crossDomain +jQuery.ajaxPrefilter( "script", function( s ) { + if ( s.cache === undefined ) { + s.cache = false; + } + if ( s.crossDomain ) { + s.type = "GET"; + } +} ); + +// Bind script tag hack transport +jQuery.ajaxTransport( "script", function( s ) { + + // This transport only deals with cross domain or forced-by-attrs requests + if ( s.crossDomain || s.scriptAttrs ) { + var script, callback; + return { + send: function( _, complete ) { + script = jQuery( "\r\n"; + +// inject VBScript +document.write(IEBinaryToArray_ByteStr_Script); + +global.JSZipUtils._getBinaryFromXHR = function (xhr) { + var binary = xhr.responseBody; + var byteMapping = {}; + for ( var i = 0; i < 256; i++ ) { + for ( var j = 0; j < 256; j++ ) { + byteMapping[ String.fromCharCode( i + (j << 8) ) ] = + String.fromCharCode(i) + String.fromCharCode(j); + } + } + var rawBytes = IEBinaryToArray_ByteStr(binary); + var lastChr = IEBinaryToArray_ByteStr_Last(binary); + return rawBytes.replace(/[\s\S]/g, function( match ) { + return byteMapping[match]; + }) + lastChr; +}; + +// enforcing Stuk's coding style +// vim: set shiftwidth=4 softtabstop=4: + +},{}]},{},[1]) +; diff --git a/docs/jquery/jszip-utils/dist/jszip-utils-ie.min.js b/docs/jquery/jszip-utils/dist/jszip-utils-ie.min.js new file mode 100644 index 0000000..93d8bc8 --- /dev/null +++ b/docs/jquery/jszip-utils/dist/jszip-utils-ie.min.js @@ -0,0 +1,10 @@ +/*! + +JSZipUtils - A collection of cross-browser utilities to go along with JSZip. + + +(c) 2014 Stuart Knightley, David Duponchel +Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. + +*/ +!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g\r\n";document.write(b),a.JSZipUtils._getBinaryFromXHR=function(a){for(var b=a.responseBody,c={},d=0;256>d;d++)for(var e=0;256>e;e++)c[String.fromCharCode(d+(e<<8))]=String.fromCharCode(d)+String.fromCharCode(e);var f=IEBinaryToArray_ByteStr(b),g=IEBinaryToArray_ByteStr_Last(b);return f.replace(/[\s\S]/g,function(a){return c[a]})+g}},{}]},{},[1]); diff --git a/docs/jquery/jszip-utils/dist/jszip-utils.js b/docs/jquery/jszip-utils/dist/jszip-utils.js new file mode 100644 index 0000000..775895e --- /dev/null +++ b/docs/jquery/jszip-utils/dist/jszip-utils.js @@ -0,0 +1,118 @@ +/*! + +JSZipUtils - A collection of cross-browser utilities to go along with JSZip. + + +(c) 2014 Stuart Knightley, David Duponchel +Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. + +*/ +!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.JSZipUtils=e():"undefined"!=typeof global?global.JSZipUtils=e():"undefined"!=typeof self&&(self.JSZipUtils=e())}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o + +(c) 2014 Stuart Knightley, David Duponchel +Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. + +*/ +!function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.JSZipUtils=a():"undefined"!=typeof global?global.JSZipUtils=a():"undefined"!=typeof self&&(self.JSZipUtils=a())}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g + +(c) 2009-2016 Stuart Knightley +Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown. + +JSZip uses the library pako released under the MIT license : +https://github.com/nodeca/pako/blob/master/LICENSE +*/ + +(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.JSZip = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o + +(c) 2009-2016 Stuart Knightley +Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown. + +JSZip uses the library pako released under the MIT license : +https://github.com/nodeca/pako/blob/master/LICENSE +*/ + +!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).JSZip=t()}}(function(){return function s(a,o,h){function u(r,t){if(!o[r]){if(!a[r]){var e="function"==typeof require&&require;if(!t&&e)return e(r,!0);if(l)return l(r,!0);var i=new Error("Cannot find module '"+r+"'");throw i.code="MODULE_NOT_FOUND",i}var n=o[r]={exports:{}};a[r][0].call(n.exports,function(t){var e=a[r][1][t];return u(e||t)},n,n.exports,s,a,o,h)}return o[r].exports}for(var l="function"==typeof require&&require,t=0;t>2,s=(3&e)<<4|r>>4,a=1>6:64,o=2>4,r=(15&n)<<4|(s=p.indexOf(t.charAt(o++)))>>2,i=(3&s)<<6|(a=p.indexOf(t.charAt(o++))),u[h++]=e,64!==s&&(u[h++]=r),64!==a&&(u[h++]=i);return u}},{"./support":30,"./utils":32}],2:[function(t,e,r){"use strict";var i=t("./external"),n=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function o(t,e,r,i,n){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=i,this.compressedContent=n}o.prototype={getContentWorker:function(){var t=new n(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),e=this;return t.on("end",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),t},getCompressedWorker:function(){return new n(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(t,e,r){return t.pipe(new s).pipe(new a("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",e)},e.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,r){"use strict";var i=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(t){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,r){"use strict";var i=t("./utils"),a=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,r){var i=a,n=0+r;t^=-1;for(var s=0;s>>8^i[255&(t^e[s])];return-1^t}(0|e,t,t.length):function(t,e,r){var i=a,n=0+r;t^=-1;for(var s=0;s>>8^i[255&(t^e.charCodeAt(s))];return-1^t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){"use strict";var i;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i}},{lie:37}],7:[function(t,e,r){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=t("pako"),s=t("./utils"),a=t("./stream/GenericWorker"),o=i?"uint8array":"array";function h(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic="\b\0",s.inherits(h,a),h.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,t.data),!1)},h.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(t){return new h("Deflate",t)},r.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,r){"use strict";function O(t,e){var r,i="";for(r=0;r>>=8;return i}function n(t,e,r,i,n,s){var a,o,h=t.file,u=t.compression,l=s!==R.utf8encode,f=B.transformTo("string",s(h.name)),d=B.transformTo("string",R.utf8encode(h.name)),c=h.comment,p=B.transformTo("string",s(c)),m=B.transformTo("string",R.utf8encode(c)),_=d.length!==h.name.length,g=m.length!==c.length,b="",v="",y="",w=h.dir,k=h.date,x={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(x.crc32=t.crc32,x.compressedSize=t.compressedSize,x.uncompressedSize=t.uncompressedSize);var S=0;e&&(S|=8),l||!_&&!g||(S|=2048);var z,C,E=0,A=0;w&&(E|=16),"UNIX"===n?(A=798,E|=(z=h.unixPermissions,(C=z)||(C=w?16893:33204),(65535&C)<<16)):(A=20,E|=63&(h.dosPermissions||0)),a=k.getUTCHours(),a<<=6,a|=k.getUTCMinutes(),a<<=5,a|=k.getUTCSeconds()/2,o=k.getUTCFullYear()-1980,o<<=4,o|=k.getUTCMonth()+1,o<<=5,o|=k.getUTCDate(),_&&(b+="up"+O((v=O(1,1)+O(T(f),4)+d).length,2)+v),g&&(b+="uc"+O((y=O(1,1)+O(T(p),4)+m).length,2)+y);var I="";return I+="\n\0",I+=O(S,2),I+=u.magic,I+=O(a,2),I+=O(o,2),I+=O(x.crc32,4),I+=O(x.compressedSize,4),I+=O(x.uncompressedSize,4),I+=O(f.length,2),I+=O(b.length,2),{fileRecord:D.LOCAL_FILE_HEADER+I+f+b,dirRecord:D.CENTRAL_FILE_HEADER+O(A,2)+I+O(p.length,2)+"\0\0\0\0"+O(E,4)+O(i,4)+f+b+p}}var B=t("../utils"),s=t("../stream/GenericWorker"),R=t("../utf8"),T=t("../crc32"),D=t("../signature");function i(t,e,r,i){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}B.inherits(i,s),i.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,s.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-i-1))/r:100}}))},i.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=n(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},i.prototype.closedSource=function(t){this.accumulate=!1;var e,r=this.streamFiles&&!t.file.dir,i=n(t,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),r)this.push({data:(e=t,D.DATA_DESCRIPTOR+O(e.crc32,4)+O(e.compressedSize,4)+O(e.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},i.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=n},{"../utils":32}],19:[function(t,e,r){"use strict";var i=t("./Uint8ArrayReader");function n(t){i.call(this,t)}t("../utils").inherits(n,i),n.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,r){"use strict";var i=t("./DataReader");function n(t){i.call(this,t)}t("../utils").inherits(n,i),n.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},n.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},n.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},n.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./DataReader":18}],21:[function(t,e,r){"use strict";var i=t("./ArrayReader");function n(t){i.call(this,t)}t("../utils").inherits(n,i),n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,r){"use strict";var i=t("../utils"),n=t("../support"),s=t("./ArrayReader"),a=t("./StringReader"),o=t("./NodeBufferReader"),h=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||n.uint8array?"nodebuffer"===e?new o(t):n.uint8array?new h(i.transformTo("uint8array",t)):new s(i.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,r){"use strict";var i=t("./GenericWorker"),n=t("../utils");function s(t){i.call(this,"ConvertWorker to "+t),this.destType=t}n.inherits(s,i),s.prototype.processChunk=function(t){this.push({data:n.transformTo(this.destType,t.data),meta:t.meta})},e.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,r){"use strict";var i=t("./GenericWorker"),n=t("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,i),s.prototype.processChunk=function(t){this.streamInfo.crc32=n(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,r){"use strict";var i=t("../utils"),n=t("./GenericWorker");function s(t){n.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}i.inherits(s,n),s.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}n.prototype.processChunk.call(this,t)},e.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,r){"use strict";var i=t("../utils"),n=t("./GenericWorker");function s(t){n.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}i.inherits(s,n),s.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,r){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r "+t:t}},e.exports=i},{}],29:[function(t,e,r){"use strict";var h=t("../utils"),n=t("./ConvertWorker"),s=t("./GenericWorker"),u=t("../base64"),i=t("../support"),a=t("../external"),o=null;if(i.nodestream)try{o=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function l(t,e,r){var i=e;switch(e){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string"}try{this._internalType=i,this._outputType=e,this._mimeType=r,h.checkSupport(i),this._worker=t.pipe(new n(i)),t.lock()}catch(t){this._worker=new s("error"),this._worker.error(t)}}l.prototype={accumulate:function(t){return function(t,o){return new a.Promise(function(e,r){var i=[],n=t._internalType,s=t._outputType,a=t._mimeType;t.on("data",function(t,e){i.push(t),o&&o(e)}).on("error",function(t){i=[],r(t)}).on("end",function(){try{var t=function(t,e,r){switch(t){case"blob":return h.newBlob(h.transformTo("arraybuffer",e),r);case"base64":return u.encode(e);default:return h.transformTo(t,e)}}(s,function(t,e){var r,i=0,n=null,s=0;for(r=0;r>>6:(r<65536?e[s++]=224|r>>>12:(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63),e[s++]=128|r>>>6&63),e[s++]=128|63&r);return e}(t)},s.utf8decode=function(t){return h.nodebuffer?o.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,r,i,n,s=t.length,a=new Array(2*s);for(e=r=0;e>10&1023,a[r++]=56320|1023&i)}return a.length!==r&&(a.subarray?a=a.subarray(0,r):a.length=r),o.applyFromCharCode(a)}(t=o.transformTo(h.uint8array?"uint8array":"array",t))},o.inherits(a,i),a.prototype.processChunk=function(t){var e=o.transformTo(h.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(h.uint8array){var r=e;(e=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),e.set(r,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var i=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+u[t[r]]>e?r:e}(e),n=e;i!==e.length&&(h.uint8array?(n=e.subarray(0,i),this.leftOver=e.subarray(i,e.length)):(n=e.slice(0,i),this.leftOver=e.slice(i,e.length))),this.push({data:s.utf8decode(n),meta:t.meta})},a.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=a,o.inherits(l,i),l.prototype.processChunk=function(t){this.push({data:s.utf8encode(t.data),meta:t.meta})},s.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,o){"use strict";var h=t("./support"),u=t("./base64"),r=t("./nodejsUtils"),i=t("set-immediate-shim"),l=t("./external");function n(t){return t}function f(t,e){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(t){var e,r,i,n=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4>>6:(r<65536?e[s++]=224|r>>>12:(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63),e[s++]=128|r>>>6&63),e[s++]=128|63&r);return e},r.buf2binstring=function(t){return l(t,t.length)},r.binstring2buf=function(t){for(var e=new h.Buf8(t.length),r=0,i=e.length;r>10&1023,o[i++]=56320|1023&n)}return l(o,i)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+u[t[r]]>e?r:e}},{"./common":41}],43:[function(t,e,r){"use strict";e.exports=function(t,e,r,i){for(var n=65535&t|0,s=t>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,i){var n=o,s=i+r;t^=-1;for(var a=i;a>>8^n[255&(t^e[a])];return-1^t}},{}],46:[function(t,e,r){"use strict";var h,d=t("../utils/common"),u=t("./trees"),c=t("./adler32"),p=t("./crc32"),i=t("./messages"),l=0,f=0,m=-2,n=2,_=8,s=286,a=30,o=19,g=2*s+1,b=15,v=3,y=258,w=y+v+1,k=42,x=113;function S(t,e){return t.msg=i[e],e}function z(t){return(t<<1)-(4t.avail_out&&(r=t.avail_out),0!==r&&(d.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function A(t,e){u._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,E(t.strm)}function I(t,e){t.pending_buf[t.pending++]=e}function O(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function B(t,e){var r,i,n=t.max_chain_length,s=t.strstart,a=t.prev_length,o=t.nice_match,h=t.strstart>t.w_size-w?t.strstart-(t.w_size-w):0,u=t.window,l=t.w_mask,f=t.prev,d=t.strstart+y,c=u[s+a-1],p=u[s+a];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(u[(r=e)+a]===p&&u[r+a-1]===c&&u[r]===u[s]&&u[++r]===u[s+1]){s+=2,r++;do{}while(u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&sh&&0!=--n);return a<=t.lookahead?a:t.lookahead}function R(t){var e,r,i,n,s,a,o,h,u,l,f=t.w_size;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-w)){for(d.arraySet(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=r=t.hash_size;i=t.head[--e],t.head[e]=f<=i?i-f:0,--r;);for(e=r=f;i=t.prev[--e],t.prev[e]=f<=i?i-f:0,--r;);n+=f}if(0===t.strm.avail_in)break;if(a=t.strm,o=t.window,h=t.strstart+t.lookahead,l=void 0,(u=n)<(l=a.avail_in)&&(l=u),r=0===l?0:(a.avail_in-=l,d.arraySet(o,a.input,a.next_in,l,h),1===a.state.wrap?a.adler=c(a.adler,o,l,h):2===a.state.wrap&&(a.adler=p(a.adler,o,l,h)),a.next_in+=l,a.total_in+=l,l),t.lookahead+=r,t.lookahead+t.insert>=v)for(s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=(t.ins_h<=v&&(t.ins_h=(t.ins_h<=v)if(i=u._tr_tally(t,t.strstart-t.match_start,t.match_length-v),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=v){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=v&&(t.ins_h=(t.ins_h<=v&&t.match_length<=t.prev_length){for(n=t.strstart+t.lookahead-v,i=u._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-v),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=n&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(R(t),0===t.lookahead&&e===l)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+r;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,A(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-w&&(A(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(A(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(A(t,!1),t.strm.avail_out),1)}),new F(4,4,8,4,T),new F(4,5,16,8,T),new F(4,6,32,32,T),new F(4,4,16,16,D),new F(8,16,32,32,D),new F(8,16,128,128,D),new F(8,32,128,256,D),new F(32,128,258,1024,D),new F(32,258,258,4096,D)],r.deflateInit=function(t,e){return L(t,e,_,15,8,0)},r.deflateInit2=L,r.deflateReset=P,r.deflateResetKeep=U,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,f):m},r.deflate=function(t,e){var r,i,n,s;if(!t||!t.state||5>8&255),I(i,i.gzhead.time>>16&255),I(i,i.gzhead.time>>24&255),I(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),I(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(I(i,255&i.gzhead.extra.length),I(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=p(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(I(i,0),I(i,0),I(i,0),I(i,0),I(i,0),I(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),I(i,3),i.status=x);else{var a=_+(i.w_bits-8<<4)<<8;a|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(a|=32),a+=31-a%31,i.status=x,O(i,a),0!==i.strstart&&(O(i,t.adler>>>16),O(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>n&&(t.adler=p(t.adler,i.pending_buf,i.pending-n,n)),E(t),n=i.pending,i.pending!==i.pending_buf_size));)I(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(t.adler=p(t.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=p(t.adler,i.pending_buf,i.pending-n,n)),E(t),n=i.pending,i.pending===i.pending_buf_size)){s=1;break}s=i.gzindexn&&(t.adler=p(t.adler,i.pending_buf,i.pending-n,n)),0===s&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=p(t.adler,i.pending_buf,i.pending-n,n)),E(t),n=i.pending,i.pending===i.pending_buf_size)){s=1;break}s=i.gzindexn&&(t.adler=p(t.adler,i.pending_buf,i.pending-n,n)),0===s&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&E(t),i.pending+2<=i.pending_buf_size&&(I(i,255&t.adler),I(i,t.adler>>8&255),t.adler=0,i.status=x)):i.status=x),0!==i.pending){if(E(t),0===t.avail_out)return i.last_flush=-1,f}else if(0===t.avail_in&&z(e)<=z(r)&&4!==e)return S(t,-5);if(666===i.status&&0!==t.avail_in)return S(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==l&&666!==i.status){var o=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(R(t),0===t.lookahead)){if(e===l)return 1;break}if(t.match_length=0,r=u._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(A(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(A(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(A(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var r,i,n,s,a=t.window;;){if(t.lookahead<=y){if(R(t),t.lookahead<=y&&e===l)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=v&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=v?(r=u._tr_tally(t,1,t.match_length-v),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=u._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(A(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(A(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(A(t,!1),0===t.strm.avail_out)?1:2}(i,e):h[i.level].func(i,e);if(3!==o&&4!==o||(i.status=666),1===o||3===o)return 0===t.avail_out&&(i.last_flush=-1),f;if(2===o&&(1===e?u._tr_align(i):5!==e&&(u._tr_stored_block(i,0,0,!1),3===e&&(C(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),E(t),0===t.avail_out))return i.last_flush=-1,f}return 4!==e?f:i.wrap<=0?1:(2===i.wrap?(I(i,255&t.adler),I(i,t.adler>>8&255),I(i,t.adler>>16&255),I(i,t.adler>>24&255),I(i,255&t.total_in),I(i,t.total_in>>8&255),I(i,t.total_in>>16&255),I(i,t.total_in>>24&255)):(O(i,t.adler>>>16),O(i,65535&t.adler)),E(t),0=r.w_size&&(0===s&&(C(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new d.Buf8(r.w_size),d.arraySet(u,e,l-r.w_size,r.w_size,0),e=u,l=r.w_size),a=t.avail_in,o=t.next_in,h=t.input,t.avail_in=l,t.next_in=0,t.input=e,R(r);r.lookahead>=v;){for(i=r.strstart,n=r.lookahead-(v-1);r.ins_h=(r.ins_h<>>=y=v>>>24,p-=y,0==(y=v>>>16&255))C[s++]=65535&v;else{if(!(16&y)){if(0==(64&y)){v=m[(65535&v)+(c&(1<>>=y,p-=y),p<15&&(c+=z[i++]<>>=y=v>>>24,p-=y,!(16&(y=v>>>16&255))){if(0==(64&y)){v=_[(65535&v)+(c&(1<>>=y,p-=y,(y=s-a)>3,c&=(1<<(p-=w<<3))-1,t.next_in=i,t.next_out=s,t.avail_in=i>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function s(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new I.Buf16(320),this.work=new I.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function a(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=P,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new I.Buf32(i),e.distcode=e.distdyn=new I.Buf32(n),e.sane=1,e.back=-1,N):U}function o(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,a(t)):U}function h(t,e){var r,i;return t&&t.state?(i=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=s.wsize?(I.arraySet(s.window,e,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i<(n=s.wsize-s.wnext)&&(n=i),I.arraySet(s.window,e,r-i,n,s.wnext),(i-=n)?(I.arraySet(s.window,e,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,r.check=B(r.check,E,2,0),l=u=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&u)){t.msg="unknown compression method",r.mode=30;break}if(l-=4,k=8+(15&(u>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0)),l=u=0,r.mode=3;case 3:for(;l<32;){if(0===o)break t;o--,u+=i[s++]<>>8&255,E[2]=u>>>16&255,E[3]=u>>>24&255,r.check=B(r.check,E,4,0)),l=u=0,r.mode=4;case 4:for(;l<16;){if(0===o)break t;o--,u+=i[s++]<>8),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0)),l=u=0,r.mode=5;case 5:if(1024&r.flags){for(;l<16;){if(0===o)break t;o--,u+=i[s++]<>>8&255,r.check=B(r.check,E,2,0)),l=u=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(o<(c=r.length)&&(c=o),c&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),I.arraySet(r.head.extra,i,s,c,k)),512&r.flags&&(r.check=B(r.check,i,c,s)),o-=c,s+=c,r.length-=c),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===o)break t;for(c=0;k=i[s+c++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k)),k&&c>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;l<32;){if(0===o)break t;o--,u+=i[s++]<>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===o)break t;o--,u+=i[s++]<>>=1)){case 0:r.mode=14;break;case 1:if(j(r),r.mode=20,6!==e)break;u>>>=2,l-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}u>>>=2,l-=2;break;case 14:for(u>>>=7&l,l-=7&l;l<32;){if(0===o)break t;o--,u+=i[s++]<>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&u,l=u=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(c=r.length){if(o>>=5,l-=5,r.ndist=1+(31&u),u>>>=5,l-=5,r.ncode=4+(15&u),u>>>=4,l-=4,286>>=3,l-=3}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},x=T(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,x){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break t;o--,u+=i[s++]<>>=_,l-=_,r.lens[r.have++]=b;else{if(16===b){for(z=_+2;l>>=_,l-=_,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}k=r.lens[r.have-1],c=3+(3&u),u>>>=2,l-=2}else if(17===b){for(z=_+3;l>>=_)),u>>>=3,l-=3}else{for(z=_+7;l>>=_)),u>>>=7,l-=7}if(r.have+c>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;c--;)r.lens[r.have++]=k}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,S={bits:r.lenbits},x=T(D,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,x){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},x=T(F,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,x){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=o&&258<=h){t.next_out=a,t.avail_out=h,t.next_in=s,t.avail_in=o,r.hold=u,r.bits=l,R(t,d),a=t.next_out,n=t.output,h=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,u=r.hold,l=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;g=(C=r.lencode[u&(1<>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break t;o--,u+=i[s++]<>v)])>>>16&255,b=65535&C,!(v+(_=C>>>24)<=l);){if(0===o)break t;o--,u+=i[s++]<>>=v,l-=v,r.back+=v}if(u>>>=_,l-=_,r.back+=_,r.length=b,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=12;break}if(64&g){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&g,r.mode=22;case 22:if(r.extra){for(z=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;g=(C=r.distcode[u&(1<>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break t;o--,u+=i[s++]<>v)])>>>16&255,b=65535&C,!(v+(_=C>>>24)<=l);){if(0===o)break t;o--,u+=i[s++]<>>=v,l-=v,r.back+=v}if(u>>>=_,l-=_,r.back+=_,64&g){t.msg="invalid distance code",r.mode=30;break}r.offset=b,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(z=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===h)break t;if(c=d-h,r.offset>c){if((c=r.offset-c)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}p=c>r.wnext?(c-=r.wnext,r.wsize-c):r.wnext-c,c>r.length&&(c=r.length),m=r.window}else m=n,p=a-r.offset,c=r.length;for(hc?(m=R[T+a[v]],A[I+a[v]]):(m=96,0),h=1<>S)+(u-=h)]=p<<24|m<<16|_|0,0!==u;);for(h=1<>=1;if(0!==h?(E&=h-1,E+=h):E=0,v++,0==--O[b]){if(b===w)break;b=e[r+a[v]]}if(k>>7)]}function x(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function S(t,e,r){t.bi_valid>n-r?(t.bi_buf|=e<>n-t.bi_valid,t.bi_valid+=r-n):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function E(t,e,r){var i,n,s=new Array(_+1),a=0;for(i=1;i<=_;i++)s[i]=a=a+r[i-1]<<1;for(n=0;n<=e;n++){var o=t[2*n+1];0!==o&&(t[2*n]=C(s[o]++,o))}}function A(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function I(t){8>1;1<=r;r--)B(t,s,r);for(n=h;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],B(t,s,1),i=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=i,s[2*n]=s[2*r]+s[2*i],t.depth[n]=(t.depth[r]>=t.depth[i]?t.depth[r]:t.depth[i])+1,s[2*r+1]=s[2*i+1]=n,t.heap[1]=n++,B(t,s,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,i,n,s,a,o,h=e.dyn_tree,u=e.max_code,l=e.stat_desc.static_tree,f=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,m=0;for(s=0;s<=_;s++)t.bl_count[s]=0;for(h[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)p<(s=h[2*h[2*(i=t.heap[r])+1]+1]+1)&&(s=p,m++),h[2*i+1]=s,u>=7;i<30;i++)for(y[i]=n<<7,t=0;t<1<>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),T(t,t.l_desc),T(t,t.d_desc),a=function(t){var e;for(D(t,t.dyn_ltree,t.l_desc.max_code),D(t,t.dyn_dtree,t.d_desc.max_code),T(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),n=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=n&&(n=s)):n=s=r+5,r+4<=n&&-1!==e?U(t,e,r,i):4===t.strategy||s===n?(S(t,2+(i?1:0),3),R(t,f,d)):(S(t,4+(i?1:0),3),function(t,e,r,i){var n;for(S(t,e-257,5),S(t,r-1,5),S(t,i-4,4),n=0;n>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(p[r]+256+1)]++,t.dyn_dtree[2*k(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){var e;S(t,2,3),z(t,256,f),16===(e=t).bi_valid?(x(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":41}],53:[function(t,e,r){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){"use strict";e.exports="function"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}); +}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{}]},{},[1])(1) +}); \ No newline at end of file diff --git a/docs/jquery/jszip/dist/jszip.min.js b/docs/jquery/jszip/dist/jszip.min.js new file mode 100644 index 0000000..c6ae9ad --- /dev/null +++ b/docs/jquery/jszip/dist/jszip.min.js @@ -0,0 +1,13 @@ +/*! + +JSZip v3.7.1 - A JavaScript class for generating and reading zip files + + +(c) 2009-2016 Stuart Knightley +Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown. + +JSZip uses the library pako released under the MIT license : +https://github.com/nodeca/pako/blob/master/LICENSE +*/ + +!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).JSZip=e()}}(function(){return function s(a,o,h){function u(r,e){if(!o[r]){if(!a[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(l)return l(r,!0);var n=new Error("Cannot find module '"+r+"'");throw n.code="MODULE_NOT_FOUND",n}var i=o[r]={exports:{}};a[r][0].call(i.exports,function(e){var t=a[r][1][e];return u(t||e)},i,i.exports,s,a,o,h)}return o[r].exports}for(var l="function"==typeof require&&require,e=0;e>2,s=(3&t)<<4|r>>4,a=1>6:64,o=2>4,r=(15&i)<<4|(s=p.indexOf(e.charAt(o++)))>>2,n=(3&s)<<6|(a=p.indexOf(e.charAt(o++))),u[h++]=t,64!==s&&(u[h++]=r),64!==a&&(u[h++]=n);return u}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var n=e("./external"),i=e("./stream/DataWorker"),s=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function o(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}o.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,r){return e.pipe(new s).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var n=e("./utils"),a=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r){var n=a,i=0+r;e^=-1;for(var s=0;s>>8^n[255&(e^t[s])];return-1^e}(0|t,e,e.length):function(e,t,r){var n=a,i=0+r;e^=-1;for(var s=0;s>>8^n[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var n;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),s=e("./utils"),a=e("./stream/GenericWorker"),o=n?"uint8array":"array";function h(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",s.inherits(h,a),h.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,e.data),!1)},h.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},r.compressWorker=function(e){return new h("Deflate",e)},r.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function I(e,t){var r,n="";for(r=0;r>>=8;return n}function i(e,t,r,n,i,s){var a,o,h=e.file,u=e.compression,l=s!==B.utf8encode,f=O.transformTo("string",s(h.name)),d=O.transformTo("string",B.utf8encode(h.name)),c=h.comment,p=O.transformTo("string",s(c)),m=O.transformTo("string",B.utf8encode(c)),_=d.length!==h.name.length,g=m.length!==c.length,b="",v="",y="",w=h.dir,k=h.date,x={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(x.crc32=e.crc32,x.compressedSize=e.compressedSize,x.uncompressedSize=e.uncompressedSize);var S=0;t&&(S|=8),l||!_&&!g||(S|=2048);var z,C=0,E=0;w&&(C|=16),"UNIX"===i?(E=798,C|=((z=h.unixPermissions)||(z=w?16893:33204),(65535&z)<<16)):(E=20,C|=63&(h.dosPermissions||0)),a=k.getUTCHours(),a<<=6,a|=k.getUTCMinutes(),a<<=5,a|=k.getUTCSeconds()/2,o=k.getUTCFullYear()-1980,o<<=4,o|=k.getUTCMonth()+1,o<<=5,o|=k.getUTCDate(),_&&(b+="up"+I((v=I(1,1)+I(R(f),4)+d).length,2)+v),g&&(b+="uc"+I((y=I(1,1)+I(R(p),4)+m).length,2)+y);var A="";return A+="\n\0",A+=I(S,2),A+=u.magic,A+=I(a,2),A+=I(o,2),A+=I(x.crc32,4),A+=I(x.compressedSize,4),A+=I(x.uncompressedSize,4),A+=I(f.length,2),A+=I(b.length,2),{fileRecord:T.LOCAL_FILE_HEADER+A+f+b,dirRecord:T.CENTRAL_FILE_HEADER+I(E,2)+A+I(p.length,2)+"\0\0\0\0"+I(C,4)+I(n,4)+f+b+p}}var O=e("../utils"),s=e("../stream/GenericWorker"),B=e("../utf8"),R=e("../crc32"),T=e("../signature");function n(e,t,r,n){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}O.inherits(n,s),n.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,s.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},n.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},n.prototype.closedSource=function(e){this.accumulate=!1;var t,r=this.streamFiles&&!e.file.dir,n=i(e,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),r)this.push({data:(t=e,T.DATA_DESCRIPTOR+I(t.crc32,4)+I(t.compressedSize,4)+I(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../support"),s=e("./ArrayReader"),a=e("./StringReader"),o=e("./NodeBufferReader"),h=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new o(e):i.uint8array?new h(n.transformTo("uint8array",e)):new s(n.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../utils");function s(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(s,n),s.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../crc32");function s(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(s,n),s.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function s(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(s,i),s.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function s(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(s,i),s.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r "+e:e}},t.exports=n},{}],29:[function(e,t,r){"use strict";var u=e("../utils"),i=e("./ConvertWorker"),s=e("./GenericWorker"),l=e("../base64"),n=e("../support"),a=e("../external"),o=null;if(n.nodestream)try{o=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function h(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=r,u.checkSupport(n),this._worker=e.pipe(new i(n)),e.lock()}catch(e){this._worker=new s("error"),this._worker.error(e)}}h.prototype={accumulate:function(e){return o=this,h=e,new a.Promise(function(t,r){var n=[],i=o._internalType,s=o._outputType,a=o._mimeType;o.on("data",function(e,t){n.push(e),h&&h(t)}).on("error",function(e){n=[],r(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return u.newBlob(u.transformTo("arraybuffer",t),r);case"base64":return l.encode(t);default:return u.transformTo(e,t)}}(s,function(e,t){var r,n=0,i=null,s=0;for(r=0;r>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t}(e)},s.utf8decode=function(e){return h.nodebuffer?o.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,n,i,s=e.length,a=new Array(2*s);for(t=r=0;t>10&1023,a[r++]=56320|1023&n)}return a.length!==r&&(a.subarray?a=a.subarray(0,r):a.length=r),o.applyFromCharCode(a)}(e=o.transformTo(h.uint8array?"uint8array":"array",e))},o.inherits(a,n),a.prototype.processChunk=function(e){var t=o.transformTo(h.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(h.uint8array){var r=t;(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var n=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+u[e[r]]>t?r:t}(t),i=t;n!==t.length&&(h.uint8array?(i=t.subarray(0,n),this.leftOver=t.subarray(n,t.length)):(i=t.slice(0,n),this.leftOver=t.slice(n,t.length))),this.push({data:s.utf8decode(i),meta:e.meta})},a.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=a,o.inherits(l,n),l.prototype.processChunk=function(e){this.push({data:s.utf8encode(e.data),meta:e.meta})},s.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,o){"use strict";var h=e("./support"),u=e("./base64"),r=e("./nodejsUtils"),n=e("set-immediate-shim"),l=e("./external");function i(e){return e}function f(e,t){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new h.Buf8(e.length),r=0,n=t.length;r>10&1023,o[n++]=56320|1023&i)}return l(o,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+u[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){for(var i=65535&e|0,s=e>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,n){var i=o,s=n+r;e^=-1;for(var a=n;a>>8^i[255&(e^t[a])];return-1^e}},{}],46:[function(e,t,r){"use strict";var h,d=e("../utils/common"),u=e("./trees"),c=e("./adler32"),p=e("./crc32"),n=e("./messages"),l=0,f=0,m=-2,i=2,_=8,s=286,a=30,o=19,g=2*s+1,b=15,v=3,y=258,w=y+v+1,k=42,x=113;function S(e,t){return e.msg=n[t],t}function z(e){return(e<<1)-(4e.avail_out&&(r=e.avail_out),0!==r&&(d.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function A(e,t){u._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,E(e.strm)}function I(e,t){e.pending_buf[e.pending++]=t}function O(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function B(e,t){var r,n,i=e.max_chain_length,s=e.strstart,a=e.prev_length,o=e.nice_match,h=e.strstart>e.w_size-w?e.strstart-(e.w_size-w):0,u=e.window,l=e.w_mask,f=e.prev,d=e.strstart+y,c=u[s+a-1],p=u[s+a];e.prev_length>=e.good_match&&(i>>=2),o>e.lookahead&&(o=e.lookahead);do{if(u[(r=t)+a]===p&&u[r+a-1]===c&&u[r]===u[s]&&u[++r]===u[s+1]){s+=2,r++;do{}while(u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&sh&&0!=--i);return a<=e.lookahead?a:e.lookahead}function R(e){var t,r,n,i,s,a,o,h,u,l,f=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-w)){for(d.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=r=e.hash_size;n=e.head[--t],e.head[t]=f<=n?n-f:0,--r;);for(t=r=f;n=e.prev[--t],e.prev[t]=f<=n?n-f:0,--r;);i+=f}if(0===e.strm.avail_in)break;if(a=e.strm,o=e.window,h=e.strstart+e.lookahead,l=void 0,(u=i)<(l=a.avail_in)&&(l=u),r=0===l?0:(a.avail_in-=l,d.arraySet(o,a.input,a.next_in,l,h),1===a.state.wrap?a.adler=c(a.adler,o,l,h):2===a.state.wrap&&(a.adler=p(a.adler,o,l,h)),a.next_in+=l,a.total_in+=l,l),e.lookahead+=r,e.lookahead+e.insert>=v)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<=v&&(e.ins_h=(e.ins_h<=v)if(n=u._tr_tally(e,e.strstart-e.match_start,e.match_length-v),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=v){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=v&&(e.ins_h=(e.ins_h<=v&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-v,n=u._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-v),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(R(e),0===e.lookahead&&t===l)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,A(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-w&&(A(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(A(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(A(e,!1),e.strm.avail_out),1)}),new F(4,4,8,4,T),new F(4,5,16,8,T),new F(4,6,32,32,T),new F(4,4,16,16,D),new F(8,16,32,32,D),new F(8,16,128,128,D),new F(8,32,128,256,D),new F(32,128,258,1024,D),new F(32,258,258,4096,D)],r.deflateInit=function(e,t){return L(e,t,_,15,8,0)},r.deflateInit2=L,r.deflateReset=P,r.deflateResetKeep=U,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?m:(e.state.gzhead=t,f):m},r.deflate=function(e,t){var r,n,i,s;if(!e||!e.state||5>8&255),I(n,n.gzhead.time>>16&255),I(n,n.gzhead.time>>24&255),I(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),I(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(I(n,255&n.gzhead.extra.length),I(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=p(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(I(n,0),I(n,0),I(n,0),I(n,0),I(n,0),I(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),I(n,3),n.status=x);else{var a=_+(n.w_bits-8<<4)<<8;a|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),a+=31-a%31,n.status=x,O(n,a),0!==n.strstart&&(O(n,e.adler>>>16),O(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),E(e),i=n.pending,n.pending!==n.pending_buf_size));)I(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),E(e),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}s=n.gzindexi&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),0===s&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),E(e),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}s=n.gzindexi&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),0===s&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&E(e),n.pending+2<=n.pending_buf_size&&(I(n,255&e.adler),I(n,e.adler>>8&255),e.adler=0,n.status=x)):n.status=x),0!==n.pending){if(E(e),0===e.avail_out)return n.last_flush=-1,f}else if(0===e.avail_in&&z(t)<=z(r)&&4!==t)return S(e,-5);if(666===n.status&&0!==e.avail_in)return S(e,-5);if(0!==e.avail_in||0!==n.lookahead||t!==l&&666!==n.status){var o=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(R(e),0===e.lookahead)){if(t===l)return 1;break}if(e.match_length=0,r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(A(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(A(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(A(e,!1),0===e.strm.avail_out)?1:2}(n,t):3===n.strategy?function(e,t){for(var r,n,i,s,a=e.window;;){if(e.lookahead<=y){if(R(e),e.lookahead<=y&&t===l)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=v&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=v?(r=u._tr_tally(e,1,e.match_length-v),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(A(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(A(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(A(e,!1),0===e.strm.avail_out)?1:2}(n,t):h[n.level].func(n,t);if(3!==o&&4!==o||(n.status=666),1===o||3===o)return 0===e.avail_out&&(n.last_flush=-1),f;if(2===o&&(1===t?u._tr_align(n):5!==t&&(u._tr_stored_block(n,0,0,!1),3===t&&(C(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),E(e),0===e.avail_out))return n.last_flush=-1,f}return 4!==t?f:n.wrap<=0?1:(2===n.wrap?(I(n,255&e.adler),I(n,e.adler>>8&255),I(n,e.adler>>16&255),I(n,e.adler>>24&255),I(n,255&e.total_in),I(n,e.total_in>>8&255),I(n,e.total_in>>16&255),I(n,e.total_in>>24&255)):(O(n,e.adler>>>16),O(n,65535&e.adler)),E(e),0=r.w_size&&(0===s&&(C(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new d.Buf8(r.w_size),d.arraySet(u,t,l-r.w_size,r.w_size,0),t=u,l=r.w_size),a=e.avail_in,o=e.next_in,h=e.input,e.avail_in=l,e.next_in=0,e.input=t,R(r);r.lookahead>=v;){for(n=r.strstart,i=r.lookahead-(v-1);r.ins_h=(r.ins_h<>>=y=v>>>24,p-=y,0==(y=v>>>16&255))C[s++]=65535&v;else{if(!(16&y)){if(0==(64&y)){v=m[(65535&v)+(c&(1<>>=y,p-=y),p<15&&(c+=z[n++]<>>=y=v>>>24,p-=y,!(16&(y=v>>>16&255))){if(0==(64&y)){v=_[(65535&v)+(c&(1<>>=y,p-=y,(y=s-a)>3,c&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=s,e.avail_in=n>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function s(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new I.Buf16(320),this.work=new I.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function a(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=P,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new I.Buf32(n),t.distcode=t.distdyn=new I.Buf32(i),t.sane=1,t.back=-1,N):U}function o(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,a(e)):U}function h(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=s.wsize?(I.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(n<(i=s.wsize-s.wnext)&&(i=n),I.arraySet(s.window,t,r-n,i,s.wnext),(n-=i)?(I.arraySet(s.window,t,r-n,n,0),s.wnext=n,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,r.check=B(r.check,E,2,0),l=u=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&u)){e.msg="unknown compression method",r.mode=30;break}if(l-=4,k=8+(15&(u>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0)),l=u=0,r.mode=3;case 3:for(;l<32;){if(0===o)break e;o--,u+=n[s++]<>>8&255,E[2]=u>>>16&255,E[3]=u>>>24&255,r.check=B(r.check,E,4,0)),l=u=0,r.mode=4;case 4:for(;l<16;){if(0===o)break e;o--,u+=n[s++]<>8),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0)),l=u=0,r.mode=5;case 5:if(1024&r.flags){for(;l<16;){if(0===o)break e;o--,u+=n[s++]<>>8&255,r.check=B(r.check,E,2,0)),l=u=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(o<(c=r.length)&&(c=o),c&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),I.arraySet(r.head.extra,n,s,c,k)),512&r.flags&&(r.check=B(r.check,n,c,s)),o-=c,s+=c,r.length-=c),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===o)break e;for(c=0;k=n[s+c++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k)),k&&c>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;l<32;){if(0===o)break e;o--,u+=n[s++]<>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===o)break e;o--,u+=n[s++]<>>=1)){case 0:r.mode=14;break;case 1:if(j(r),r.mode=20,6!==t)break;u>>>=2,l-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}u>>>=2,l-=2;break;case 14:for(u>>>=7&l,l-=7&l;l<32;){if(0===o)break e;o--,u+=n[s++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&u,l=u=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(c=r.length){if(o>>=5,l-=5,r.ndist=1+(31&u),u>>>=5,l-=5,r.ncode=4+(15&u),u>>>=4,l-=4,286>>=3,l-=3}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},x=T(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,x){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>>=_,l-=_,r.lens[r.have++]=b;else{if(16===b){for(z=_+2;l>>=_,l-=_,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}k=r.lens[r.have-1],c=3+(3&u),u>>>=2,l-=2}else if(17===b){for(z=_+3;l>>=_)),u>>>=3,l-=3}else{for(z=_+7;l>>=_)),u>>>=7,l-=7}if(r.have+c>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;c--;)r.lens[r.have++]=k}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,S={bits:r.lenbits},x=T(D,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,x){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},x=T(F,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,x){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=o&&258<=h){e.next_out=a,e.avail_out=h,e.next_in=s,e.avail_in=o,r.hold=u,r.bits=l,R(e,d),a=e.next_out,i=e.output,h=e.avail_out,s=e.next_in,n=e.input,o=e.avail_in,u=r.hold,l=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;g=(C=r.lencode[u&(1<>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>v)])>>>16&255,b=65535&C,!(v+(_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>>=v,l-=v,r.back+=v}if(u>>>=_,l-=_,r.back+=_,r.length=b,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=12;break}if(64&g){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&g,r.mode=22;case 22:if(r.extra){for(z=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;g=(C=r.distcode[u&(1<>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>v)])>>>16&255,b=65535&C,!(v+(_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>>=v,l-=v,r.back+=v}if(u>>>=_,l-=_,r.back+=_,64&g){e.msg="invalid distance code",r.mode=30;break}r.offset=b,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(z=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===h)break e;if(c=d-h,r.offset>c){if((c=r.offset-c)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}p=c>r.wnext?(c-=r.wnext,r.wsize-c):r.wnext-c,c>r.length&&(c=r.length),m=r.window}else m=i,p=a-r.offset,c=r.length;for(hc?(m=R[T+a[v]],A[I+a[v]]):(m=96,0),h=1<>S)+(u-=h)]=p<<24|m<<16|_|0,0!==u;);for(h=1<>=1;if(0!==h?(E&=h-1,E+=h):E=0,v++,0==--O[b]){if(b===w)break;b=t[r+a[v]]}if(k>>7)]}function x(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function S(e,t,r){e.bi_valid>i-r?(e.bi_buf|=t<>i-e.bi_valid,e.bi_valid+=r-i):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function E(e,t,r){var n,i,s=new Array(_+1),a=0;for(n=1;n<=_;n++)s[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var o=e[2*i+1];0!==o&&(e[2*i]=C(s[o]++,o))}}function A(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function I(e){8>1;1<=r;r--)B(e,s,r);for(i=h;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],B(e,s,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,s[2*i]=s[2*r]+s[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,s[2*r+1]=s[2*n+1]=i,e.heap[1]=i++,B(e,s,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,s,a,o,h=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,c=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(s=0;s<=_;s++)e.bl_count[s]=0;for(h[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)p<(s=h[2*h[2*(n=e.heap[r])+1]+1]+1)&&(s=p,m++),h[2*n+1]=s,u>=7;n<30;n++)for(y[n]=i<<7,e=0;e<1<>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),T(e,e.l_desc),T(e,e.d_desc),a=function(e){var t;for(D(e,e.dyn_ltree,e.l_desc.max_code),D(e,e.dyn_dtree,e.d_desc.max_code),T(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=i&&(i=s)):i=s=r+5,r+4<=i&&-1!==t?U(e,t,r,n):4===e.strategy||s===i?(S(e,2+(n?1:0),3),R(e,f,d)):(S(e,4+(n?1:0),3),function(e,t,r,n){var i;for(S(e,t-257,5),S(e,r-1,5),S(e,n-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(p[r]+256+1)]++,e.dyn_dtree[2*k(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){var t;S(e,2,3),z(e,256,f),16===(t=e).bi_valid?(x(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){"use strict";t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)})}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}); \ No newline at end of file diff --git a/docs/member-search-index.js b/docs/member-search-index.js new file mode 100644 index 0000000..cfbce1d --- /dev/null +++ b/docs/member-search-index.js @@ -0,0 +1 @@ +memberSearchIndex = [{"p":"ec.gob.firmadigital.servicio","c":"ServicioDocumento","l":"actualizarDocumentos(String, Map, String, String)","url":"actualizarDocumentos(java.lang.String,java.util.Map,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioDocumentoRest","l":"actualizarDocumentos(String, String, String)","url":"actualizarDocumentos(java.lang.String,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.token","c":"TokenTimeout","l":"addHours(Date, int)","url":"addHours(java.util.Date,int)"},{"p":"ec.gob.firmadigital.servicio.token","c":"TokenTimeout","l":"addMinutes(Date, int)","url":"addMinutes(java.util.Date,int)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioSistemaTransversal","l":"almacenarDocumento(String, String, String, String, URL)","url":"almacenarDocumento(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.net.URL)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioSistemaTransversal","l":"almacenarDocumentoREST(Documento, String, String, String, URL, String)","url":"almacenarDocumentoREST(io.rubrica.certificate.to.Documento,java.lang.String,java.lang.String,java.lang.String,java.net.URL,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"ApiEstadisticaException","l":"ApiEstadisticaException()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"ApiEstadisticaException","l":"ApiEstadisticaException(String)","url":"%3Cinit%3E(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"ApiUrl","l":"ApiUrl()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.model","c":"ApiUrl","l":"ApiUrl(String, String)","url":"%3Cinit%3E(java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"ApiUrlNoEncontradoException","l":"ApiUrlNoEncontradoException()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"ApiUrlNoEncontradoException","l":"ApiUrlNoEncontradoException(String)","url":"%3Cinit%3E(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioAppValidarCertificadoDigital","l":"appValidarCertificadoDigital(String, String, String)","url":"appValidarCertificadoDigital(java.lang.String,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.util","c":"Base64InvalidoException","l":"Base64InvalidoException(IllegalArgumentException)","url":"%3Cinit%3E(java.lang.IllegalArgumentException)"},{"p":"ec.gob.firmadigital.servicio.util","c":"Base64Util","l":"Base64Util()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioEliminacionDocumento","l":"borrarDocumentos()"},{"p":"ec.gob.firmadigital.servicio.util","c":"JsonProcessor","l":"buildJson(Map, String)","url":"buildJson(java.util.Map,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.util","c":"JsonProcessor","l":"buildJsonApi(String, String)","url":"buildJsonApi(java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioSistemaTransversal","l":"buscarApiKeyRest(String)","url":"buscarApiKeyRest(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioEstadisticaDocumentosFirmados","l":"buscarPorFechaDesdeFechaHasta(String, String, String)","url":"buscarPorFechaDesdeFechaHasta(java.lang.String,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioEstadisticaUsuarios","l":"buscarPorFechaDesdeFechaHasta(String, String, String)","url":"buscarPorFechaDesdeFechaHasta(java.lang.String,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioEstadisticaDocumentosFirmadosRest","l":"buscarPorFechaDesdeFechaHasta(String)","url":"buscarPorFechaDesdeFechaHasta(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioEstadisticaUsuariosRest","l":"buscarPorFechaDesdeFechaHasta(String)","url":"buscarPorFechaDesdeFechaHasta(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioApiUrl","l":"buscarPorUrl(String, String)","url":"buscarPorUrl(java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioSistemaTransversal","l":"buscarSistema(String)","url":"buscarSistema(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioApiUrlRest","l":"buscarUrl(String)","url":"buscarUrl(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioSistemaTransversal","l":"buscarUrlSistema(String)","url":"buscarUrlSistema(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioVersionRest","l":"buscarVersion(String)","url":"buscarVersion(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"CedulaInvalidaException","l":"CedulaInvalidaException()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"CedulaInvalidaException","l":"CedulaInvalidaException(String)","url":"%3Cinit%3E(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"CertificadoRevocadoException","l":"CertificadoRevocadoException()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"CertificadoRevocadoException","l":"CertificadoRevocadoException(String)","url":"%3Cinit%3E(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.token.jwt","c":"ServicioTokenJwt","l":"codificarLlaveSecreta(SecretKey)","url":"codificarLlaveSecreta(javax.crypto.SecretKey)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioDocumento","l":"crearDocumentos(String, String, Map)","url":"crearDocumentos(java.lang.String,java.lang.String,java.util.Map)"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioDocumentoRest","l":"crearDocumentos(String, String)","url":"crearDocumentos(java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.util","c":"Base64Util","l":"decode(String)","url":"decode(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.token.jwt","c":"ServicioTokenJwt","l":"decodificarLlaveSecreta(String)","url":"decodificarLlaveSecreta(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.token","c":"TokenTimeout","l":"DEFAULT_TIMEOUT_HOURS"},{"p":"ec.gob.firmadigital.servicio.token","c":"TokenTimeout","l":"DEFAULT_TIMEOUT_MINUTES"},{"p":"ec.gob.firmadigital.servicio.model","c":"Documento","l":"Documento()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Documento","l":"Documento(String, String, Date, String, byte[])","url":"%3Cinit%3E(java.lang.String,java.lang.String,java.util.Date,java.lang.String,byte[])"},{"p":"ec.gob.firmadigital.servicio","c":"DocumentoNoExisteException","l":"DocumentoNoExisteException()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"DocumentoNoExisteException","l":"DocumentoNoExisteException(String, Throwable)","url":"%3Cinit%3E(java.lang.String,java.lang.Throwable)"},{"p":"ec.gob.firmadigital.servicio","c":"DocumentoNoExisteException","l":"DocumentoNoExisteException(String)","url":"%3Cinit%3E(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"DocumentoNoExisteException","l":"DocumentoNoExisteException(Throwable)","url":"%3Cinit%3E(java.lang.Throwable)"},{"p":"ec.gob.firmadigital.servicio.util","c":"Base64Util","l":"encode(byte[])"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log.Severidad","l":"ERROR"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioLog","l":"error(String, String)","url":"error(java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.crl","c":"ServicioConsultaCrl","l":"fechaRevocado(BigInteger)","url":"fechaRevocado(java.math.BigInteger)"},{"p":"ec.gob.firmadigital.servicio.util","c":"FileUtil","l":"FileUtil()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.util","c":"FirmaDigital","l":"FirmaDigital()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioAppFirmarDocumento","l":"firmarDocumento(String, String, String, String, String, String, String, String, String, String, String)","url":"firmarDocumento(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioAppFirmarDocumentoRest","l":"firmarDocumento(String, String, String, String, String)","url":"firmarDocumento(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioAppFirmarDocumentoTransversalRest","l":"firmarDocumentoTransversal(String, String, String, String)","url":"firmarDocumentoTransversal(java.lang.String,java.lang.String,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.util","c":"FirmaDigital","l":"firmarPDF(KeyStore, String, byte[], char[], Properties, String, String)","url":"firmarPDF(java.security.KeyStore,java.lang.String,byte[],char[],java.util.Properties,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioAppFirmarDocumentoTransversal","l":"firmarTransversal(String, String, String, String, String, String, String, String, String, String, String, String, String, boolean, boolean, String)","url":"firmarTransversal(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,boolean,boolean,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.util","c":"FirmaDigital","l":"firmarXML(KeyStore, String, byte[], char[], Properties, String, String)","url":"firmarXML(java.security.KeyStore,java.lang.String,byte[],char[],java.util.Properties,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.token.jwt","c":"ServicioTokenJwt","l":"generarLlaveSecreta()"},{"p":"ec.gob.firmadigital.servicio.token","c":"ServicioToken","l":"generarToken(Map, Date)","url":"generarToken(java.util.Map,java.util.Date)"},{"p":"ec.gob.firmadigital.servicio.token.jwt","c":"ServicioTokenJwt","l":"generarToken(Map, Date)","url":"generarToken(java.util.Map,java.util.Date)"},{"p":"ec.gob.firmadigital.servicio.token","c":"ServicioToken","l":"generarToken(Map)","url":"generarToken(java.util.Map)"},{"p":"ec.gob.firmadigital.servicio.token.jwt","c":"ServicioTokenJwt","l":"generarToken(Map)","url":"generarToken(java.util.Map)"},{"p":"ec.gob.firmadigital.servicio.util","c":"Pkcs12","l":"getAlias(KeyStore)","url":"getAlias(java.security.KeyStore)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Sistema","l":"getApiKey()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Sistema","l":"getApiKeyRest()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"getAplicacion()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Documento","l":"getArchivo()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"getCategoria()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Documento","l":"getCedula()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"getCedula()"},{"p":"ec.gob.firmadigital.servicio.util","c":"PropertiesUtils","l":"getConfig()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"getDescripcion()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Sistema","l":"getDescripcion()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"getDescripcion()"},{"p":"ec.gob.firmadigital.servicio.util","c":"PropertiesUtils","l":"getDocumentoKB()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Documento","l":"getFecha()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"getFecha()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"getFechaLiberacion()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"getFechaObsoleto()"},{"p":"ec.gob.firmadigital.servicio.model","c":"ApiUrl","l":"getId()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Documento","l":"getId()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"getId()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Sistema","l":"getId()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"getId()"},{"p":"ec.gob.firmadigital.servicio.util","c":"Pkcs12","l":"getKeyStore(String, String)","url":"getKeyStore(java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.util","c":"FileUtil","l":"getMimeType(byte[])"},{"p":"ec.gob.firmadigital.servicio.model","c":"ApiUrl","l":"getNombre()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Documento","l":"getNombre()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Sistema","l":"getNombre()"},{"p":"ec.gob.firmadigital.servicio.pdf","c":"ServicioValidacionPdf","l":"getNombre(byte[])"},{"p":"ec.gob.firmadigital.servicio.util","c":"ProtocoloFirmaDigital","l":"getOperacion()"},{"p":"ec.gob.firmadigital.servicio.util","c":"ProtocoloFirmaDigital","l":"getParametros()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"getSeveridad()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"getSha()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Documento","l":"getSistema()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"getSistema()"},{"p":"ec.gob.firmadigital.servicio.util","c":"ProtocoloFirmaDigital","l":"getSistema()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"getSistemaOperativo()"},{"p":"ec.gob.firmadigital.servicio.model","c":"ApiUrl","l":"getStatus()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"getStatus()"},{"p":"ec.gob.firmadigital.servicio.model","c":"ApiUrl","l":"getUrl()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Sistema","l":"getURL()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"getVersion()"},{"p":"ec.gob.firmadigital.servicio.util","c":"FileUtil","l":"hashMD5(String)","url":"hashMD5(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.crl","c":"ServicioDescargaCrl","l":"importarCrls()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log.Severidad","l":"INFO"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioLog","l":"info(String, String)","url":"info(java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioEliminacionDocumento","l":"init()"},{"p":"ec.gob.firmadigital.servicio.crl","c":"ServicioDescargaCrl","l":"init()"},{"p":"ec.gob.firmadigital.servicio.token.jwt","c":"ServicioTokenJwt","l":"init()"},{"p":"ec.gob.firmadigital.servicio.token","c":"TokenTimeout","l":"IS_PRODUCTION"},{"p":"ec.gob.firmadigital.servicio.crl","c":"ServicioConsultaCrl","l":"isRevocado(BigInteger)","url":"isRevocado(java.math.BigInteger)"},{"p":"ec.gob.firmadigital.servicio.rest","c":"JAXRSConfiguration","l":"JAXRSConfiguration()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.util","c":"JsonProcessor","l":"JsonProcessor()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"Log()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"Log(Log.Severidad, String, String, String, String)","url":"%3Cinit%3E(ec.gob.firmadigital.servicio.model.Log.Severidad,java.lang.String,java.lang.String,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioLog","l":"log(Log.Severidad, String, String)","url":"log(ec.gob.firmadigital.servicio.model.Log.Severidad,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"Log(Log.Severidad, String, String)","url":"%3Cinit%3E(ec.gob.firmadigital.servicio.model.Log.Severidad,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.token.jwt","c":"ServicioTokenJwt","l":"main(String[])","url":"main(java.lang.String[])"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioDocumento","l":"obtenerDocumentos(String)","url":"obtenerDocumentos(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioDocumentoRest","l":"obtenerDocumentos(String)","url":"obtenerDocumentos(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.util","c":"JsonProcessor","l":"parseJsonDocumentoFirmado(String)","url":"parseJsonDocumentoFirmado(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.util","c":"JsonProcessor","l":"parseJsonDocumentos(String)","url":"parseJsonDocumentos(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.util","c":"JsonProcessor","l":"parseJsonFechaHora(String)","url":"parseJsonFechaHora(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.token","c":"ServicioToken","l":"parseToken(String)","url":"parseToken(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.token.jwt","c":"ServicioTokenJwt","l":"parseToken(String)","url":"parseToken(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.util","c":"Pkcs12","l":"Pkcs12()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.util","c":"PropertiesUtils","l":"PropertiesUtils()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.util","c":"Propiedades","l":"Propiedades()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.util","c":"Propiedades","l":"propiedades(String, String, String, String, String, String, String, String, String)","url":"propiedades(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.util","c":"ProtocoloFirmaDigital","l":"ProtocoloFirmaDigital(String)","url":"%3Cinit%3E(java.lang.String)"},{"p":"ec.gob.firmadigital.firmaec_app.exceptions","c":"ProtocoloInvalidoException","l":"ProtocoloInvalidoException(String, URISyntaxException)","url":"%3Cinit%3E(java.lang.String,java.net.URISyntaxException)"},{"p":"ec.gob.firmadigital.firmaec_app.exceptions","c":"ProtocoloInvalidoException","l":"ProtocoloInvalidoException(String)","url":"%3Cinit%3E(java.lang.String)"},{"p":"ec.gob.firmadigital.firmaec_app.exceptions","c":"ProtocoloInvalidoException","l":"ProtocoloInvalidoException(URISyntaxException)","url":"%3Cinit%3E(java.net.URISyntaxException)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioApiUrl","l":"ServicioApiUrl()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioApiUrlRest","l":"ServicioApiUrlRest()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioAppFirmarDocumento","l":"ServicioAppFirmarDocumento()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioAppFirmarDocumentoRest","l":"ServicioAppFirmarDocumentoRest()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioAppFirmarDocumentoTransversal","l":"ServicioAppFirmarDocumentoTransversal()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioAppFirmarDocumentoTransversalRest","l":"ServicioAppFirmarDocumentoTransversalRest()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioAppValidarCertificadoDigital","l":"ServicioAppValidarCertificadoDigital()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioAppValidarCertificadoDigitalRest","l":"ServicioAppValidarCertificadoDigitalRest()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioAppVerificarDocumento","l":"ServicioAppVerificarDocumento()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioAppVerificarDocumentoRest","l":"ServicioAppVerificarDocumentoRest()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioCertificadoRest","l":"ServicioCertificadoRest()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.crl","c":"ServicioConsultaCrl","l":"ServicioConsultaCrl()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.crl","c":"ServicioDescargaCrl","l":"ServicioDescargaCrl()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioDocumento","l":"ServicioDocumento()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioDocumentoRest","l":"ServicioDocumentoRest()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioEliminacionDocumento","l":"ServicioEliminacionDocumento()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioEstadisticaDocumentosFirmados","l":"ServicioEstadisticaDocumentosFirmados()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioEstadisticaDocumentosFirmadosRest","l":"ServicioEstadisticaDocumentosFirmadosRest()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioEstadisticaUsuarios","l":"ServicioEstadisticaUsuarios()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioEstadisticaUsuariosRest","l":"ServicioEstadisticaUsuariosRest()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioLog","l":"ServicioLog()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioSistemaTransversal","l":"ServicioSistemaTransversal()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.token.jwt","c":"ServicioTokenJwt","l":"ServicioTokenJwt()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.cms","c":"ServicioValidacionCms","l":"ServicioValidacionCms()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.pdf","c":"ServicioValidacionPdf","l":"ServicioValidacionPdf()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioValidacionPdfRest","l":"ServicioValidacionPdfRest()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.exception","c":"ServicioValidarCertificadoDigitalException","l":"ServicioValidarCertificadoDigitalException()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.exception","c":"ServicioValidarCertificadoDigitalException","l":"ServicioValidarCertificadoDigitalException(String)","url":"%3Cinit%3E(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioVersion","l":"ServicioVersion()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioVersionRest","l":"ServicioVersionRest()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Sistema","l":"setApiKey(String)","url":"setApiKey(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Sistema","l":"setApiKeyRest(String)","url":"setApiKeyRest(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"setAplicacion(String)","url":"setAplicacion(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Documento","l":"setArchivo(byte[])"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"setCategoria(String)","url":"setCategoria(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Documento","l":"setCedula(String)","url":"setCedula(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"setCedula(String)","url":"setCedula(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"setDescripcion(String)","url":"setDescripcion(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Sistema","l":"setDescripcion(String)","url":"setDescripcion(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"setDescripcion(String)","url":"setDescripcion(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Documento","l":"setFecha(Date)","url":"setFecha(java.util.Date)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"setFecha(Date)","url":"setFecha(java.util.Date)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"setFechaLiberacion(Date)","url":"setFechaLiberacion(java.util.Date)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"setFechaObsoleto(Date)","url":"setFechaObsoleto(java.util.Date)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"setId(long)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Sistema","l":"setId(long)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"setId(long)"},{"p":"ec.gob.firmadigital.servicio.model","c":"ApiUrl","l":"setId(Long)","url":"setId(java.lang.Long)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Documento","l":"setId(Long)","url":"setId(java.lang.Long)"},{"p":"ec.gob.firmadigital.servicio.model","c":"ApiUrl","l":"setNombre(String)","url":"setNombre(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Documento","l":"setNombre(String)","url":"setNombre(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Sistema","l":"setNombre(String)","url":"setNombre(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"setSeveridad(Log.Severidad)","url":"setSeveridad(ec.gob.firmadigital.servicio.model.Log.Severidad)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"setSha(String)","url":"setSha(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Documento","l":"setSistema(String)","url":"setSistema(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log","l":"setSistema(String)","url":"setSistema(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"setSistemaOperativo(String)","url":"setSistemaOperativo(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"ApiUrl","l":"setStatus(Boolean)","url":"setStatus(java.lang.Boolean)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"setStatus(Boolean)","url":"setStatus(java.lang.Boolean)"},{"p":"ec.gob.firmadigital.servicio.model","c":"ApiUrl","l":"setUrl(String)","url":"setUrl(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Sistema","l":"setURL(String)","url":"setURL(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"setVersion(String)","url":"setVersion(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Sistema","l":"Sistema()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"SistemaTransversalException","l":"SistemaTransversalException()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"SistemaTransversalException","l":"SistemaTransversalException(String, Throwable)","url":"%3Cinit%3E(java.lang.String,java.lang.Throwable)"},{"p":"ec.gob.firmadigital.servicio","c":"SistemaTransversalException","l":"SistemaTransversalException(String)","url":"%3Cinit%3E(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"SistemaTransversalException","l":"SistemaTransversalException(Throwable)","url":"%3Cinit%3E(java.lang.Throwable)"},{"p":"ec.gob.firmadigital.servicio.token","c":"TokenExpiradoException","l":"TokenExpiradoException()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.token","c":"TokenExpiradoException","l":"TokenExpiradoException(String, Throwable)","url":"%3Cinit%3E(java.lang.String,java.lang.Throwable)"},{"p":"ec.gob.firmadigital.servicio.token","c":"TokenExpiradoException","l":"TokenExpiradoException(String)","url":"%3Cinit%3E(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.token","c":"TokenExpiradoException","l":"TokenExpiradoException(Throwable)","url":"%3Cinit%3E(java.lang.Throwable)"},{"p":"ec.gob.firmadigital.servicio.token","c":"TokenInvalidoException","l":"TokenInvalidoException()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.token","c":"TokenInvalidoException","l":"TokenInvalidoException(String, Throwable)","url":"%3Cinit%3E(java.lang.String,java.lang.Throwable)"},{"p":"ec.gob.firmadigital.servicio.token","c":"TokenInvalidoException","l":"TokenInvalidoException(String)","url":"%3Cinit%3E(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.token","c":"TokenInvalidoException","l":"TokenInvalidoException(Throwable)","url":"%3Cinit%3E(java.lang.Throwable)"},{"p":"ec.gob.firmadigital.servicio.token","c":"TokenTimeout","l":"TokenTimeout()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio.model","c":"ApiUrl","l":"toString()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Documento","l":"toString()"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"toString()"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioCertificadoRest","l":"validarCertificado(BigInteger)","url":"validarCertificado(java.math.BigInteger)"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioAppValidarCertificadoDigitalRest","l":"validarCertificadoDigital(String, String, String)","url":"validarCertificadoDigital(java.lang.String,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioAppVerificarDocumentoRest","l":"validarDocumento(String, String)","url":"validarDocumento(java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioCertificadoRest","l":"validarFechaRevocado(BigInteger)","url":"validarFechaRevocado(java.math.BigInteger)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioVersion","l":"validarVersion(String, String, String, String)","url":"validarVersion(java.lang.String,java.lang.String,java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log.Severidad","l":"valueOf(String)","url":"valueOf(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log.Severidad","l":"values()"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioSistemaTransversal","l":"verificarApiKey(String, String)","url":"verificarApiKey(java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.cms","c":"ServicioValidacionCms","l":"verificarCms(String)","url":"verificarCms(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioAppVerificarDocumento","l":"verificarDocumento(String, String)","url":"verificarDocumento(java.lang.String,java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.pdf","c":"ServicioValidacionPdf","l":"verificarPdf(String)","url":"verificarPdf(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.rest","c":"ServicioValidacionPdfRest","l":"verificarPdf(String)","url":"verificarPdf(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Version","l":"Version()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"VersionException","l":"VersionException()","url":"%3Cinit%3E()"},{"p":"ec.gob.firmadigital.servicio","c":"VersionException","l":"VersionException(String)","url":"%3Cinit%3E(java.lang.String)"},{"p":"ec.gob.firmadigital.servicio.model","c":"Log.Severidad","l":"WARNING"},{"p":"ec.gob.firmadigital.servicio","c":"ServicioLog","l":"warning(String, String)","url":"warning(java.lang.String,java.lang.String)"}] \ No newline at end of file diff --git a/docs/member-search-index.zip b/docs/member-search-index.zip new file mode 100644 index 0000000..982639e Binary files /dev/null and b/docs/member-search-index.zip differ diff --git a/docs/overview-frame.html b/docs/overview-frame.html deleted file mode 100644 index 4b3ddfd..0000000 --- a/docs/overview-frame.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - -Overview List (firmadigital-servicio 2.10.0-SNAPSHOT API) - - - - - - - -

       

      - - diff --git a/docs/overview-summary.html b/docs/overview-summary.html index 2786875..31361c4 100644 --- a/docs/overview-summary.html +++ b/docs/overview-summary.html @@ -1,172 +1,23 @@ - + - - -Overview (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +Generated Documentation (Untitled) + + + + - - +
      - -
      - - - - - - - -
      - - -
      -

      firmadigital-servicio 2.10.0-SNAPSHOT API

      -
      - - -
      - - - - - - - -
      - - -

      Copyright © 2021. All rights reserved.

      +

      index.html

      +
      diff --git a/docs/overview-tree.html b/docs/overview-tree.html index 6ee32f5..3325dc2 100644 --- a/docs/overview-tree.html +++ b/docs/overview-tree.html @@ -1,58 +1,68 @@ - + - - -Class Hierarchy (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +Class Hierarchy + + + + + + + + +var pathtoroot = "./"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
      + +
      +
      +

      Class Hierarchy

      +
      +

      Interface Hierarchy

      +
      +

      Enum Hierarchy

        -
      • java.lang.Object +
      • java.lang.Object
      +
      +
      + diff --git a/docs/package-search-index.js b/docs/package-search-index.js new file mode 100644 index 0000000..42c4bd5 --- /dev/null +++ b/docs/package-search-index.js @@ -0,0 +1 @@ +packageSearchIndex = [{"l":"All Packages","url":"allpackages-index.html"},{"l":"ec.gob.firmadigital.firmaec_app.exceptions"},{"l":"ec.gob.firmadigital.servicio"},{"l":"ec.gob.firmadigital.servicio.cms"},{"l":"ec.gob.firmadigital.servicio.crl"},{"l":"ec.gob.firmadigital.servicio.exception"},{"l":"ec.gob.firmadigital.servicio.model"},{"l":"ec.gob.firmadigital.servicio.pdf"},{"l":"ec.gob.firmadigital.servicio.rest"},{"l":"ec.gob.firmadigital.servicio.token"},{"l":"ec.gob.firmadigital.servicio.token.jwt"},{"l":"ec.gob.firmadigital.servicio.util"}] \ No newline at end of file diff --git a/docs/package-search-index.zip b/docs/package-search-index.zip new file mode 100644 index 0000000..d5c166c Binary files /dev/null and b/docs/package-search-index.zip differ diff --git a/docs/resources/glass.png b/docs/resources/glass.png new file mode 100644 index 0000000..a7f591f Binary files /dev/null and b/docs/resources/glass.png differ diff --git a/docs/resources/x.png b/docs/resources/x.png new file mode 100644 index 0000000..30548a7 Binary files /dev/null and b/docs/resources/x.png differ diff --git a/docs/script.js b/docs/script.js index b346356..41215a5 100644 --- a/docs/script.js +++ b/docs/script.js @@ -1,9 +1,124 @@ -function show(type) -{ +/* + * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. + * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ + +var moduleSearchIndex; +var packageSearchIndex; +var typeSearchIndex; +var memberSearchIndex; +var tagSearchIndex; +function loadScripts(doc, tag) { + createElem(doc, tag, 'jquery/jszip/dist/jszip.js'); + createElem(doc, tag, 'jquery/jszip-utils/dist/jszip-utils.js'); + if (window.navigator.userAgent.indexOf('MSIE ') > 0 || window.navigator.userAgent.indexOf('Trident/') > 0 || + window.navigator.userAgent.indexOf('Edge/') > 0) { + createElem(doc, tag, 'jquery/jszip-utils/dist/jszip-utils-ie.js'); + } + createElem(doc, tag, 'search.js'); + + $.get(pathtoroot + "module-search-index.zip") + .done(function() { + JSZipUtils.getBinaryContent(pathtoroot + "module-search-index.zip", function(e, data) { + JSZip.loadAsync(data).then(function(zip){ + zip.file("module-search-index.json").async("text").then(function(content){ + moduleSearchIndex = JSON.parse(content); + }); + }); + }); + }); + $.get(pathtoroot + "package-search-index.zip") + .done(function() { + JSZipUtils.getBinaryContent(pathtoroot + "package-search-index.zip", function(e, data) { + JSZip.loadAsync(data).then(function(zip){ + zip.file("package-search-index.json").async("text").then(function(content){ + packageSearchIndex = JSON.parse(content); + }); + }); + }); + }); + $.get(pathtoroot + "type-search-index.zip") + .done(function() { + JSZipUtils.getBinaryContent(pathtoroot + "type-search-index.zip", function(e, data) { + JSZip.loadAsync(data).then(function(zip){ + zip.file("type-search-index.json").async("text").then(function(content){ + typeSearchIndex = JSON.parse(content); + }); + }); + }); + }); + $.get(pathtoroot + "member-search-index.zip") + .done(function() { + JSZipUtils.getBinaryContent(pathtoroot + "member-search-index.zip", function(e, data) { + JSZip.loadAsync(data).then(function(zip){ + zip.file("member-search-index.json").async("text").then(function(content){ + memberSearchIndex = JSON.parse(content); + }); + }); + }); + }); + $.get(pathtoroot + "tag-search-index.zip") + .done(function() { + JSZipUtils.getBinaryContent(pathtoroot + "tag-search-index.zip", function(e, data) { + JSZip.loadAsync(data).then(function(zip){ + zip.file("tag-search-index.json").async("text").then(function(content){ + tagSearchIndex = JSON.parse(content); + }); + }); + }); + }); + if (!moduleSearchIndex) { + createElem(doc, tag, 'module-search-index.js'); + } + if (!packageSearchIndex) { + createElem(doc, tag, 'package-search-index.js'); + } + if (!typeSearchIndex) { + createElem(doc, tag, 'type-search-index.js'); + } + if (!memberSearchIndex) { + createElem(doc, tag, 'member-search-index.js'); + } + if (!tagSearchIndex) { + createElem(doc, tag, 'tag-search-index.js'); + } + $(window).resize(function() { + $('.navPadding').css('padding-top', $('.fixedNav').css("height")); + }); +} + +function createElem(doc, tag, path) { + var script = doc.createElement(tag); + var scriptElement = doc.getElementsByTagName(tag)[0]; + script.src = pathtoroot + path; + scriptElement.parentNode.insertBefore(script, scriptElement); +} + +function show(type) { count = 0; - for (var key in methods) { + for (var key in data) { var row = document.getElementById(key); - if ((methods[key] & type) != 0) { + if ((data[key] & type) !== 0) { row.style.display = ''; row.className = (count++ % 2) ? rowColor : altColor; } @@ -13,8 +128,7 @@ function show(type) updateTabs(type); } -function updateTabs(type) -{ +function updateTabs(type) { for (var value in tabs) { var sNode = document.getElementById(tabs[value][0]); var spanNode = sNode.firstChild; @@ -28,3 +142,8 @@ function updateTabs(type) } } } + +function updateModuleFrame(pFrame, cFrame) { + top.packageFrame.location = pFrame; + top.classFrame.location = cFrame; +} diff --git a/docs/search.js b/docs/search.js new file mode 100644 index 0000000..38160c2 --- /dev/null +++ b/docs/search.js @@ -0,0 +1,326 @@ +/* + * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. + * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ + +var noResult = {l: "No results found"}; +var catModules = "Modules"; +var catPackages = "Packages"; +var catTypes = "Types"; +var catMembers = "Members"; +var catSearchTags = "SearchTags"; +var highlight = "$&"; +var camelCaseRegexp = ""; +var secondaryMatcher = ""; +function getHighlightedText(item) { + var ccMatcher = new RegExp(camelCaseRegexp); + var label = item.replace(ccMatcher, highlight); + if (label === item) { + label = item.replace(secondaryMatcher, highlight); + } + return label; +} +function getURLPrefix(ui) { + var urlPrefix=""; + if (useModuleDirectories) { + var slash = "/"; + if (ui.item.category === catModules) { + return ui.item.l + slash; + } else if (ui.item.category === catPackages && ui.item.m) { + return ui.item.m + slash; + } else if ((ui.item.category === catTypes && ui.item.p) || ui.item.category === catMembers) { + $.each(packageSearchIndex, function(index, item) { + if (ui.item.p == item.l) { + urlPrefix = item.m + slash; + } + }); + return urlPrefix; + } else { + return urlPrefix; + } + } + return urlPrefix; +} +var watermark = 'Search'; +$(function() { + $("#search").val(''); + $("#search").prop("disabled", false); + $("#reset").prop("disabled", false); + $("#search").val(watermark).addClass('watermark'); + $("#search").blur(function() { + if ($(this).val().length == 0) { + $(this).val(watermark).addClass('watermark'); + } + }); + $("#search").on('click keydown', function() { + if ($(this).val() == watermark) { + $(this).val('').removeClass('watermark'); + } + }); + $("#reset").click(function() { + $("#search").val(''); + $("#search").focus(); + }); + $("#search").focus(); + $("#search")[0].setSelectionRange(0, 0); +}); +$.widget("custom.catcomplete", $.ui.autocomplete, { + _create: function() { + this._super(); + this.widget().menu("option", "items", "> :not(.ui-autocomplete-category)"); + }, + _renderMenu: function(ul, items) { + var rMenu = this, + currentCategory = ""; + rMenu.menu.bindings = $(); + $.each(items, function(index, item) { + var li; + if (item.l !== noResult.l && item.category !== currentCategory) { + ul.append("
    • " + item.category + "
    • "); + currentCategory = item.category; + } + li = rMenu._renderItemData(ul, item); + if (item.category) { + li.attr("aria-label", item.category + " : " + item.l); + li.attr("class", "resultItem"); + } else { + li.attr("aria-label", item.l); + li.attr("class", "resultItem"); + } + }); + }, + _renderItem: function(ul, item) { + var label = ""; + if (item.category === catModules) { + label = getHighlightedText(item.l); + } else if (item.category === catPackages) { + label = (item.m) + ? getHighlightedText(item.m + "/" + item.l) + : getHighlightedText(item.l); + } else if (item.category === catTypes) { + label = (item.p) + ? getHighlightedText(item.p + "." + item.l) + : getHighlightedText(item.l); + } else if (item.category === catMembers) { + label = getHighlightedText(item.p + "." + (item.c + "." + item.l)); + } else if (item.category === catSearchTags) { + label = getHighlightedText(item.l); + } else { + label = item.l; + } + var li = $("
    • ").appendTo(ul); + var div = $("
      ").appendTo(li); + if (item.category === catSearchTags) { + if (item.d) { + div.html(label + " (" + item.h + ")
      " + + item.d + "
      "); + } else { + div.html(label + " (" + item.h + ")"); + } + } else { + div.html(label); + } + return li; + } +}); +$(function() { + $("#search").catcomplete({ + minLength: 1, + delay: 100, + source: function(request, response) { + var result = new Array(); + var presult = new Array(); + var tresult = new Array(); + var mresult = new Array(); + var tgresult = new Array(); + var secondaryresult = new Array(); + var displayCount = 0; + var exactMatcher = new RegExp("^" + $.ui.autocomplete.escapeRegex(request.term) + "$", "i"); + camelCaseRegexp = ($.ui.autocomplete.escapeRegex(request.term)).split(/(?=[A-Z])/).join("([a-z0-9_$]*?)"); + var camelCaseMatcher = new RegExp("^" + camelCaseRegexp); + secondaryMatcher = new RegExp($.ui.autocomplete.escapeRegex(request.term), "i"); + + // Return the nested innermost name from the specified object + function nestedName(e) { + return e.l.substring(e.l.lastIndexOf(".") + 1); + } + + function concatResults(a1, a2) { + a1 = a1.concat(a2); + a2.length = 0; + return a1; + } + + if (moduleSearchIndex) { + var mdleCount = 0; + $.each(moduleSearchIndex, function(index, item) { + item.category = catModules; + if (exactMatcher.test(item.l)) { + result.push(item); + mdleCount++; + } else if (camelCaseMatcher.test(item.l)) { + result.push(item); + } else if (secondaryMatcher.test(item.l)) { + secondaryresult.push(item); + } + }); + displayCount = mdleCount; + result = concatResults(result, secondaryresult); + } + if (packageSearchIndex) { + var pCount = 0; + var pkg = ""; + $.each(packageSearchIndex, function(index, item) { + item.category = catPackages; + pkg = (item.m) + ? (item.m + "/" + item.l) + : item.l; + if (exactMatcher.test(item.l)) { + presult.push(item); + pCount++; + } else if (camelCaseMatcher.test(pkg)) { + presult.push(item); + } else if (secondaryMatcher.test(pkg)) { + secondaryresult.push(item); + } + }); + result = result.concat(concatResults(presult, secondaryresult)); + displayCount = (pCount > displayCount) ? pCount : displayCount; + } + if (typeSearchIndex) { + var tCount = 0; + $.each(typeSearchIndex, function(index, item) { + item.category = catTypes; + var s = nestedName(item); + if (exactMatcher.test(s)) { + tresult.push(item); + tCount++; + } else if (camelCaseMatcher.test(s)) { + tresult.push(item); + } else if (secondaryMatcher.test(item.p + "." + item.l)) { + secondaryresult.push(item); + } + }); + result = result.concat(concatResults(tresult, secondaryresult)); + displayCount = (tCount > displayCount) ? tCount : displayCount; + } + if (memberSearchIndex) { + var mCount = 0; + $.each(memberSearchIndex, function(index, item) { + item.category = catMembers; + var s = nestedName(item); + if (exactMatcher.test(s)) { + mresult.push(item); + mCount++; + } else if (camelCaseMatcher.test(s)) { + mresult.push(item); + } else if (secondaryMatcher.test(item.c + "." + item.l)) { + secondaryresult.push(item); + } + }); + result = result.concat(concatResults(mresult, secondaryresult)); + displayCount = (mCount > displayCount) ? mCount : displayCount; + } + if (tagSearchIndex) { + var tgCount = 0; + $.each(tagSearchIndex, function(index, item) { + item.category = catSearchTags; + if (exactMatcher.test(item.l)) { + tgresult.push(item); + tgCount++; + } else if (secondaryMatcher.test(item.l)) { + secondaryresult.push(item); + } + }); + result = result.concat(concatResults(tgresult, secondaryresult)); + displayCount = (tgCount > displayCount) ? tgCount : displayCount; + } + displayCount = (displayCount > 500) ? displayCount : 500; + var counter = function() { + var count = {Modules: 0, Packages: 0, Types: 0, Members: 0, SearchTags: 0}; + var f = function(item) { + count[item.category] += 1; + return (count[item.category] <= displayCount); + }; + return f; + }(); + response(result.filter(counter)); + }, + response: function(event, ui) { + if (!ui.content.length) { + ui.content.push(noResult); + } else { + $("#search").empty(); + } + }, + autoFocus: true, + position: { + collision: "flip" + }, + select: function(event, ui) { + if (ui.item.l !== noResult.l) { + var url = getURLPrefix(ui); + if (ui.item.category === catModules) { + if (useModuleDirectories) { + url += "module-summary.html"; + } else { + url = ui.item.l + "-summary.html"; + } + } else if (ui.item.category === catPackages) { + if (ui.item.url) { + url = ui.item.url; + } else { + url += ui.item.l.replace(/\./g, '/') + "/package-summary.html"; + } + } else if (ui.item.category === catTypes) { + if (ui.item.url) { + url = ui.item.url; + } else if (ui.item.p === "") { + url += ui.item.l + ".html"; + } else { + url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.l + ".html"; + } + } else if (ui.item.category === catMembers) { + if (ui.item.p === "") { + url += ui.item.c + ".html" + "#"; + } else { + url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.c + ".html" + "#"; + } + if (ui.item.url) { + url += ui.item.url; + } else { + url += ui.item.l; + } + } else if (ui.item.category === catSearchTags) { + url += ui.item.u; + } + if (top !== window) { + parent.classFrame.location = pathtoroot + url; + } else { + window.location.href = pathtoroot + url; + } + $("#search").focus(); + } + } + }); +}); diff --git a/docs/serialized-form.html b/docs/serialized-form.html index 38c452c..fa37ed4 100644 --- a/docs/serialized-form.html +++ b/docs/serialized-form.html @@ -1,58 +1,68 @@ - + - - -Serialized Form (firmadigital-servicio 2.10.0-SNAPSHOT API) - + +Serialized Form + + + + + + + + +var pathtoroot = "./"; +var useModuleDirectories = true; +loadScripts(document, 'script'); +
      + +
      +

      Serialized Form

    • -
    • +
    • -

      Class ec.gob.firmadigital.servicio.model.Log extends Object implements Serializable

      +

      Class ec.gob.firmadigital.servicio.model.Log extends java.lang.Object implements Serializable

      serialVersionUID:
      -4149737307219333116L
      @@ -218,41 +284,41 @@

      Class
    • -

      id

      -
      long id
      +

      categoria

      +
      java.lang.String categoria
    • -

      fecha

      -
      Date fecha
      +

      cedula

      +
      java.lang.String cedula
    • -

      severidad

      -
      Log.Severidad severidad
      +

      descripcion

      +
      java.lang.String descripcion
    • -

      categoria

      -
      String categoria
      +

      fecha

      +
      java.util.Date fecha
    • -

      descripcion

      -
      String descripcion
      +

      id

      +
      long id
    • -

      cedula

      -
      String cedula
      +

      severidad

      +
      Log.Severidad severidad
    • sistema

      -
      String sistema
      +
      java.lang.String sistema
    -
  • +
  • -

    Class ec.gob.firmadigital.servicio.model.Sistema extends Object implements Serializable

    +

    Class ec.gob.firmadigital.servicio.model.Sistema extends java.lang.Object implements Serializable

    serialVersionUID:
    5588060743829609875L
    @@ -262,104 +328,151 @@

    Class
  • +

    apiKey

    +
    java.lang.String apiKey
    +
  • +
  • +

    apiKeyRest

    +
    java.lang.String apiKeyRest
    +
  • +
  • +

    descripcion

    +
    java.lang.String descripcion
    +
  • +
  • id

    long id
  • nombre

    -
    String nombre
    +
    java.lang.String nombre
    +
  • +
  • +

    URL

    +
    java.lang.String URL
    +
  • + +

  • + + +
  • + + +

    Class ec.gob.firmadigital.servicio.model.Version extends java.lang.Object implements Serializable

    +
      +
    • +

      Serialized Fields

      +
        +
      • +

        aplicacion

        +
        java.lang.String aplicacion
      • descripcion

        -
        String descripcion
        +
        java.lang.String descripcion
      • -

        URL

        -
        String URL
        +

        fechaLiberacion

        +
        java.util.Date fechaLiberacion
      • -

        apiKey

        -
        String apiKey
        +

        fechaObsoleto

        +
        java.util.Date fechaObsoleto
        +
      • +
      • +

        id

        +
        long id
        +
      • +
      • +

        sha

        +
        java.lang.String sha
        +
      • +
      • +

        sistemaOperativo

        +
        java.lang.String sistemaOperativo
        +
      • +
      • +

        status

        +
        java.lang.Boolean status
      • -

        apiKeyRest

        -
        String apiKeyRest
        +

        version

        +
        java.lang.String version
  • +
  • +

    Package ec.gob.firmadigital.servicio.token

    +
  • +

    Package ec.gob.firmadigital.servicio.util

    +
  • +
    + diff --git a/docs/stylesheet.css b/docs/stylesheet.css index a1e6e20..c59b6d3 100644 --- a/docs/stylesheet.css +++ b/docs/stylesheet.css @@ -1,35 +1,51 @@ -/* Javadoc style sheet */ -/* -Overall document style -*/ +/* + * Javadoc style sheet + */ @import url('resources/fonts/dejavu.css'); +/* + * Styles for individual HTML elements. + * + * These are styles that are specific to individual HTML elements. Changing them affects the style of a particular + * HTML element throughout the page. + */ + body { background-color:#ffffff; color:#353833; font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; font-size:14px; margin:0; + padding:0; + height:100%; + width:100%; +} +iframe { + margin:0; + padding:0; + height:100%; + width:100%; + overflow-y:scroll; + border:none; } a:link, a:visited { text-decoration:none; color:#4A6782; } -a:hover, a:focus { +a[href]:hover, a[href]:focus { text-decoration:none; color:#bb7a2a; } -a:active { - text-decoration:none; - color:#4A6782; -} a[name] { color:#353833; } -a[name]:hover { - text-decoration:none; - color:#353833; +a[name]:before, a[name]:target, a[id]:before, a[id]:target { + content:""; + display:inline-block; + position:relative; + padding-top:129px; + margin-top:-129px; } pre { font-family:'DejaVu Sans Mono', monospace; @@ -78,9 +94,16 @@ table tr td dt code { sup { font-size:8px; } + +/* + * Styles for HTML generated by javadoc. + * + * These are style classes that are used by the standard doclet to generate HTML documentation. + */ + /* -Document title and Copyright styles -*/ + * Styles for document title and copyright. + */ .clear { clear:both; height:0px; @@ -111,8 +134,8 @@ Document title and Copyright styles font-weight:bold; } /* -Navigation bar styles -*/ + * Styles for navigation bar. + */ .bar { background-color:#00395A; color:#FFFFFF; @@ -121,6 +144,15 @@ Navigation bar styles font-size:11px; margin:0; } +.navPadding { + padding-top: 107px; +} +.fixedNav { + position:fixed; + width:100%; + z-index:999; + background-color:#ffffff; +} .topNav { background-color:#00395A; color:#FFFFFF; @@ -170,7 +202,22 @@ ul.navList li{ padding: 5px 6px; text-transform:uppercase; } -ul.subNavList li{ +ul.navListSearch { + float:right; + margin:0 0 0 0; + padding:0; +} +ul.navListSearch li { + list-style:none; + float:right; + padding: 5px 6px; + text-transform:uppercase; +} +ul.navListSearch li label { + position:relative; + right:-16px; +} +ul.subNavList li { list-style:none; float:left; } @@ -196,21 +243,29 @@ ul.subNavList li{ overflow:hidden; } /* -Page header and footer styles -*/ + * Styles for page header and footer. + */ .header, .footer { clear:both; margin:0 20px; padding:5px 0 0 0; } -.indexHeader { - margin:10px; +.indexNav { position:relative; + font-size:12px; + background-color:#dee3e9; +} +.indexNav ul { + margin-top:0; + padding:5px; } -.indexHeader span{ - margin-right:15px; +.indexNav ul li { + display:inline; + list-style-type:none; + padding-right:10px; + text-transform:uppercase; } -.indexHeader h1 { +.indexNav h1 { font-size:13px; } .title { @@ -232,8 +287,8 @@ Page header and footer styles font-size:13px; } /* -Heading styles -*/ + * Styles for headings. + */ div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { background-color:#dee3e9; border:1px solid #d0d9e0; @@ -254,9 +309,10 @@ ul.blockList li.blockList h2 { padding:0px 0 20px 0; } /* -Page layout container styles -*/ -.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + * Styles for page layout containers. + */ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer, +.allClassesContainer, .allPackagesContainer { clear:both; padding:10px 20px; position:relative; @@ -287,7 +343,7 @@ Page layout container styles .contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { margin:5px 0 10px 0px; font-size:14px; - font-family:'DejaVu Sans Mono',monospace; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; } .serializedFormContainer dl.nameValue dt { margin-left:1px; @@ -301,8 +357,11 @@ Page layout container styles display:inline; } /* -List styles -*/ + * Styles for lists. + */ +li.circle { + list-style:circle; +} ul.horizontal li { display:inline; font-size:0.9em; @@ -355,19 +414,22 @@ table tr td dl, table tr td dl dt, table tr td dl dd { margin-bottom:1px; } /* -Table styles -*/ -.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + * Styles for tables. + */ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary, +.requiresSummary, .packagesSummary, .providesSummary, .usesSummary { width:100%; + border-spacing:0; border-left:1px solid #EEE; border-right:1px solid #EEE; border-bottom:1px solid #EEE; } -.overviewSummary, .memberSummary { +.overviewSummary, .memberSummary, .requiresSummary, .packagesSummary, .providesSummary, .usesSummary { padding:0px; } .overviewSummary caption, .memberSummary caption, .typeSummary caption, -.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption, +.requiresSummary caption, .packagesSummary caption, .providesSummary caption, .usesSummary caption { position:relative; text-align:left; background-repeat:no-repeat; @@ -382,17 +444,31 @@ Table styles white-space:pre; } .overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, -.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.constantsSummary caption a:link, .deprecatedSummary caption a:link, +.requiresSummary caption a:link, .packagesSummary caption a:link, .providesSummary caption a:link, +.usesSummary caption a:link, .overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, -.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.requiresSummary caption a:hover, .packagesSummary caption a:hover, .providesSummary caption a:hover, +.usesSummary caption a:hover, .overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, -.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.constantsSummary caption a:active, .deprecatedSummary caption a:active, +.requiresSummary caption a:active, .packagesSummary caption a:active, .providesSummary caption a:active, +.usesSummary caption a:active, .overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, -.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { +.constantsSummary caption a:visited, .deprecatedSummary caption a:visited, +.requiresSummary caption a:visited, .packagesSummary caption a:visited, .providesSummary caption a:visited, +.usesSummary caption a:visited { color:#FFFFFF; } +.useSummary caption a:link, .useSummary caption a:hover, .useSummary caption a:active, +.useSummary caption a:visited { + color:#1f389c; +} .overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, -.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span, +.requiresSummary caption span, .packagesSummary caption span, .providesSummary caption span, +.usesSummary caption span { white-space:nowrap; padding-top:5px; padding-left:12px; @@ -404,7 +480,8 @@ Table styles border: none; height:16px; } -.memberSummary caption span.activeTableTab span { +.memberSummary caption span.activeTableTab span, .packagesSummary caption span.activeTableTab span, +.overviewSummary caption span.activeTableTab span, .typeSummary caption span.activeTableTab span { white-space:nowrap; padding-top:5px; padding-left:12px; @@ -415,7 +492,8 @@ Table styles background-color:#F8981D; height:16px; } -.memberSummary caption span.tableTab span { +.memberSummary caption span.tableTab span, .packagesSummary caption span.tableTab span, +.overviewSummary caption span.tableTab span, .typeSummary caption span.tableTab span { white-space:nowrap; padding-top:5px; padding-left:12px; @@ -426,7 +504,10 @@ Table styles background-color:#00395A; height:16px; } -.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab, +.packagesSummary caption span.tableTab, .packagesSummary caption span.activeTableTab, +.overviewSummary caption span.tableTab, .overviewSummary caption span.activeTableTab, +.typeSummary caption span.tableTab, .typeSummary caption span.activeTableTab { padding-top:0px; padding-left:0px; padding-right:0px; @@ -435,14 +516,16 @@ Table styles display:inline; } .overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, -.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd, +.requiresSummary .tabEnd, .packagesSummary .tabEnd, .providesSummary .tabEnd, .usesSummary .tabEnd { display:none; width:5px; position:relative; float:left; background-color:#F8981D; } -.memberSummary .activeTableTab .tabEnd { +.memberSummary .activeTableTab .tabEnd, .packagesSummary .activeTableTab .tabEnd, +.overviewSummary .activeTableTab .tabEnd, .typeSummary .activeTableTab .tabEnd { display:none; width:5px; margin-right:3px; @@ -450,66 +533,88 @@ Table styles float:left; background-color:#F8981D; } -.memberSummary .tableTab .tabEnd { +.memberSummary .tableTab .tabEnd, .packagesSummary .tableTab .tabEnd, +.overviewSummary .tableTab .tabEnd, .typeSummary .tableTab .tabEnd { display:none; width:5px; margin-right:3px; position:relative; background-color:#00395A; float:left; - +} +.rowColor th, .altColor th { + font-weight:normal; } .overviewSummary td, .memberSummary td, .typeSummary td, -.useSummary td, .constantsSummary td, .deprecatedSummary td { +.useSummary td, .constantsSummary td, .deprecatedSummary td, +.requiresSummary td, .packagesSummary td, .providesSummary td, .usesSummary td { text-align:left; padding:0px 0px 12px 10px; } -th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, -td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ +th.colFirst, th.colSecond, th.colLast, th.colConstructorName, th.colDeprecatedItemName, .useSummary th, +.constantsSummary th, .packagesSummary th, td.colFirst, td.colSecond, td.colLast, .useSummary td, +.constantsSummary td { vertical-align:top; padding-right:0px; padding-top:8px; padding-bottom:3px; } -th.colFirst, th.colLast, th.colOne, .constantsSummary th { +th.colFirst, th.colSecond, th.colLast, th.colConstructorName, th.colDeprecatedItemName, .constantsSummary th, +.packagesSummary th { background:#dee3e9; text-align:left; padding:8px 3px 3px 7px; } td.colFirst, th.colFirst { - white-space:nowrap; font-size:13px; } -td.colLast, th.colLast { +td.colSecond, th.colSecond, td.colLast, th.colConstructorName, th.colDeprecatedItemName, th.colLast { font-size:13px; } -td.colOne, th.colOne { +.constantsSummary th, .packagesSummary th { + font-size:13px; +} +.providesSummary th.colFirst, .providesSummary th.colLast, .providesSummary td.colFirst, +.providesSummary td.colLast { + white-space:normal; font-size:13px; } .overviewSummary td.colFirst, .overviewSummary th.colFirst, -.useSummary td.colFirst, .useSummary th.colFirst, -.overviewSummary td.colOne, .overviewSummary th.colOne, +.requiresSummary td.colFirst, .requiresSummary th.colFirst, +.packagesSummary td.colFirst, .packagesSummary td.colSecond, .packagesSummary th.colFirst, .packagesSummary th, +.usesSummary td.colFirst, .usesSummary th.colFirst, +.providesSummary td.colFirst, .providesSummary th.colFirst, .memberSummary td.colFirst, .memberSummary th.colFirst, -.memberSummary td.colOne, .memberSummary th.colOne, -.typeSummary td.colFirst{ - width:25%; +.memberSummary td.colSecond, .memberSummary th.colSecond, .memberSummary th.colConstructorName, +.typeSummary td.colFirst, .typeSummary th.colFirst { vertical-align:top; } -td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { +.packagesSummary th.colLast, .packagesSummary td.colLast { + white-space:normal; +} +td.colFirst a:link, td.colFirst a:visited, +td.colSecond a:link, td.colSecond a:visited, +th.colFirst a:link, th.colFirst a:visited, +th.colSecond a:link, th.colSecond a:visited, +th.colConstructorName a:link, th.colConstructorName a:visited, +th.colDeprecatedItemName a:link, th.colDeprecatedItemName a:visited, +.constantValuesContainer td a:link, .constantValuesContainer td a:visited, +.allClassesContainer td a:link, .allClassesContainer td a:visited, +.allPackagesContainer td a:link, .allPackagesContainer td a:visited { font-weight:bold; } .tableSubHeadingColor { background-color:#EEEEFF; } -.altColor { +.altColor, .altColor th { background-color:#FFFFFF; } -.rowColor { +.rowColor, .rowColor th { background-color:#EEEEEF; } /* -Content styles -*/ + * Styles for contents. + */ .description pre { margin-top:0; } @@ -520,27 +625,22 @@ Content styles .docSummary { padding:0; } - ul.blockList ul.blockList ul.blockList li.blockList h3 { font-style:normal; } - div.block { font-size:14px; font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; } - td.colLast div { padding-top:0px; } - - td.colLast a { padding-bottom:3px; } /* -Formatting effect styles -*/ + * Styles for formatting effect. + */ .sourceLineNo { color:green; padding:0 30px 0 0; @@ -555,20 +655,252 @@ h1.hidden { margin:3px 10px 2px 0px; color:#474747; } -.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, -.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, -.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { +.deprecatedLabel, .descfrmTypeLabel, .implementationLabel, .memberNameLabel, .memberNameLink, +.moduleLabelInPackage, .moduleLabelInType, .overrideSpecifyLabel, .packageLabelInType, +.packageHierarchyLabel, .paramLabel, .returnLabel, .seeLabel, .simpleTagLabel, +.throwsLabel, .typeNameLabel, .typeNameLink, .searchTagLink { font-weight:bold; } .deprecationComment, .emphasizedPhrase, .interfaceName { font-style:italic; } - -div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +.deprecationBlock { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; + border-style:solid; + border-width:thin; + border-radius:10px; + padding:10px; + margin-bottom:10px; + margin-right:10px; + display:inline-block; +} +div.block div.deprecationComment, div.block div.block span.emphasizedPhrase, div.block div.block span.interfaceName { font-style:normal; } - -div.contentContainer ul.blockList li.blockList h2{ +div.contentContainer ul.blockList li.blockList h2 { padding-bottom:0px; } +/* + * Styles for IFRAME. + */ +.mainContainer { + margin:0 auto; + padding:0; + height:100%; + width:100%; + position:fixed; + top:0; + left:0; +} +.leftContainer { + height:100%; + position:fixed; + width:320px; +} +.leftTop { + position:relative; + float:left; + width:315px; + top:0; + left:0; + height:30%; + border-right:6px solid #ccc; + border-bottom:6px solid #ccc; +} +.leftBottom { + position:relative; + float:left; + width:315px; + bottom:0; + left:0; + height:70%; + border-right:6px solid #ccc; + border-top:1px solid #000; +} +.rightContainer { + position:absolute; + left:320px; + top:0; + bottom:0; + height:100%; + right:0; + border-left:1px solid #000; +} +.rightIframe { + margin:0; + padding:0; + height:100%; + right:30px; + width:100%; + overflow:visible; + margin-bottom:30px; +} +/* + * Styles specific to HTML5 elements. + */ +main, nav, header, footer, section { + display:block; +} +/* + * Styles for javadoc search. + */ +.ui-autocomplete-category { + font-weight:bold; + font-size:15px; + padding:7px 0 7px 3px; + background-color:#00395A; + color:#FFFFFF; +} +.resultItem { + font-size:13px; +} +.ui-autocomplete { + max-height:85%; + max-width:65%; + overflow-y:scroll; + overflow-x:scroll; + white-space:nowrap; + box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); +} +ul.ui-autocomplete { + position:fixed; + z-index:999999; +} +ul.ui-autocomplete li { + float:left; + clear:both; + width:100%; +} +.resultHighlight { + font-weight:bold; +} +#search { + background-image:url('resources/glass.png'); + background-size:13px; + background-repeat:no-repeat; + background-position:2px 3px; + padding-left:20px; + position:relative; + right:-18px; +} +#reset { + background-color: rgb(255,255,255); + background-image:url('resources/x.png'); + background-position:center; + background-repeat:no-repeat; + background-size:12px; + border:0 none; + width:16px; + height:17px; + position:relative; + left:-4px; + top:-4px; + font-size:0px; +} +.watermark { + color:#545454; +} +.searchTagDescResult { + font-style:italic; + font-size:11px; +} +.searchTagHolderResult { + font-style:italic; + font-size:12px; +} +.searchTagResult:before, .searchTagResult:target { + color:red; +} +.moduleGraph span { + display:none; + position:absolute; +} +.moduleGraph:hover span { + display:block; + margin: -100px 0 0 100px; + z-index: 1; +} +.methodSignature { + white-space:normal; +} + +/* + * Styles for user-provided tables. + * + * borderless: + * No borders, vertical margins, styled caption. + * This style is provided for use with existing doc comments. + * In general, borderless tables should not be used for layout purposes. + * + * plain: + * Plain borders around table and cells, vertical margins, styled caption. + * Best for small tables or for complex tables for tables with cells that span + * rows and columns, when the "striped" style does not work well. + * + * striped: + * Borders around the table and vertical borders between cells, striped rows, + * vertical margins, styled caption. + * Best for tables that have a header row, and a body containing a series of simple rows. + */ + +table.borderless, +table.plain, +table.striped { + margin-top: 10px; + margin-bottom: 10px; +} +table.borderless > caption, +table.plain > caption, +table.striped > caption { + font-weight: bold; + font-size: smaller; +} +table.borderless th, table.borderless td, +table.plain th, table.plain td, +table.striped th, table.striped td { + padding: 2px 5px; +} +table.borderless, +table.borderless > thead > tr > th, table.borderless > tbody > tr > th, table.borderless > tr > th, +table.borderless > thead > tr > td, table.borderless > tbody > tr > td, table.borderless > tr > td { + border: none; +} +table.borderless > thead > tr, table.borderless > tbody > tr, table.borderless > tr { + background-color: transparent; +} +table.plain { + border-collapse: collapse; + border: 1px solid black; +} +table.plain > thead > tr, table.plain > tbody tr, table.plain > tr { + background-color: transparent; +} +table.plain > thead > tr > th, table.plain > tbody > tr > th, table.plain > tr > th, +table.plain > thead > tr > td, table.plain > tbody > tr > td, table.plain > tr > td { + border: 1px solid black; +} +table.striped { + border-collapse: collapse; + border: 1px solid black; +} +table.striped > thead { + background-color: #E3E3E3; +} +table.striped > thead > tr > th, table.striped > thead > tr > td { + border: 1px solid black; +} +table.striped > tbody > tr:nth-child(even) { + background-color: #EEE +} +table.striped > tbody > tr:nth-child(odd) { + background-color: #FFF +} +table.striped > tbody > tr > th, table.striped > tbody > tr > td { + border-left: 1px solid black; + border-right: 1px solid black; +} +table.striped > tbody > tr > th { + font-weight: normal; +} diff --git a/docs/type-search-index.js b/docs/type-search-index.js new file mode 100644 index 0000000..0b648dc --- /dev/null +++ b/docs/type-search-index.js @@ -0,0 +1 @@ +typeSearchIndex = [{"l":"All Classes","url":"allclasses-index.html"},{"p":"ec.gob.firmadigital.servicio","l":"ApiEstadisticaException"},{"p":"ec.gob.firmadigital.servicio.model","l":"ApiUrl"},{"p":"ec.gob.firmadigital.servicio","l":"ApiUrlNoEncontradoException"},{"p":"ec.gob.firmadigital.servicio.util","l":"Base64InvalidoException"},{"p":"ec.gob.firmadigital.servicio.util","l":"Base64Util"},{"p":"ec.gob.firmadigital.servicio","l":"CedulaInvalidaException"},{"p":"ec.gob.firmadigital.servicio","l":"CertificadoRevocadoException"},{"p":"ec.gob.firmadigital.servicio.model","l":"Documento"},{"p":"ec.gob.firmadigital.servicio","l":"DocumentoNoExisteException"},{"p":"ec.gob.firmadigital.servicio.util","l":"FileUtil"},{"p":"ec.gob.firmadigital.servicio.util","l":"FirmaDigital"},{"p":"ec.gob.firmadigital.servicio.rest","l":"JAXRSConfiguration"},{"p":"ec.gob.firmadigital.servicio.util","l":"JsonProcessor"},{"p":"ec.gob.firmadigital.servicio.model","l":"Log"},{"p":"ec.gob.firmadigital.servicio.util","l":"Pkcs12"},{"p":"ec.gob.firmadigital.servicio.util","l":"PropertiesUtils"},{"p":"ec.gob.firmadigital.servicio.util","l":"Propiedades"},{"p":"ec.gob.firmadigital.servicio.util","l":"ProtocoloFirmaDigital"},{"p":"ec.gob.firmadigital.firmaec_app.exceptions","l":"ProtocoloInvalidoException"},{"p":"ec.gob.firmadigital.servicio","l":"ServicioApiUrl"},{"p":"ec.gob.firmadigital.servicio.rest","l":"ServicioApiUrlRest"},{"p":"ec.gob.firmadigital.servicio","l":"ServicioAppFirmarDocumento"},{"p":"ec.gob.firmadigital.servicio.rest","l":"ServicioAppFirmarDocumentoRest"},{"p":"ec.gob.firmadigital.servicio","l":"ServicioAppFirmarDocumentoTransversal"},{"p":"ec.gob.firmadigital.servicio.rest","l":"ServicioAppFirmarDocumentoTransversalRest"},{"p":"ec.gob.firmadigital.servicio","l":"ServicioAppValidarCertificadoDigital"},{"p":"ec.gob.firmadigital.servicio.rest","l":"ServicioAppValidarCertificadoDigitalRest"},{"p":"ec.gob.firmadigital.servicio","l":"ServicioAppVerificarDocumento"},{"p":"ec.gob.firmadigital.servicio.rest","l":"ServicioAppVerificarDocumentoRest"},{"p":"ec.gob.firmadigital.servicio.rest","l":"ServicioCertificadoRest"},{"p":"ec.gob.firmadigital.servicio.crl","l":"ServicioConsultaCrl"},{"p":"ec.gob.firmadigital.servicio.crl","l":"ServicioDescargaCrl"},{"p":"ec.gob.firmadigital.servicio","l":"ServicioDocumento"},{"p":"ec.gob.firmadigital.servicio.rest","l":"ServicioDocumentoRest"},{"p":"ec.gob.firmadigital.servicio","l":"ServicioEliminacionDocumento"},{"p":"ec.gob.firmadigital.servicio","l":"ServicioEstadisticaDocumentosFirmados"},{"p":"ec.gob.firmadigital.servicio.rest","l":"ServicioEstadisticaDocumentosFirmadosRest"},{"p":"ec.gob.firmadigital.servicio","l":"ServicioEstadisticaUsuarios"},{"p":"ec.gob.firmadigital.servicio.rest","l":"ServicioEstadisticaUsuariosRest"},{"p":"ec.gob.firmadigital.servicio","l":"ServicioLog"},{"p":"ec.gob.firmadigital.servicio","l":"ServicioSistemaTransversal"},{"p":"ec.gob.firmadigital.servicio.token","l":"ServicioToken"},{"p":"ec.gob.firmadigital.servicio.token.jwt","l":"ServicioTokenJwt"},{"p":"ec.gob.firmadigital.servicio.cms","l":"ServicioValidacionCms"},{"p":"ec.gob.firmadigital.servicio.pdf","l":"ServicioValidacionPdf"},{"p":"ec.gob.firmadigital.servicio.rest","l":"ServicioValidacionPdfRest"},{"p":"ec.gob.firmadigital.servicio.exception","l":"ServicioValidarCertificadoDigitalException"},{"p":"ec.gob.firmadigital.servicio","l":"ServicioVersion"},{"p":"ec.gob.firmadigital.servicio.rest","l":"ServicioVersionRest"},{"p":"ec.gob.firmadigital.servicio.model","l":"Log.Severidad"},{"p":"ec.gob.firmadigital.servicio.model","l":"Sistema"},{"p":"ec.gob.firmadigital.servicio","l":"SistemaTransversalException"},{"p":"ec.gob.firmadigital.servicio.token","l":"TokenExpiradoException"},{"p":"ec.gob.firmadigital.servicio.token","l":"TokenInvalidoException"},{"p":"ec.gob.firmadigital.servicio.token","l":"TokenTimeout"},{"p":"ec.gob.firmadigital.servicio.model","l":"Version"},{"p":"ec.gob.firmadigital.servicio","l":"VersionException"}] \ No newline at end of file diff --git a/docs/type-search-index.zip b/docs/type-search-index.zip new file mode 100644 index 0000000..481e4b6 Binary files /dev/null and b/docs/type-search-index.zip differ diff --git a/pom.xml b/pom.xml index 0c4b8dd..c76b03e 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 ec.gob.firmadigital servicio - 2.10.1-SNAPSHOT + 3.0.0-SNAPSHOT war firmadigital-servicio @@ -46,18 +46,31 @@ + javax javaee-api 8.0.1 - provided + jar - org.jboss.resteasy - resteasy-jackson-provider - 3.7.0.Final - provided + org.jboss.spec.javax.xml.bind + jboss-jaxb-api_2.3_spec + 2.0.1.Final + jar + + jakarta.xml.ws + jakarta.xml.ws-api + 4.0.0 + + + com.sun.xml.ws + jaxws-rt + 4.0.0 + runtime + + io.jsonwebtoken jjwt @@ -78,7 +91,7 @@ io.rubrica rubrica - 1.0.0-SNAPSHOT + 3.0.0-SNAPSHOT junit @@ -94,7 +107,7 @@ org.wildfly.plugins wildfly-maven-plugin - 2.0.1.Final + 3.0.2.Final local-wildfly localhost diff --git a/src/main/java/ec/gob/firmadigital/servicio/ServicioAppFirmarDocumento.java b/src/main/java/ec/gob/firmadigital/servicio/ServicioAppFirmarDocumento.java new file mode 100644 index 0000000..6996483 --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/ServicioAppFirmarDocumento.java @@ -0,0 +1,151 @@ +/* + * Firma Digital: Servicio + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package ec.gob.firmadigital.servicio; + +import com.itextpdf.kernel.crypto.BadPasswordException; +import com.itextpdf.kernel.pdf.PdfReader; +import ec.gob.firmadigital.servicio.util.Pkcs12; +import ec.gob.firmadigital.servicio.util.FirmaDigital; +import ec.gob.firmadigital.servicio.util.Propiedades; +import io.rubrica.certificate.to.Documento; +import io.rubrica.exceptions.CertificadoInvalidoException; +import io.rubrica.exceptions.ConexionException; +import io.rubrica.exceptions.DocumentoException; +import io.rubrica.exceptions.EntidadCertificadoraNoValidaException; +import io.rubrica.exceptions.HoraServidorException; +import io.rubrica.exceptions.RubricaException; +import io.rubrica.exceptions.SignatureVerificationException; +import io.rubrica.sign.SignInfo; +import io.rubrica.sign.Signer; +import io.rubrica.sign.pdf.PDFSignerItext; +import io.rubrica.utils.Json; +import io.rubrica.utils.TiempoUtils; +import static io.rubrica.utils.Utils.pdfToDocumento; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.security.InvalidKeyException; +import java.security.KeyStore; +import java.security.KeyStoreException; +import java.security.NoSuchAlgorithmException; +import java.security.UnrecoverableKeyException; +import java.util.ArrayList; +import java.util.Properties; +import javax.ejb.Stateless; +import javax.validation.constraints.NotNull; + +/** + * + * @author Christian Espinosa , Misael + * Fernández + */ +@Stateless +public class ServicioAppFirmarDocumento { + + public String firmarDocumento(@NotNull String pkcs12, @NotNull String password, + @NotNull String documentoBase64, String versionFirmaEC, String formatoDocumento, + String llx, String lly, String pagina, String tipoEstampado, String razon, String base64) { + + Documento documento = null; + String retorno = null; + + byte[] byteDocumentoSigned = null; + byte[] byteDocumento = java.util.Base64.getDecoder().decode(documentoBase64); + try { + // Obtener keyStore + KeyStore keyStore = Pkcs12.getKeyStore(pkcs12, password); + String alias = Pkcs12.getAlias(keyStore); + + String fechaHora = TiempoUtils.getFechaHoraServidor(null, base64); + + FirmaDigital firmador = new FirmaDigital(); + if ("xml".equalsIgnoreCase(formatoDocumento)) { + byteDocumentoSigned = firmador.firmarXML(keyStore, alias, byteDocumento, password.toCharArray(), null, null, base64); + } + if ("pdf".equalsIgnoreCase(formatoDocumento)) { + Properties properties = Propiedades.propiedades(versionFirmaEC, llx, lly, pagina, tipoEstampado, razon, null, fechaHora, base64); + byteDocumentoSigned = firmador.firmarPDF(keyStore, alias, byteDocumento, password.toCharArray(), properties, null, base64); + } + } catch (BadPasswordException bpe) { + + //2022-08-19 11:38:00,549 ERROR [org.jboss.as.ejb3.invocation] (default task-1) WFLYEJB0034: Jakarta Enterprise Beans Invocation failed on component ServicioAppFirmarDocumento for method public java.lang.String ec.gob.firmadigital.servicio.ServicioAppFirmarDocumento.firmarDocumento(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String): javax.ejb.EJBTransactionRolledbackException: PdfReader is not opened with owner password +// Caused by: com.itextpdf.kernel.crypto.BadPasswordException: PdfReader is not opened with owner password +// at deployment.servicio.war//com.itextpdf.kernel.pdf.PdfDocument.open(PdfDocument.java:1943) +// at deployment.servicio.war//com.itextpdf.kernel.pdf.PdfDocument.(PdfDocument.java:325) +// at deployment.servicio.war//com.itextpdf.signatures.PdfSigner.initDocument(PdfSigner.java:306) +// at deployment.servicio.war//com.itextpdf.signatures.PdfSigner.(PdfSigner.java:288) +// at deployment.servicio.war//com.itextpdf.signatures.PdfSigner.(PdfSigner.java:271) +// at deployment.servicio.war//io.rubrica.sign.pdf.BasePdfSigner.sign(BasePdfSigner.java:86) +// at deployment.servicio.war//ec.gob.firmadigital.servicio.util.FirmaDigital.firmarPDF(FirmaDigital.java:69) +// at deployment.servicio.war//ec.gob.firmadigital.servicio.ServicioAppFirmarDocumento.firmarDocumento(ServicioAppFirmarDocumento.java:80) + retorno = "Documento protegido con contraseña"; + throw bpe; + } catch (ConexionException ce) { + retorno = "Servidor FirmaEC: " + ce.getMessage(); + return retorno; + } catch (InvalidKeyException ie) { + retorno = "Problemas al abrir el documento"; + return retorno; + } catch (EntidadCertificadoraNoValidaException ecnve) { + retorno = "Certificado no válido"; + return retorno; + } catch (HoraServidorException hse) { + retorno = "Problemas en la red\nIntente nuevamente o verifique su conexión"; + return retorno; + } catch (UnrecoverableKeyException uke) { + retorno = "Certificado Corrupto"; + return retorno; + } catch (KeyStoreException kse) { + retorno = "La contraseña es inválida"; + return retorno; + } catch (RubricaException re) { + retorno = "No es posible procesar el documento"; + return retorno; + } catch (CertificadoInvalidoException | SignatureVerificationException | DocumentoException e) { + retorno = e.getMessage(); + return retorno; + } catch (IOException | NoSuchAlgorithmException e) { + retorno = "Excepción no conocida: " + e.getMessage(); + System.out.println("resultado: " + retorno); + return retorno; + } + if (byteDocumentoSigned != null) { + + try { + //Verificar Documento + InputStream inputStreamDocumento = new ByteArrayInputStream(byteDocumentoSigned); + PdfReader pdfReader = new PdfReader(inputStreamDocumento); + Signer signer = new PDFSignerItext(); + java.util.List signInfos; + signInfos = signer.getSigners(byteDocumentoSigned); + documento = pdfToDocumento(pdfReader, signInfos); + } catch (java.lang.UnsupportedOperationException uoe) { + retorno = "No es posible procesar el documento desde dispositivo móvil\nIntentar en FirmaEC de Escritorio"; + } catch (com.itextpdf.io.IOException ioe) { + retorno = "El archivo no es PDF"; + } catch (SignatureVerificationException sve) { + retorno = sve.toString(); + } catch (Exception ex) { + retorno = ex.toString(); + } + } + if (documento == null) { + documento = new Documento(false, false, new ArrayList<>(), retorno); + } + return Json.generarJsonDocumentoFirmado(byteDocumentoSigned, documento); + } +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/ServicioAppFirmarDocumentoTransversal.java b/src/main/java/ec/gob/firmadigital/servicio/ServicioAppFirmarDocumentoTransversal.java new file mode 100644 index 0000000..04e74d7 --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/ServicioAppFirmarDocumentoTransversal.java @@ -0,0 +1,264 @@ +/* + * Firma Digital: Servicio + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package ec.gob.firmadigital.servicio; + +import com.itextpdf.kernel.crypto.BadPasswordException; +import ec.gob.firmadigital.servicio.util.FirmaDigital; +import ec.gob.firmadigital.servicio.util.JsonProcessor; +import ec.gob.firmadigital.servicio.util.Pkcs12; +import ec.gob.firmadigital.servicio.util.Propiedades; +import io.rubrica.exceptions.CertificadoInvalidoException; +import io.rubrica.exceptions.ConexionException; +import io.rubrica.exceptions.EntidadCertificadoraNoValidaException; +import io.rubrica.exceptions.HoraServidorException; +import io.rubrica.exceptions.RubricaException; +import io.rubrica.utils.X509CertificateUtils; +import java.io.IOException; +import java.net.HttpURLConnection; +import java.security.InvalidKeyException; +import java.security.KeyStore; +import java.security.KeyStoreException; +import java.security.NoSuchAlgorithmException; +import java.security.UnrecoverableKeyException; +import java.util.HashMap; +import java.util.Map; +import java.util.Properties; +import java.util.logging.Level; +import java.util.logging.Logger; +import javax.ejb.Stateless; +import javax.ws.rs.BadRequestException; +import javax.ws.rs.WebApplicationException; +import javax.ws.rs.client.Client; +import javax.ws.rs.client.ClientBuilder; +import javax.ws.rs.client.Entity; +import javax.ws.rs.client.Invocation; +import javax.ws.rs.client.WebTarget; +import javax.ws.rs.core.Form; +import javax.ws.rs.core.Response; + +/** + * Buscar en una lista de URLs permitidos para utilizar como API. Esto permite + * federar la utilización de FirmaEC sobre otra infraestructura, consultando en + * una lista de servidores permitidos. + * + * @author Christian Espinosa , Misael + * Fernández + */ +@Stateless +public class ServicioAppFirmarDocumentoTransversal { + + private final String REST_SERVICE_URL_PREPRODUCCION = "https://impapi.firmadigital.gob.ec/api"; +// private final String REST_SERVICE_URL_PREPRODUCCION = "http://impapi.firmadigital.gob.ec:8080/api"; +// private final String REST_SERVICE_URL_DESARROLLO = "http://impapi.firmadigital.gob.ec:8080/api"; + private final String REST_SERVICE_URL_DESARROLLO = "http://impapi.firmadigital.gob.ec:8181/api"; +// private final String REST_SERVICE_URL_DESARROLLO = "http://localhost:8080/api"; + private final String REST_SERVICE_URL_PRODUCCION = "https://api.firmadigital.gob.ec/api"; + private String restServiceUrl; + private static final Logger logger = Logger.getLogger(ServicioAppFirmarDocumentoTransversal.class.getName()); + + private String resultado = null; + private String sistema = null; + private String versionFirmaEC = null; + private String formatoDocumento = null; + private String llx = null; + private String lly = null; + private String tipoEstampado = null; + private String razon = null; + private String pagina = null; + private boolean pre = false; + private boolean des = false; + private String base64 = null; + private String url = null; + + private String cedula; + + public String firmarTransversal(String pkcs12, String password, String sistema, + String operacion, String url, String versionFirmaEC, String formatoDocumento, + String tokenJwt, String llx, String lly, String pagina, String tipoEstampado, + String razon, boolean pre, boolean des, String base64) throws Exception { + // Parametros opcionales + this.sistema = sistema; + this.versionFirmaEC = versionFirmaEC; + this.formatoDocumento = formatoDocumento; + this.llx = llx; + this.lly = lly; + this.tipoEstampado = tipoEstampado; + this.razon = razon; + this.pagina = pagina; + this.url = url; + this.pre = pre; + this.des = des; + this.base64 = base64; + ambiente(); + //en caso de ser firma descentralizada + if (url != null) { + restServiceUrl = url; + } + Map documentosFirmados; + try { + //bajar documentos a firmar + String json = bajarDocumentos(tokenJwt); + if (json != null) { + //firmando documentos descargados + documentosFirmados = firmarDocumentos(json, pkcs12, password); + // Actualizar documentos + actualizarDocumentos(tokenJwt, documentosFirmados, cedula); + } + } finally { + return resultado; + } + } + + private void ambiente() { + // Invocar el servicio de Preproduccio o Produccion? + if (pre) { + restServiceUrl = REST_SERVICE_URL_PREPRODUCCION; + } else if (des) { + restServiceUrl = REST_SERVICE_URL_DESARROLLO; + } else { + restServiceUrl = REST_SERVICE_URL_PRODUCCION; + } + } + + private Map firmarDocumentos(String json, String pkcs12, String password) + throws Exception { + Map documentos = JsonProcessor.parseJsonDocumentos(json); + Map documentosFirmados = new HashMap<>(); + String fechaHora = JsonProcessor.parseJsonFechaHora(json); + // Firmar! + for (Long id : documentos.keySet()) { + byte[] documento = documentos.get(id); + byte[] documentoFirmado = null; + FirmaDigital firmador = new FirmaDigital(); + try { + // Obtener keyStore + KeyStore keyStore = Pkcs12.getKeyStore(pkcs12, password); + String alias = Pkcs12.getAlias(keyStore); + + // Cedula de identidad contenida en el certificado: + cedula = X509CertificateUtils.getCedula(keyStore, alias); + + if ("xml".equalsIgnoreCase(formatoDocumento)) { + documentoFirmado = firmador.firmarXML(keyStore, alias, documento, password.toCharArray(), null, url, base64); + } + if ("pdf".equalsIgnoreCase(formatoDocumento)) { + Properties properties = Propiedades.propiedades(versionFirmaEC, llx, lly, pagina, tipoEstampado, razon, null, fechaHora, base64); + documentoFirmado = firmador.firmarPDF(keyStore, alias, documento, password.toCharArray(), properties, url, base64); + } + } catch (ConexionException ce) { + resultado = "Servidor FirmaEC: " + ce.getMessage(); + throw ce; + } catch (BadPasswordException bpe) { + resultado = "Documento protegido con contraseña"; + throw bpe; + } catch (InvalidKeyException ie) { + resultado = "Problemas al abrir el documento"; + throw ie; + } catch (EntidadCertificadoraNoValidaException | CertificadoInvalidoException ecnve) { + resultado = "Certificado no válido"; + throw ecnve; + } catch (HoraServidorException hse) { + resultado = "Problemas en la red\nIntente nuevamente o verifique su conexión"; + throw hse; + } catch (UnrecoverableKeyException uke) { + resultado = "Certificado Corrupto"; + throw uke; + } catch (KeyStoreException kse) { + resultado = "La contraseña es inválida"; + throw kse; + } catch (RubricaException re) { + resultado = "No es posible procesar el documento"; + throw re; + } catch (IOException | NoSuchAlgorithmException e) { + resultado = "Excepción no conocida: " + e.getMessage(); + System.out.println("resultado: " + resultado); + } + documentosFirmados.put(id, documentoFirmado); + } + return documentosFirmados; + } + + private String bajarDocumentos(String tokenJwt) throws Exception { + Client client = ClientBuilder.newClient(); + WebTarget target = client.target(restServiceUrl + "/firmadigital/" + tokenJwt); + Invocation.Builder builder = target.request(); + Invocation invocation = builder.buildGet(); + Response response = invocation.invoke(); + // Leer la respuesta + int statusCode = response.getStatus(); + String body = null; + body = response.readEntity(String.class); + resultado = leerBodyErrores(statusCode, body); + return body; + } + + private void actualizarDocumentos(String tokenJwt, Map documentosFirmados, String cedula) + throws Exception { + String json = JsonProcessor.buildJson(documentosFirmados, cedula); + + Client client = ClientBuilder.newClient(); + WebTarget target = client.target(restServiceUrl + "/firmadigital/" + tokenJwt); + Invocation.Builder builder = target.request(); + Form form = new Form(); + form.param("json", json); + form.param("base64", base64); + Invocation invocation = builder.buildPut(Entity.form(form)); + String body = null; + try { + Response response = invocation.invoke(); + // Leer la respuesta + int statusCode = response.getStatus(); + body = response.readEntity(String.class); + resultado = leerBodyErrores(statusCode, body); + if (resultado.isEmpty()) { + resultado = JsonProcessor.parseJsonDocumentoFirmado(body); + } + } catch (BadRequestException e) { + logger.log(Level.SEVERE, "BadRequestException: " + e.getResponse().readEntity(String.class)); + } catch (WebApplicationException e) { + logger.log(Level.SEVERE, "WebApplicationException: " + e.getResponse().readEntity(String.class)); + } + } + + private String leerBodyErrores(int statusCode, String body) { + String error = ""; + if (statusCode != HttpURLConnection.HTTP_OK) { + if (body.contains("Token expirado")) { + error = "El tiempo de vida del documento en el servidor, se encuentra expirado"; + } + if (body.contains("Token gestionado")) { + error = "El/Los documento(s) fueron gestionados"; + } + if (body.contains("Token invalido") + || body.contains("No se encuentran documentos") + || body.contains("Error al invocar servicio de obtencion de documentos") + || body.contains("Base 64 inválido")) { + error = "No se encontraron documentos para firmar."; + } + if (body.contains("Cedula invalida")) { + error = "Certificado no corresponde al usuario.\nVuelva a intentarlo."; + } + if (body.contains("Certificado revocado")) { + error = "Certificado puede estar caducado o revocado.\nVuelva a intentarlo."; + } + if (body.contains("Request Entity Too Large")) { + error = "Problemas con los servicios web.\nComuníquese con el administrador de su sistema."; + } + } + return error; + } +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/ServicioAppValidarCertificadoDigital.java b/src/main/java/ec/gob/firmadigital/servicio/ServicioAppValidarCertificadoDigital.java new file mode 100644 index 0000000..0cfbf26 --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/ServicioAppValidarCertificadoDigital.java @@ -0,0 +1,154 @@ +/* + * Firma Digital: Servicio + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package ec.gob.firmadigital.servicio; + +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; +import com.google.gson.JsonParser; +import io.rubrica.certificate.CertEcUtils; +import io.rubrica.certificate.to.Certificado; +import io.rubrica.certificate.to.DatosUsuario; +import io.rubrica.core.Util; +import io.rubrica.exceptions.CertificadoInvalidoException; +import io.rubrica.keystore.Alias; +import io.rubrica.keystore.FileKeyStoreProvider; +import io.rubrica.keystore.KeyStoreProvider; +import io.rubrica.keystore.KeyStoreUtilities; +import io.rubrica.utils.TiempoUtils; +import io.rubrica.utils.Utils; +import io.rubrica.utils.UtilsCrlOcsp; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.security.KeyStore; +import java.security.KeyStoreException; +import java.security.cert.X509Certificate; +import java.time.Instant; +import java.time.format.DateTimeFormatter; +import java.time.temporal.TemporalAccessor; +import java.util.Base64; +import java.util.Date; +import java.util.List; +import io.rubrica.utils.Json; + +import javax.ejb.Stateless; +import javax.validation.constraints.NotNull; + +/** + * Buscar en una lista de URLs permitidos para utilizar como API. Esto permite + * federar la utilización de FirmaEC sobre otra infraestructura, consultando en + * una lista de servidores permitidos. + * + * @author Christian Espinosa , Misael + * Fernández + */ +@Stateless +public class ServicioAppValidarCertificadoDigital { + + /** + * Busca un ApiUrl por URL. + * + * @param pkcs12 + * @param password + * @param base64 + * @return json + */ + public String appValidarCertificadoDigital(@NotNull String pkcs12, @NotNull String password, @NotNull String base64) { + Certificado certificado = null; + String retorno = null; + boolean caducado = true, revocado = true; + + try { + byte encodedPkcs12[] = Base64.getDecoder().decode(pkcs12); + InputStream inputStreamPkcs12 = new ByteArrayInputStream(encodedPkcs12); + + KeyStoreProvider ksp = new FileKeyStoreProvider(inputStreamPkcs12); + KeyStore keyStore; + keyStore = ksp.getKeystore(password.toCharArray()); + + List signingAliases = KeyStoreUtilities.getSigningAliases(keyStore); + String alias = signingAliases.get(0).getAlias(); + + X509Certificate x509Certificate = (X509Certificate) keyStore.getCertificate(alias); + DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME; + TemporalAccessor accessor = dateTimeFormatter.parse(TiempoUtils.getFechaHoraServidor(null, base64)); + Date fechaHoraISO = Date.from(Instant.from(accessor)); + //Validad certificado revocado + //Date fechaRevocado = fechaString_Date("2022-06-01 10:00:16"); + Date fechaRevocado = UtilsCrlOcsp.validarFechaRevocado(x509Certificate, null); + if (fechaRevocado != null && fechaRevocado.compareTo(fechaHoraISO) <= 0) { + retorno = "Certificado revocado: " + fechaRevocado; + revocado = true; + } else { + revocado = false; + } + //if (fechaHoraISO.compareTo(x509Certificate.getNotBefore()) <= 0 || fechaHoraISO.compareTo(fechaString_Date("2022-06-21 10:00:16")) >= 0) { + if (fechaHoraISO.compareTo(x509Certificate.getNotBefore()) <= 0 || fechaHoraISO.compareTo(x509Certificate.getNotAfter()) >= 0) { + retorno = "Certificado caducado"; + caducado = true; + } else { + caducado = false; + } + DatosUsuario datosUsuario = CertEcUtils.getDatosUsuarios(x509Certificate); + certificado = new Certificado( + Util.getCN(x509Certificate), + CertEcUtils.getNombreCA(x509Certificate), + Utils.dateToCalendar(x509Certificate.getNotBefore()), + Utils.dateToCalendar(x509Certificate.getNotAfter()), + null, + //Utils.dateToCalendar(fechaString_Date("2022-06-01 10:00:16")), + Utils.dateToCalendar(UtilsCrlOcsp.validarFechaRevocado(x509Certificate, null)), + caducado, + datosUsuario); + } catch (KeyStoreException kse) { + if (kse.getCause().toString().contains("Invalid keystore format")) { + retorno = "Certificado digital es inválido."; + } + if (kse.getCause().toString().contains("keystore password was incorrect")) { + retorno = "La contraseña es inválida."; + } + } catch (CertificadoInvalidoException | IOException ex) { + retorno = "Excepción no conocida: " + ex; + ex.printStackTrace(); + } finally { + JsonObject jsonObject = new JsonObject(); + boolean signValidate = true; + if (certificado != null) { + //TODO reparar al verificar un certificado no encontrado + if (revocado || certificado.getValidated() || !certificado.getDatosUsuario().isCertificadoDigitalValido()) { + signValidate = false; + } else { + signValidate = true; + } + jsonObject.addProperty("signValidate", signValidate); + jsonObject.addProperty("docValidate", false); + jsonObject.addProperty("error", retorno); + String jsonCertificado = Json.generarJsonCertificado(certificado); + JsonParser jsonParser = new JsonParser(); + jsonObject.add("certificado", (JsonArray) jsonParser.parse(jsonCertificado)); + } else { + jsonObject.addProperty("signValidate", false); + jsonObject.addProperty("docValidate", false); + jsonObject.addProperty("error", retorno); + jsonObject.add("certificado", null); + } + JsonArray jsonArray = new JsonArray(); + jsonArray.add(jsonObject); + return jsonArray.toString(); + } + } +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/ServicioAppVerificarDocumento.java b/src/main/java/ec/gob/firmadigital/servicio/ServicioAppVerificarDocumento.java new file mode 100644 index 0000000..8b132c4 --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/ServicioAppVerificarDocumento.java @@ -0,0 +1,70 @@ +/* + * Firma Digital: Servicio + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package ec.gob.firmadigital.servicio; + +import com.itextpdf.kernel.pdf.PdfReader; +import javax.ejb.Stateless; + +import io.rubrica.certificate.to.Documento; +import io.rubrica.exceptions.SignatureVerificationException; +import io.rubrica.sign.SignInfo; +import io.rubrica.sign.Signer; +import io.rubrica.sign.pdf.PDFSignerItext; +import io.rubrica.utils.Json; +import static io.rubrica.utils.Utils.pdfToDocumento; +import java.io.ByteArrayInputStream; +import java.io.InputStream; +import java.util.ArrayList; +import javax.validation.constraints.NotNull; + +/** + * + * @author Christian Espinosa , Misael + * Fernández + */ +@Stateless +public class ServicioAppVerificarDocumento { + + public String verificarDocumento(@NotNull String base64Documento, @NotNull String base64) { + String retorno = null; + Documento documento = null; + try { + byte[] byteDocumento = java.util.Base64.getDecoder().decode(base64Documento); + InputStream inputStreamDocumento = new ByteArrayInputStream(byteDocumento); + PdfReader pdfReader = new PdfReader(inputStreamDocumento); + Signer signer = new PDFSignerItext(); + java.util.List signInfos; + signInfos = signer.getSigners(byteDocumento); + documento = pdfToDocumento(pdfReader, signInfos); + } catch (java.lang.UnsupportedOperationException uoe) { + retorno = "No es posible procesar el documento desde dispositivo móvil\nIntentar en FirmaEC de Escritorio"; + } catch (com.itextpdf.io.IOException ioe) { + retorno = "El archivo no es PDF"; + } catch (SignatureVerificationException sve) { + retorno = sve.toString(); + } catch (Exception ex) { + retorno = ex.toString(); + } + + if (documento == null) { + documento = new Documento(false, false, new ArrayList<>(), retorno); + } + + return Json.generarJsonDocumento(documento); + } + +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/ServicioDocumento.java b/src/main/java/ec/gob/firmadigital/servicio/ServicioDocumento.java index 30591a3..a6e2672 100644 --- a/src/main/java/ec/gob/firmadigital/servicio/ServicioDocumento.java +++ b/src/main/java/ec/gob/firmadigital/servicio/ServicioDocumento.java @@ -18,10 +18,9 @@ import static ec.gob.firmadigital.servicio.token.TokenTimeout.DEFAULT_TIMEOUT_HOURS; import static ec.gob.firmadigital.servicio.token.TokenTimeout.DEFAULT_TIMEOUT_MINUTES; import static ec.gob.firmadigital.servicio.token.TokenTimeout.IS_PRODUCTION; - +import com.itextpdf.kernel.pdf.PdfReader; import java.io.IOException; import java.net.URL; -import java.security.cert.X509Certificate; import java.util.ArrayList; import java.util.Arrays; import java.util.Base64; @@ -31,15 +30,12 @@ import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; - import javax.ejb.EJB; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.validation.constraints.NotNull; - import ec.gob.firmadigital.servicio.model.Documento; -import ec.gob.firmadigital.servicio.pdf.ServicioValidacionPdf; import ec.gob.firmadigital.servicio.token.ServicioToken; import ec.gob.firmadigital.servicio.token.TokenExpiradoException; import ec.gob.firmadigital.servicio.token.TokenInvalidoException; @@ -51,10 +47,15 @@ import io.rubrica.exceptions.InvalidFormatException; import io.rubrica.sign.SignInfo; import io.rubrica.sign.Signer; -import io.rubrica.sign.pdf.PDFSigner; -import io.rubrica.utils.FileUtils; +import io.rubrica.sign.pdf.PDFSignerItext; +import io.rubrica.sign.xades.XAdESSigner; import io.rubrica.utils.Utils; -import java.io.File; +import java.io.ByteArrayInputStream; +import java.io.InputStream; +import java.io.StringReader; +import javax.json.Json; +import javax.json.JsonObject; +import javax.json.JsonReader; /** * Servicio para almacenar, actualizar y obtener documentos desde los sistemas @@ -71,12 +72,8 @@ public class ServicioDocumento { @EJB private ServicioSistemaTransversal servicioSistemaTransversal; - @EJB - private ServicioValidacionPdf servicioValidacionPdf; - @EJB private ServicioLog servicioLog; - @PersistenceContext private EntityManager em; @@ -93,7 +90,6 @@ public class ServicioDocumento { */ public String crearDocumentos(@NotNull String cedula, @NotNull String nombreSistema, @NotNull Map archivos) throws Base64InvalidoException { - // Verificar si existe el sistema servicioSistemaTransversal.buscarSistema(nombreSistema); @@ -109,10 +105,9 @@ public String crearDocumentos(@NotNull String cedula, @NotNull String nombreSist documento.setFecha(new Date()); documento.setSistema(nombreSistema); documento.setArchivo(decodificarBase64(archivo)); - // Almacenar em.persist(documento); - +// String cargo = ""; // Agregar a la lista de Ids ids.add(documento.getId().toString()); } @@ -129,7 +124,6 @@ public String crearDocumentos(@NotNull String cedula, @NotNull String nombreSist } else { expiracion = TokenTimeout.addMinutes(new Date(), DEFAULT_TIMEOUT_MINUTES); } - // Retorna el Token return servicioToken.generarToken(parametros, expiracion); } @@ -152,8 +146,11 @@ public Map obtenerDocumentos(String token) throws TokenInvalidoExc for (String id : convertirEnList(ids)) { Long primaryKey = Long.parseLong(id); Documento documento = em.find(Documento.class, primaryKey); - String archivo = codificarBase64(documento.getArchivo()); - archivos.put(primaryKey, archivo); + String archivo = null; + if (documento != null) { + archivo = codificarBase64(documento.getArchivo()); + archivos.put(primaryKey, archivo); + } } return archivos; @@ -164,6 +161,7 @@ public Map obtenerDocumentos(String token) throws TokenInvalidoExc * @param token * @param archivos * @param cedulaJson + * @param base64 * @return * @throws ec.gob.firmadigital.servicio.token.TokenInvalidoException * @throws ec.gob.firmadigital.servicio.CedulaInvalidaException @@ -172,7 +170,7 @@ public Map obtenerDocumentos(String token) throws TokenInvalidoExc * @throws ec.gob.firmadigital.servicio.CertificadoRevocadoException * @throws ec.gob.firmadigital.servicio.DocumentoNoExisteException */ - public int actualizarDocumentos(String token, Map archivos, String cedulaJson) + public int actualizarDocumentos(String token, Map archivos, String cedulaJson, String base64) throws TokenInvalidoException, CedulaInvalidaException, TokenExpiradoException, Base64InvalidoException, CertificadoRevocadoException, DocumentoNoExisteException { @@ -220,70 +218,58 @@ public int actualizarDocumentos(String token, Map archivos, String throw new DocumentoNoExisteException("El documento " + primaryKey + " no existe en la base de datos"); } - byte[] archivo = decodificarBase64(archivoBase64); + byte[] byteDocumento = java.util.Base64.getDecoder().decode(archivoBase64); + java.util.List signInfos; // Obtener el nombre del firmante para almacenar el documento en el // sistema transversal - io.rubrica.certificate.to.Documento documentoTo = null; - + String datosFirmante = ""; try { - File file = null; + io.rubrica.certificate.to.Documento documentoTo = null; try { - file = FileUtils.byteArrayConvertToFile(archivo); - } catch (IOException e) { - throw new IllegalArgumentException("Error al crear el archivo temporal"); - } - // Se valida la extension del archivo - String mimeType = FileUtil.getMimeType(archivo); - if (mimeType.contains("pdf")) { - documentoTo = Utils.pdfToDocumento(file); - } - if (mimeType.contains("xml")) { -// Signer docSigner = Utils.documentSigner(file); -// documentoTo = Utils.signInfosToCertificados(docSigner.getSigners(archivo)); + // Se valida la extension del archivo + String mimeTypeRest = FileUtil.getMimeType(byteDocumento); + if (mimeTypeRest.contains("pdf")) { + InputStream inputStreamDocumento = new ByteArrayInputStream(byteDocumento); + PdfReader pdfReader = new PdfReader(inputStreamDocumento); + Signer signer = new PDFSignerItext(); + signInfos = signer.getSigners(byteDocumento); + documentoTo = Utils.pdfToDocumento(pdfReader, signInfos); + datosFirmante = documentoTo.getCertificados().get(documentoTo.getCertificados().size() - 1).getDatosUsuario().getNombre() + + documentoTo.getCertificados().get(documentoTo.getCertificados().size() - 1).getDatosUsuario().getApellido(); + } + if (mimeTypeRest.contains("xml")) { + datosFirmante = ""; + XAdESSigner xAdESSigner = new XAdESSigner(); + documentoTo = Utils.signInfosToCertificados(xAdESSigner.getSigners(byteDocumento)); + } + } catch (InvalidFormatException | IOException e) { + throw new IllegalArgumentException("Error en la verificacion de firma", e); + } catch (DocumentoException | CertificadoInvalidoException ex) { + Logger.getLogger(ServicioDocumento.class.getName()).log(Level.SEVERE, null, ex); + } catch (Exception ex) { + Logger.getLogger(ServicioDocumento.class.getName()).log(Level.SEVERE, null, ex); } - } catch (InvalidFormatException | IOException e) { - throw new IllegalArgumentException("Error en la verificacion de firma", e); - } catch (DocumentoException ex) { - Logger.getLogger(ServicioDocumento.class.getName()).log(Level.SEVERE, null, ex); - } catch (CertificadoInvalidoException ex) { - Logger.getLogger(ServicioDocumento.class.getName()).log(Level.SEVERE, null, ex); - } catch (Exception ex) { - Logger.getLogger(ServicioDocumento.class.getName()).log(Level.SEVERE, null, ex); - } - - try { - String apiKeyRest = servicioSistemaTransversal.buscarApiKeyRest(nombreSistema); + String apiKeyRest = servicioSistemaTransversal.buscarApiKeyRest(nombreSistema); if (apiKeyRest != null) { servicioSistemaTransversal.almacenarDocumentoREST(documentoTo, documento.getCedula(), documento.getNombre(), archivoBase64, url, apiKeyRest); } else { - String datosFirmante = ""; - X509Certificate certificado = null; - String mimeType = FileUtil.getMimeType(archivo); - if (mimeType.contains("pdf")) { - datosFirmante = servicioValidacionPdf.getNombre(archivo); - Signer signer = new PDFSigner(); - List singInfos = signer.getSigners(archivo); - SignInfo firma = singInfos.get(0); - certificado = firma.getCerts()[0]; - } servicioSistemaTransversal.almacenarDocumento(documento.getCedula(), documento.getNombre(), - archivoBase64, datosFirmante, url, certificado); + archivoBase64, datosFirmante, url); } documentosFirmados++; - logger.info("Documento enviado al sistema " + nombreSistema); + logger.log(Level.INFO, "Documento enviado al sistema {0}, firmado por {1}, sistema operativo {2}, tamano documento (bytes) {3}", new Object[]{nombreSistema, FileUtil.hashMD5(cedulaToken), obtenerSO(base64), documento.getArchivo().length}); servicioLog.info("ServicioDocumento::actualizarDocumentos", "Documento enviado al sistema " + nombreSistema + ", firmado por " + FileUtil.hashMD5(cedulaToken) + + ", sistema operativo " + obtenerSO(base64) + ", tamano documento (bytes) " + documento.getArchivo().length); } catch (SistemaTransversalException e) { String mensajeError = "No se pudo enviar el documento al sistema " + nombreSistema; servicioLog.error("ServicioDocumento::actualizarDocumentos", mensajeError); logger.log(Level.SEVERE, mensajeError); - } catch (InvalidFormatException | IOException e) { - throw new IllegalArgumentException("Error al obtener información del firmante", e); } // Eliminar el documento @@ -316,4 +302,13 @@ private byte[] decodificarBase64(String base64) throws Base64InvalidoException { private String codificarBase64(byte[] data) { return Base64.getEncoder().encodeToString(data); } + + private String obtenerSO(String base64) { + String toString = new String(Base64.getDecoder().decode(base64)); + JsonObject jsonObjectBase64; + try (JsonReader jsonReader = Json.createReader(new StringReader(toString))) { + jsonObjectBase64 = jsonReader.readObject(); + } + return jsonObjectBase64.getString("sistemaOperativo"); + } } diff --git a/src/main/java/ec/gob/firmadigital/servicio/ServicioEliminacionDocumento.java b/src/main/java/ec/gob/firmadigital/servicio/ServicioEliminacionDocumento.java index 9e57548..37af9ad 100644 --- a/src/main/java/ec/gob/firmadigital/servicio/ServicioEliminacionDocumento.java +++ b/src/main/java/ec/gob/firmadigital/servicio/ServicioEliminacionDocumento.java @@ -18,13 +18,11 @@ import static ec.gob.firmadigital.servicio.token.TokenTimeout.DEFAULT_TIMEOUT_HOURS; import static ec.gob.firmadigital.servicio.token.TokenTimeout.DEFAULT_TIMEOUT_MINUTES; import static ec.gob.firmadigital.servicio.token.TokenTimeout.IS_PRODUCTION; - import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; - import javax.annotation.PostConstruct; import javax.annotation.Resource; import javax.ejb.EJBException; @@ -50,9 +48,8 @@ public class ServicioEliminacionDocumento { @Resource(lookup = "java:/FirmaDigitalDS") private DataSource ds; - private static final Logger logger = Logger.getLogger( - ServicioEliminacionDocumento.class.getName()); - + private static final Logger logger = Logger.getLogger(ServicioEliminacionDocumento.class.getName()); + //GRANJA DE SERVIDORES EN PRODUCCION - COMENTAR EVITAR ELIMINAR DOCUMENTOS @PostConstruct public void init() { borrarDocumentos(); @@ -62,6 +59,7 @@ public void init() { //@Schedule(hour = "*", minute = "*/" + DEFAULT_TIMEOUT_MINUTES, persistent = false) //To run on every Monday at 9 am @Schedule(dayOfWeek = "Mon", hour = "9", persistent = false) + //GRANJA DE SERVIDORES EN PRODUCCION - COMENTAR EVITAR ELIMINAR DOCUMENTOS public void borrarDocumentos() { Connection conn = null; Statement st = null; @@ -78,7 +76,7 @@ public void borrarDocumentos() { n = st.executeUpdate("DELETE FROM documento WHERE fecha < NOW() - INTERVAL '" + DEFAULT_TIMEOUT_MINUTES + " minutes'"); } - logger.log(Level.INFO, "Registros eliminados: {0}", n); + logger.info("Registros eliminados: " + n); } catch (SQLException e) { logger.log(Level.SEVERE, "Error al borrar documentos", e); throw new EJBException(e); diff --git a/src/main/java/ec/gob/firmadigital/servicio/ServicioEstadisticaDocumentosFirmados.java b/src/main/java/ec/gob/firmadigital/servicio/ServicioEstadisticaDocumentosFirmados.java index 6346af6..d7a44dd 100644 --- a/src/main/java/ec/gob/firmadigital/servicio/ServicioEstadisticaDocumentosFirmados.java +++ b/src/main/java/ec/gob/firmadigital/servicio/ServicioEstadisticaDocumentosFirmados.java @@ -19,25 +19,23 @@ import java.math.BigInteger; import java.util.List; import java.util.logging.Logger; - import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; -import javax.persistence.PersistenceException; -import javax.persistence.Query; import javax.validation.constraints.NotNull; - import javax.ejb.EJB; import javax.json.Json; import javax.json.JsonArrayBuilder; + import javax.json.JsonObjectBuilder; + /** - * Buscar en una lista de URLs permitidos para utilizar como API. Esto permite - * federar la utilización de FirmaEC sobre otra infraestructura, consultando en - * una lista de servidores permitidos. + * Buscar en una lista de URLs permitidos para utilizar como API. Esto permite federar la + * utilización de FirmaEC sobre otra infraestructura, consultando en una lista + * de servidores permitidos. * - * @author Misael Fernández + * @author Ricardo Arguello , Misael Fernández */ @Stateless public class ServicioEstadisticaDocumentosFirmados { @@ -60,6 +58,7 @@ public class ServicioEstadisticaDocumentosFirmados { * @throws ApiEstadisticaException */ public String buscarPorFechaDesdeFechaHasta(@NotNull String sistema, @NotNull String fechaDesde, @NotNull String fechaHasta) throws ApiEstadisticaException { + String retorno = ""; try { String nativeQuery = "SELECT s.descripcion, \n" + " count(*) AS total_firmas, \n" @@ -75,22 +74,14 @@ public String buscarPorFechaDesdeFechaHasta(@NotNull String sistema, @NotNull St + " EXTRACT (year FROM fecha) AS year\n" + "FROM log l INNER JOIN sistema s ON l.descripcion like '%'||s.nombre||',%'\n" + "WHERE\n" - + " s.nombre = :sistema AND --nombre del sistema\n" + + " s.nombre = '" + sistema + "' AND --nombre del sistema\n" + " severidad = 0 AND --documentos firmados con éxito\n" - + " fecha BETWEEN :fechaDesde AND :fechaHasta\n" + + " fecha BETWEEN '" + fechaDesde + "' AND '" + fechaHasta + "'\n" + "GROUP BY EXTRACT (month FROM fecha), EXTRACT (year FROM fecha), s.descripcion"; - - Query query = em.createNativeQuery(nativeQuery); - query.setParameter("sistema", sistema); - query.setParameter("fechaDesde", fechaDesde); - query.setParameter("fechaHasta", fechaHasta); - - @SuppressWarnings("unchecked") - List results = query.getResultList(); - + List query = em.createNativeQuery(nativeQuery).getResultList(); // Para construir un array de firmantes JsonArrayBuilder arrayBuilder = Json.createArrayBuilder(); - for (Object[] result : results) { + for (Object[] result : query) { JsonObjectBuilder builder = Json.createObjectBuilder(); builder.add("descripcion", (String) result[0]); builder.add("total_firmas", (BigInteger) result[1]); @@ -99,25 +90,28 @@ public String buscarPorFechaDesdeFechaHasta(@NotNull String sistema, @NotNull St builder.add("year", (double) result[4]); arrayBuilder.add(builder); } - String json = arrayBuilder.build().toString(); + retorno = json; servicioLog.info("ServicioApiUrl::buscarPorFechaDesdeFechaHasta", "Estadística de documentos firmados con fecha desde: " + fechaDesde + " | fecha hasta: " + fechaHasta); - return json; - } catch (IndexOutOfBoundsException e) { - String retorno = "No se encuentran registros para generar estadísticas"; +// } catch (java.lang.Exception e) { +// e.printStackTrace(); + } catch (java.lang.IndexOutOfBoundsException e) { + retorno = "No se encuentran registros para generar estadísticas"; logger.severe(retorno); servicioLog.error("ServicioApiUrl::buscarPorFechaDesdeFechaHasta", retorno); throw new ApiEstadisticaException(retorno); - } catch (ClassCastException e) { - String retorno = "Problema con tipo de dato en la base de datos"; + } catch (java.lang.ClassCastException e) { + retorno = "Problema con tipo de dato en la base de datos"; logger.severe(retorno); servicioLog.error("ServicioApiUrl::buscarPorFechaDesdeFechaHasta", retorno); throw new ApiEstadisticaException(retorno); - } catch (PersistenceException e) { - String retorno = "Problema con el formato fecha"; + } catch (javax.persistence.PersistenceException e) { + retorno = "Problema con el formato fecha"; logger.severe(retorno + ": " + "fecha desde: " + fechaDesde + " | fecha hasta: " + fechaHasta); servicioLog.error("ServicioApiUrl::buscarPorFechaDesdeFechaHasta", retorno + ": " + "fecha desde: " + fechaDesde + " | fecha hasta: " + fechaHasta); throw new ApiEstadisticaException(retorno); + } finally { + return retorno; } } } diff --git a/src/main/java/ec/gob/firmadigital/servicio/ServicioEstadisticaUsuarios.java b/src/main/java/ec/gob/firmadigital/servicio/ServicioEstadisticaUsuarios.java index 43e121f..26f285e 100644 --- a/src/main/java/ec/gob/firmadigital/servicio/ServicioEstadisticaUsuarios.java +++ b/src/main/java/ec/gob/firmadigital/servicio/ServicioEstadisticaUsuarios.java @@ -23,8 +23,6 @@ import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; -import javax.persistence.PersistenceException; -import javax.persistence.Query; import javax.validation.constraints.NotNull; import javax.ejb.EJB; @@ -37,7 +35,7 @@ * federar la utilización de FirmaEC sobre otra infraestructura, consultando en * una lista de servidores permitidos. * - * @author Misael Fernández + * @author Ricardo Arguello , Misael Fernández */ @Stateless public class ServicioEstadisticaUsuarios { @@ -60,6 +58,7 @@ public class ServicioEstadisticaUsuarios { * @throws ApiEstadisticaException */ public String buscarPorFechaDesdeFechaHasta(@NotNull String sistema, @NotNull String fechaDesde, @NotNull String fechaHasta) throws ApiEstadisticaException { + String retorno = ""; try { String nativeQuery = "SELECT s.descripcion, \n" + " count(DISTINCT SUBSTRING(l.descripcion, \n" @@ -74,22 +73,14 @@ public String buscarPorFechaDesdeFechaHasta(@NotNull String sistema, @NotNull St + " EXTRACT (year FROM fecha) AS year\n" + "FROM log l INNER JOIN sistema s ON l.descripcion like '%'||s.nombre||',%'\n" + "WHERE\n" - + " s.nombre = :sistema AND --nombre del sistema\n" + + " s.nombre = '" + sistema + "' AND --nombre del sistema\n" + " severidad = 0 AND --documentos firmados con éxito\n" - + " fecha BETWEEN :fechaDesde AND :fechaHasta\n" + + " fecha BETWEEN '" + fechaDesde + "' AND '" + fechaHasta + "'\n" + " GROUP BY EXTRACT (month FROM fecha), EXTRACT (year FROM fecha), s.descripcion"; - - Query query = em.createNativeQuery(nativeQuery); - query.setParameter("sistema", sistema); - query.setParameter("fechaDesde", fechaDesde); - query.setParameter("fechaHasta", fechaHasta); - - @SuppressWarnings("unchecked") - List results = query.getResultList(); - + List query = em.createNativeQuery(nativeQuery).getResultList(); // Para construir un array de firmantes JsonArrayBuilder arrayBuilder = Json.createArrayBuilder(); - for (Object[] result : results) { + for (Object[] result : query) { JsonObjectBuilder builder = Json.createObjectBuilder(); builder.add("descripcion", (String) result[0]); builder.add("total_usuarios", (BigInteger) result[1]); @@ -97,25 +88,26 @@ public String buscarPorFechaDesdeFechaHasta(@NotNull String sistema, @NotNull St builder.add("year", (double) result[3]); arrayBuilder.add(builder); } - String json = arrayBuilder.build().toString(); + retorno = json; servicioLog.info("ServicioApiUrl::buscarPorFechaDesdeFechaHasta", "Estadística de documentos firmados con fecha desde: " + fechaDesde + " | fecha hasta: " + fechaHasta); - return json; - } catch (IndexOutOfBoundsException e) { - String retorno = "No se encuentran registros para generar estadísticas"; + } catch (java.lang.IndexOutOfBoundsException e) { + retorno = "No se encuentran registros para generar estadísticas"; logger.severe(retorno); servicioLog.error("ServicioApiUrl::buscarPorFechaDesdeFechaHasta", retorno); throw new ApiEstadisticaException(retorno); - } catch (ClassCastException e) { - String retorno = "Problema con tipo de dato en la base de datos"; + } catch (java.lang.ClassCastException e) { + retorno = "Problema con tipo de dato en la base de datos"; logger.severe(retorno); servicioLog.error("ServicioApiUrl::buscarPorFechaDesdeFechaHasta", retorno); throw new ApiEstadisticaException(retorno); - } catch (PersistenceException e) { - String retorno = "Problema con el formato fecha"; + } catch (javax.persistence.PersistenceException e) { + retorno = "Problema con el formato fecha"; logger.severe(retorno + ": " + "fecha desde: " + fechaDesde + " | fecha hasta: " + fechaHasta); servicioLog.error("ServicioApiUrl::buscarPorFechaDesdeFechaHasta", retorno + ": " + "fecha desde: " + fechaDesde + " | fecha hasta: " + fechaHasta); throw new ApiEstadisticaException(retorno); + } finally { + return retorno; } } } diff --git a/src/main/java/ec/gob/firmadigital/servicio/ServicioSistemaTransversal.java b/src/main/java/ec/gob/firmadigital/servicio/ServicioSistemaTransversal.java index c5bfc69..53e37fa 100644 --- a/src/main/java/ec/gob/firmadigital/servicio/ServicioSistemaTransversal.java +++ b/src/main/java/ec/gob/firmadigital/servicio/ServicioSistemaTransversal.java @@ -15,14 +15,12 @@ */ package ec.gob.firmadigital.servicio; -import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import java.io.StringWriter; import java.net.MalformedURLException; import java.net.URL; import java.security.MessageDigest; -import java.security.cert.X509Certificate; import java.text.SimpleDateFormat; import java.util.Date; import java.util.logging.Level; @@ -34,15 +32,15 @@ import javax.persistence.PersistenceContext; import javax.persistence.TypedQuery; import javax.xml.bind.DatatypeConverter; -import javax.xml.soap.MessageFactory; -import javax.xml.soap.Name; -import javax.xml.soap.SOAPBody; -import javax.xml.soap.SOAPBodyElement; -import javax.xml.soap.SOAPConnection; -import javax.xml.soap.SOAPConnectionFactory; -import javax.xml.soap.SOAPException; -import javax.xml.soap.SOAPFactory; -import javax.xml.soap.SOAPMessage; +import jakarta.xml.soap.MessageFactory; +import jakarta.xml.soap.Name; +import jakarta.xml.soap.SOAPBody; +import jakarta.xml.soap.SOAPBodyElement; +import jakarta.xml.soap.SOAPConnection; +import jakarta.xml.soap.SOAPConnectionFactory; +import jakarta.xml.soap.SOAPException; +import jakarta.xml.soap.SOAPFactory; +import jakarta.xml.soap.SOAPMessage; import javax.xml.transform.OutputKeys; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory; @@ -54,10 +52,7 @@ import org.w3c.dom.NodeList; import ec.gob.firmadigital.servicio.model.Sistema; -import io.rubrica.certificate.CertEcUtils; import io.rubrica.certificate.to.Certificado; -import io.rubrica.certificate.to.Documento; -import io.rubrica.utils.Utils; import java.text.DateFormat; import java.util.Calendar; import javax.ws.rs.client.Client; @@ -230,11 +225,9 @@ private String dateToString(Date date) { * @param archivo * @param datosFirmante * @param url - * @param certificate * @throws SistemaTransversalException */ - public void almacenarDocumento(String usuario, String documento, String archivo, String datosFirmante, URL url, - X509Certificate certificate) throws SistemaTransversalException { + public void almacenarDocumento(String usuario, String documento, String archivo, String datosFirmante, URL url) throws SistemaTransversalException { try { MessageFactory factory = MessageFactory.newInstance(); SOAPMessage soapMessage = factory.createMessage(); @@ -248,18 +241,8 @@ public void almacenarDocumento(String usuario, String documento, String archivo, bodyElement.addChildElement("set_var_archivo").addTextNode(archivo); bodyElement.addChildElement("set_var_datos_firmante").addTextNode(datosFirmante); bodyElement.addChildElement("set_var_fecha").addTextNode(sdf.format(new Date())); - String institucion = ""; String cargo = ""; - if (certificate == null) { - System.out.println("Advertencia: El certificado es nulo"); - institucion = "No encontrado"; - cargo = "No encontrado"; - } else { - institucion = CertEcUtils.getDatosUsuarios(certificate).getInstitucion(); - cargo = CertEcUtils.getDatosUsuarios(certificate).getCargo(); - } - bodyElement.addChildElement("set_var_institucion").addTextNode(institucion); bodyElement.addChildElement("set_var_cargo").addTextNode(cargo); diff --git a/src/main/java/ec/gob/firmadigital/servicio/ServicioVersion.java b/src/main/java/ec/gob/firmadigital/servicio/ServicioVersion.java new file mode 100644 index 0000000..b117e9f --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/ServicioVersion.java @@ -0,0 +1,108 @@ +/* + * Firma Digital: Servicio + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package ec.gob.firmadigital.servicio; + +import java.util.logging.Logger; + +import javax.ejb.Stateless; +import javax.persistence.EntityManager; +import javax.persistence.NoResultException; +import javax.persistence.NonUniqueResultException; +import javax.persistence.PersistenceContext; +import javax.persistence.TypedQuery; +import javax.validation.constraints.NotNull; + +import ec.gob.firmadigital.servicio.model.Version; +import ec.gob.firmadigital.servicio.util.PropertiesUtils; +import io.rubrica.utils.OsUtils; +import javax.ejb.EJB; + +/** + * Buscar en una lista de versiones. Esto permite tener el control de los + * dispositivos que utilizan FirmaEC. + * + * @author Christian Espinosa , Misael + * Fernández + */ +@Stateless +public class ServicioVersion { + + @EJB + private ServicioLog servicioLog; + + @PersistenceContext + private EntityManager em; + + private static final Logger logger = Logger.getLogger(ServicioVersion.class.getName()); + + /** + * Busca una versión, para ello se utiliza el sha con la versión 256 + * + * @param sistemaOperativo + * @param aplicacion + * @param versionApp + * @param sha + * @return + * @throws VersionException + */ + public String validarVersion(@NotNull String sistemaOperativo, @NotNull String aplicacion, @NotNull String versionApp, @NotNull String sha) throws VersionException { + String retorno = ""; + com.google.gson.JsonObject gsonObject = null; + try { + TypedQuery query = em.createNamedQuery("Version.validarVersion", Version.class); + query.setParameter("sistema_operativo", OsUtils.getNameOs(sistemaOperativo)); + query.setParameter("aplicacion", aplicacion); + query.setParameter("version", versionApp); +// query.setParameter("sha", sha); + Version version = query.getSingleResult(); + if (version.getStatus()) { + retorno = "Version enabled"; + servicioLog.info("ServicioVersion::validarVersion", + "sistemaOperativo " + sistemaOperativo + ", versionApp " + versionApp + ", sha" + sha + ", " + retorno); + } else { + retorno = "Version disabled"; + servicioLog.warning("ServicioVersion::validarVersion", + "sistemaOperativo " + sistemaOperativo + ", versionApp " + versionApp + ", sha" + sha + ", " + retorno); + } + } catch (NoResultException e) { + retorno = "Versión no encontrado"; + logger.severe(retorno); + servicioLog.error("ServicioVersion::validarVersion", + "sistemaOperativo " + sistemaOperativo + ", versionApp " + versionApp + ", sha" + sha + ", " + retorno); + throw new ApiUrlNoEncontradoException(retorno); + } catch (NonUniqueResultException e) { + retorno = "Varias Versiones registradas"; + logger.severe(retorno); + servicioLog.error("ServicioVersion::validarVersion", + "sistemaOperativo " + sistemaOperativo + ", versionApp " + versionApp + ", sha" + sha + ", " + retorno); + throw new ApiUrlNoEncontradoException(retorno); + } catch (java.lang.NullPointerException e) { + retorno = "Revisar el estado de la URL registrada"; + logger.severe(retorno); + servicioLog.error("ServicioVersion::validarVersion", + "sistemaOperativo " + sistemaOperativo + ", versionApp " + versionApp + ", sha" + sha + ", " + retorno); + throw new ApiUrlNoEncontradoException(retorno); + } finally { + gsonObject = new com.google.gson.JsonObject(); + gsonObject.addProperty("resultado", retorno); + if (aplicacion.equals("MOBILE") || aplicacion.equals("LIBRERIA")) { + gsonObject.addProperty("documentoKB", PropertiesUtils.getDocumentoKB()); + } + return gsonObject.toString(); + } + } +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/VersionException.java b/src/main/java/ec/gob/firmadigital/servicio/VersionException.java new file mode 100644 index 0000000..35bcdb6 --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/VersionException.java @@ -0,0 +1,38 @@ +/* + * Firma Digital: Servicio + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package ec.gob.firmadigital.servicio; + +/** + * Excepcion lanzada en caso de problemas en la versión. + * + * @author Christian Espinosa , Misael + * Fernández + */ + +public class VersionException extends Exception { + + private static final long serialVersionUID = 5869629673463604058L; + + public VersionException() { + super(); + } + + public VersionException(String message) { + super(message); + } +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/crl/ServicioConsultaCrl.java b/src/main/java/ec/gob/firmadigital/servicio/crl/ServicioConsultaCrl.java index f250b6a..f199757 100644 --- a/src/main/java/ec/gob/firmadigital/servicio/crl/ServicioConsultaCrl.java +++ b/src/main/java/ec/gob/firmadigital/servicio/crl/ServicioConsultaCrl.java @@ -15,7 +15,6 @@ */ package ec.gob.firmadigital.servicio.crl; -import java.math.BigDecimal; import java.math.BigInteger; import java.sql.Connection; import java.sql.PreparedStatement; diff --git a/src/main/java/ec/gob/firmadigital/servicio/crl/ServicioDescargaCrl.java b/src/main/java/ec/gob/firmadigital/servicio/crl/ServicioDescargaCrl.java index c1a5209..85eb453 100644 --- a/src/main/java/ec/gob/firmadigital/servicio/crl/ServicioDescargaCrl.java +++ b/src/main/java/ec/gob/firmadigital/servicio/crl/ServicioDescargaCrl.java @@ -33,16 +33,13 @@ import java.util.Date; import java.util.logging.Level; import java.util.logging.Logger; - import javax.annotation.PostConstruct; import javax.annotation.Resource; import javax.ejb.EJBException; import javax.ejb.Schedule; import javax.ejb.Singleton; import javax.ejb.Startup; -import javax.ejb.TimerService; import javax.sql.DataSource; - import io.rubrica.crl.ServicioCRL; import io.rubrica.utils.HttpClient; import java.util.regex.Matcher; @@ -54,14 +51,9 @@ * @author Ricardo Arguello */ @Singleton -//GRANJA DE SERVIDORES EN PRODUCCION - COMENTAR EVITAR DESCARGA CRL @Startup -//GRANJA DE SERVIDORES EN PRODUCCION - COMENTAR EVITAR DESCARGA CRL public class ServicioDescargaCrl { - @Resource - private TimerService timerService; - @Resource(lookup = "java:/FirmaDigitalDS") private DataSource ds; @@ -71,18 +63,21 @@ public class ServicioDescargaCrl { @PostConstruct public void init() { crearTablaSiNoExiste(); - importarCrls(); + //importarCrls(); } + //GRANJA DE SERVIDORES EN PRODUCCION - COMENTAR EVITAR DESCARGA CRL - /** - * To run on every Monday at 9 am + * To run on every Monday at 9 am + * * @Schedule(dayOfWeek = "Mon", hour = "7", persistent = false) */ + /* @Schedule(dayOfWeek = "Mon", hour = "7", persistent = false) public void importarCrls() { logger.info("Iniciando el proceso de descarga de CRL"); + logger.info("Descargando CRL de BCE..."); X509CRL bceCrl = downloadCrl(ServicioCRL.BCE_CRL); @@ -116,13 +111,22 @@ public void importarCrls() { logger.info("Descargando CRL de UANATACA2..."); X509CRL uanatacaCrl2 = downloadCrl(ServicioCRL.UANATACA_CRL2); + logger.info("Descargando CRL de DATIL..."); + X509CRL datilCrl = downloadCrl(ServicioCRL.DATIL_CRL); + + logger.info("Descargando CRL de ARGOSDATA..."); + X509CRL argosDataCrl = downloadCrl(ServicioCRL.ARGOSDATA_CRL); + + logger.info("Descargando CRL de LAZZATE..."); + X509CRL lazzateCrl = downloadCrl(ServicioCRL.LAZZATE_CRL); + try (Connection conn = ds.getConnection(); - Statement st = conn.createStatement(); PreparedStatement ps = conn.prepareStatement( - "INSERT INTO crl_new (serial, fecharevocacion, razonrevocacion, entidadcertificadora) VALUES (?,?,?,?)")) { + "INSERT INTO crl (serial, fecharevocacion, razonrevocacion, entidadcertificadora) VALUES (?,?,?,?) " + + "ON CONFLICT (serial) " + + "DO UPDATE SET fecharevocacion = EXCLUDED.fecharevocacion, razonrevocacion = EXCLUDED.razonrevocacion, entidadcertificadora = EXCLUDED.entidadcertificadora")) { - logger.info("Creando tabla temporal"); - st.executeUpdate("CREATE TABLE crl_new (LIKE crl)"); + logger.info("Iniciando actualizacion de CRLs..."); int contadorBCE = 0; int contadorSD1 = 0, contadorSD2 = 0, contadorSD3 = 0, contadorSD4 = 0, contadorSD5 = 0; @@ -130,98 +134,117 @@ public void importarCrls() { int contadorANFAC = 0; int contadorDIGERCIC = 0; int contadorUANATACA1 = 0, contadorUANATACA2 = 0; + int contadorDATIL = 0; + int contadorARGOSDATA = 0; + int contadorLAZZATE = 0; if (bceCrl != null) { contadorBCE = insertarCrl(bceCrl, 1, ps); - logger.info("Registros insertados BCE: " + contadorBCE); + logger.info("Registros insertados/actualizados BCE: " + contadorBCE); } else { logger.info("No se inserta BCE"); } if (sdCrl1 != null) { contadorSD1 = insertarCrl(sdCrl1, 2, ps); - logger.info("Registros insertados Security Data 1: " + contadorSD1); + logger.info("Registros insertados/actualizados Security Data 1: " + contadorSD1); } else { logger.info("No se inserta Security Data 1"); } if (sdCrl2 != null) { contadorSD2 = insertarCrl(sdCrl2, 2, ps); - logger.info("Registros insertados Security Data 2: " + contadorSD2); + logger.info("Registros insertados/actualizados Security Data 2: " + contadorSD2); } else { logger.info("No se inserta Security Data 2"); } if (sdCrl3 != null) { contadorSD3 = insertarCrl(sdCrl3, 2, ps); - logger.info("Registros insertados Security Data 3: " + contadorSD3); + logger.info("Registros insertados/actualizados Security Data 3: " + contadorSD3); } else { logger.info("No se inserta Security Data 3"); } if (sdCrl4 != null) { contadorSD4 = insertarCrl(sdCrl4, 2, ps); - logger.info("Registros insertados Security Data 4: " + contadorSD4); + logger.info("Registros insertados/actualizados Security Data 4: " + contadorSD4); } else { logger.info("No se inserta Security Data 4"); } if (sdCrl5 != null) { contadorSD5 = insertarCrl(sdCrl5, 2, ps); - logger.info("Registros insertados Security Data 5: " + contadorSD5); + logger.info("Registros insertados/actualizados Security Data 5: " + contadorSD5); } else { logger.info("No se inserta Security Data 5"); } if (cjCrl != null) { contadorCJ = insertarCrl(cjCrl, 3, ps); - logger.info("Registros insertados CJ: " + contadorCJ); + logger.info("Registros insertados/actualizados CJ: " + contadorCJ); } else { logger.info("No se inserta CJ"); } if (anfAcCrl != null) { contadorANFAC = insertarCrl(anfAcCrl, 4, ps); - logger.info("Registros insertados ANFAC: " + contadorANFAC); + logger.info("Registros insertados/actualizados ANFAC: " + contadorANFAC); } else { logger.info("No se inserta ANFAC"); } if (uanatacaCrl1 != null) { contadorUANATACA1 = insertarCrl(uanatacaCrl1, 5, ps); - logger.info("Registros insertados UANATACA 1: " + contadorUANATACA1); + logger.info("Registros insertados/actualizados UANATACA 1: " + contadorUANATACA1); } else { logger.info("No se inserta UANATACA 1"); } if (uanatacaCrl2 != null) { contadorUANATACA2 = insertarCrl(uanatacaCrl2, 6, ps); - logger.info("Registros insertados UANATACA 2: " + contadorUANATACA2); + logger.info("Registros insertados/actualizados UANATACA 2: " + contadorUANATACA2); } else { logger.info("No se inserta UANATACA 2"); } - + if (digercicCrl != null) { contadorDIGERCIC = insertarCrl(digercicCrl, 7, ps); - logger.info("Registros insertados DIGERCIC: " + contadorDIGERCIC); + logger.info("Registros insertados/actualizados DIGERCIC: " + contadorDIGERCIC); } else { logger.info("No se inserta DIGERCIC"); } - int total = contadorBCE + contadorSD1 + contadorSD2 + contadorSD3 + contadorSD4 + contadorSD5 + contadorCJ + contadorANFAC + contadorUANATACA1 + contadorUANATACA2 + contadorDIGERCIC; - logger.info("Registros insertados Total: " + total); + if (datilCrl != null) { + contadorDATIL = insertarCrl(datilCrl, 8, ps); + logger.info("Registros insertados/actualizados DATIL: " + contadorDATIL); + } else { + logger.info("No se inserta DATIL"); + } - logger.info("Moviendo tabla temporal a definitiva"); - st.execute("ALTER TABLE crl RENAME TO crl_old"); - st.execute("ALTER TABLE crl_new RENAME TO crl"); - st.execute("DROP TABLE crl_old"); + if (argosDataCrl != null) { + contadorARGOSDATA = insertarCrl(argosDataCrl, 9, ps); + logger.info("Registros insertados/actualizados ARGOSDATA: " + contadorARGOSDATA); + } else { + logger.info("No se inserta ARGOSDATA"); + } + + if (lazzateCrl != null) { + contadorLAZZATE = insertarCrl(lazzateCrl, 10, ps); + logger.info("Registros insertados/actualizados ARGOSDATA: " + contadorLAZZATE); + } else { + logger.info("No se inserta LAZZATE"); + } + + int total = contadorBCE + contadorSD1 + contadorSD2 + contadorSD3 + contadorSD4 + contadorSD5 + contadorCJ + contadorANFAC + contadorUANATACA1 + contadorUANATACA2 + contadorDIGERCIC + contadorDATIL + contadorARGOSDATA + contadorLAZZATE; + logger.info("Registros insertados/actualizados Total: " + total); logger.info("Finalizado!"); } catch (SQLException e) { - logger.log(Level.SEVERE, "Error al insertar certificado", e); + logger.log(Level.SEVERE, "Error al insertar/actualizar certificados revocados", e); throw new EJBException(e); } - } + }*/ private int insertarCrl(X509CRL crl, int entidadCertificadora, PreparedStatement ps) throws SQLException { // Existen CRLs? @@ -277,11 +300,16 @@ private void crearTablaSiNoExiste() { logger.info("Creando tabla CRL si es que no existe..."); try (Connection conn = ds.getConnection(); Statement st = conn.createStatement()) { - st.executeUpdate("CREATE TABLE IF NOT EXISTS crl (serial VARCHAR(2000), fecharevocacion VARCHAR(2000), " - + "razonrevocacion VARCHAR(2000), entidadcertificadora VARCHAR(2000))"); + st.executeUpdate("CREATE TABLE IF NOT EXISTS crl (" + + "serial varchar(2000) NOT NULL, " + + "fecharevocacion varchar(2000) NULL, " + + "razonrevocacion varchar(2000) NULL, " + + "entidadcertificadora varchar(2000) NULL, " + + "CONSTRAINT pk_serial PRIMARY KEY (serial))"); + logger.info("Tabla CRL creada"); } catch (SQLException e) { logger.log(Level.SEVERE, "Error al crear tabla CRL", e); throw new EJBException(e); } } -} +} \ No newline at end of file diff --git a/src/main/java/ec/gob/firmadigital/servicio/exception/ProtocoloInvalidoException.java b/src/main/java/ec/gob/firmadigital/servicio/exception/ProtocoloInvalidoException.java new file mode 100644 index 0000000..71170c7 --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/exception/ProtocoloInvalidoException.java @@ -0,0 +1,20 @@ +package ec.gob.firmadigital.firmaec_app.exceptions; + +import java.net.URISyntaxException; + +public class ProtocoloInvalidoException extends Exception { + + private static final long serialVersionUID = 6491132940384665796L; + + public ProtocoloInvalidoException(String message) { + super(message); + } + + public ProtocoloInvalidoException(String message, URISyntaxException e) { + super(message, e); + } + + public ProtocoloInvalidoException(URISyntaxException e) { + super(e); + } +} \ No newline at end of file diff --git a/src/main/java/ec/gob/firmadigital/servicio/exception/ServicioValidarCertificadoDigitalException.java b/src/main/java/ec/gob/firmadigital/servicio/exception/ServicioValidarCertificadoDigitalException.java new file mode 100644 index 0000000..2d8083b --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/exception/ServicioValidarCertificadoDigitalException.java @@ -0,0 +1,35 @@ +/* + * Firma Digital: Servicio + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package ec.gob.firmadigital.servicio.exception; + +/** + * Excepcion lanzada en caso de que la cedula que inicio el proceso en el + * sistema transversal sea diferente a la cedula usada al firmar los docuentos. + * + * @author Ricardo Arguello + */ +public class ServicioValidarCertificadoDigitalException extends Exception { + + private static final long serialVersionUID = 1093880787253700672L; + + public ServicioValidarCertificadoDigitalException() { + super(); + } + + public ServicioValidarCertificadoDigitalException(String message) { + super(message); + } +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/model/ApiUrl.java b/src/main/java/ec/gob/firmadigital/servicio/model/ApiUrl.java index c0b6eb4..476353c 100644 --- a/src/main/java/ec/gob/firmadigital/servicio/model/ApiUrl.java +++ b/src/main/java/ec/gob/firmadigital/servicio/model/ApiUrl.java @@ -1,3 +1,18 @@ +/* + * Firma Digital: Servicio + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package ec.gob.firmadigital.servicio.model; import java.io.Serializable; diff --git a/src/main/java/ec/gob/firmadigital/servicio/model/Version.java b/src/main/java/ec/gob/firmadigital/servicio/model/Version.java new file mode 100644 index 0000000..1bc7e88 --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/model/Version.java @@ -0,0 +1,128 @@ +/* + * Firma Digital: Servicio + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package ec.gob.firmadigital.servicio.model; + +import java.io.Serializable; +import java.util.Date; + +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; +import javax.persistence.NamedQuery; + +/** + * Representa un sistema transversal. + * + * @author Christian Espinosa , Misael + * Fernández + */ +@Entity +@NamedQuery(name = "Version.validarVersion", query = "SELECT v FROM Version v WHERE v.version= :version AND v.sistemaOperativo= :sistema_operativo AND v.aplicacion= :aplicacion") +//@NamedQuery(name = "Version.validarVersion", query = "SELECT v FROM Version v WHERE v.version= :version AND v.sistemaOperativo= :sistema_operativo AND v.sha = :sha") + +public class Version implements Serializable { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private long id; + + private String sistemaOperativo; + private String aplicacion; + private String version; + private String sha; + private Boolean status; + private String descripcion; + private Date fechaLiberacion; + private Date fechaObsoleto; + + public long getId() { + return id; + } + + public void setId(long id) { + this.id = id; + } + + public String getSistemaOperativo() { + return sistemaOperativo; + } + + public void setSistemaOperativo(String sistemaOperativo) { + this.sistemaOperativo = sistemaOperativo; + } + + public String getAplicacion() { + return aplicacion; + } + + public void setAplicacion(String aplicacion) { + this.aplicacion = aplicacion; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public String getSha() { + return sha; + } + + public void setSha(String sha) { + this.sha = sha; + } + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public String getDescripcion() { + return descripcion; + } + + public void setDescripcion(String descripcion) { + this.descripcion = descripcion; + } + + public Date getFechaLiberacion() { + return fechaLiberacion; + } + + public void setFechaLiberacion(Date fechaLiberacion) { + this.fechaLiberacion = fechaLiberacion; + } + + public Date getFechaObsoleto() { + return fechaObsoleto; + } + + public void setFechaObsoleto(Date fechaObsoleto) { + this.fechaObsoleto = fechaObsoleto; + } + + @Override + public String toString() { + return "Version{" + "id=" + id + ", sistemaOperativo=" + sistemaOperativo + ", aplicacion=" + aplicacion + ", version=" + version + ", sha=" + sha + ", status=" + status + ", descripcion=" + descripcion + ", fechaLiberacion=" + fechaLiberacion + ", fechaObsoleto=" + fechaObsoleto + '}'; + } +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/pdf/ServicioValidacionPdf.java b/src/main/java/ec/gob/firmadigital/servicio/pdf/ServicioValidacionPdf.java index e4d8704..674be15 100644 --- a/src/main/java/ec/gob/firmadigital/servicio/pdf/ServicioValidacionPdf.java +++ b/src/main/java/ec/gob/firmadigital/servicio/pdf/ServicioValidacionPdf.java @@ -47,7 +47,7 @@ import io.rubrica.sign.SignInfo; import io.rubrica.sign.Signer; import io.rubrica.certificate.to.DatosUsuario; -import io.rubrica.sign.pdf.PDFSigner; +import io.rubrica.sign.pdf.PDFSignerItext; import io.rubrica.utils.Utils; /** @@ -65,7 +65,7 @@ public class ServicioValidacionPdf { private static final Logger LOGGER = Logger.getLogger(ServicioValidacionPdf.class.getName()); public String getNombre(byte[] pdf) throws IOException, InvalidFormatException, CertificadoRevocadoException { - Signer signer = new PDFSigner(); + Signer signer = new PDFSignerItext(); List singInfos = signer.getSigners(pdf); if (!singInfos.isEmpty()) { @@ -100,7 +100,7 @@ public Response verificarPdf(String archivoBase64) return Response.status(Status.BAD_REQUEST).entity("Error al decodificar Base64").build(); } - Signer signer = new PDFSigner(); + Signer signer = new PDFSignerItext(); List firmas; try { diff --git a/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioApiUrlRest.java b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioApiUrlRest.java index 15770d5..7d1f017 100644 --- a/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioApiUrlRest.java +++ b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioApiUrlRest.java @@ -54,7 +54,7 @@ public String buscarUrl(@PathParam("base64") String base64) { if (base64 == null || base64.isEmpty()) { return "Se debe generar en Base64"; } - logger.info("base64=" + base64); + logger.info("URLBase64=" + base64); String jsonParameter = new String(Base64.getDecoder().decode(base64)); if (jsonParameter == null || jsonParameter.isEmpty()) { return "Se debe incluir JSON con los parámetros: sistema, fecha_desde y fecha_hasta"; diff --git a/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioAppFirmarDocumentoRest.java b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioAppFirmarDocumentoRest.java new file mode 100644 index 0000000..fcc4cfc --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioAppFirmarDocumentoRest.java @@ -0,0 +1,138 @@ +/* + * Firma Digital: Servicio + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package ec.gob.firmadigital.servicio.rest; + +import com.google.gson.JsonObject; +import com.google.gson.JsonParser; +import com.google.gson.JsonSyntaxException; +import ec.gob.firmadigital.servicio.ServicioAppFirmarDocumento; +import javax.ejb.EJB; +import javax.ejb.Stateless; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.Produces; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.core.MediaType; + +/** + * REST Web Service + * + * @author Christian Espinosa , Misael + * Fernández + */ +@Stateless +@Path("/appfirmardocumento") +public class ServicioAppFirmarDocumentoRest { + + @EJB + private ServicioAppFirmarDocumento servicioAppFirmarDocumento; + + @POST + @Produces(MediaType.TEXT_PLAIN) + @Consumes(MediaType.APPLICATION_FORM_URLENCODED) + public String firmarDocumento(@FormParam("pkcs12") String pkcs12, @FormParam("password") String password, + @FormParam("documento") String documento, @FormParam("json") String json, @FormParam("base64") String base64) throws Exception { + + if (pkcs12 == null || pkcs12.isEmpty()) { + return "Se debe incluir el parametro pkcs12"; + } + + if (password == null || password.isEmpty()) { + return "Se debe incluir el parametro password"; + } + + if (documento == null || documento.isEmpty()) { + return "Se debe incluir el parametro documento"; + } + + if (json == null || json.isEmpty()) { + return "Se debe incluir el parametro json"; + } + + JsonObject jsonObject; + try { + jsonObject = new JsonParser().parse(json).getAsJsonObject(); + } catch (JsonSyntaxException e) { + return getClass().getSimpleName() + "::Error al decodificar JSON: \"" + e.getMessage(); + } + + String versionFirmaEC = null; + String formatoDocumento = null; + String llx = null; + String lly = null; + String pagina = null; + String tipoEstampado = null; + String razon = null; + + try { + versionFirmaEC = jsonObject.get("versionFirmaEC").getAsString(); + } catch (NullPointerException npe) { + return "Error al decodificar JSON: Se debe incluir \"versionFirmaEC\""; + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"versionFirmaEC\""; + } + try { + formatoDocumento = jsonObject.get("formatoDocumento").getAsString(); + } catch (NullPointerException npe) { + formatoDocumento = "pdf"; + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"formatoDocumento\""; + } + try { + if (jsonObject.get("llx") != null) { + llx = jsonObject.get("llx").getAsString(); + } + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"llx\""; + } + try { + if (jsonObject.get("lly") != null) { + lly = jsonObject.get("lly").getAsString(); + } + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"lly\""; + } + try { + if (jsonObject.get("pagina") != null) { + pagina = jsonObject.get("pagina").getAsString(); + } + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"pagina\""; + } + try { + if (jsonObject.get("tipoEstampado") != null) { + tipoEstampado = jsonObject.get("tipoEstampado").getAsString(); + } + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"tipoEstampado\""; + } + try { + if (jsonObject.get("razon") != null) { + razon = jsonObject.get("razon").getAsString(); + } + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"razon\""; + } + + if (base64 == null || base64.isEmpty()) { + return "Se debe incluir el parametro base64"; + } + + return servicioAppFirmarDocumento.firmarDocumento(pkcs12, password, documento, versionFirmaEC, formatoDocumento, llx, lly, pagina, tipoEstampado, razon, base64); + } +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioAppFirmarDocumentoTransversalRest.java b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioAppFirmarDocumentoTransversalRest.java new file mode 100644 index 0000000..a2e52f2 --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioAppFirmarDocumentoTransversalRest.java @@ -0,0 +1,182 @@ +/* + * Firma Digital: Servicio + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package ec.gob.firmadigital.servicio.rest; + +import com.google.gson.JsonObject; +import com.google.gson.JsonParser; +import com.google.gson.JsonSyntaxException; +import ec.gob.firmadigital.servicio.ServicioAppFirmarDocumentoTransversal; +import javax.ejb.EJB; +import javax.ejb.Stateless; +import javax.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.core.MediaType; + +/** + * REST Web Service + * + * @author Christian Espinosa , Misael + * Fernández + */ +@Stateless +@Path("/appfirmardocumentotransversal") +public class ServicioAppFirmarDocumentoTransversalRest { + + @EJB + private ServicioAppFirmarDocumentoTransversal servicioAppFirmarDocumentoTransversal; + + @POST + @Produces(MediaType.TEXT_PLAIN) + @Consumes(MediaType.APPLICATION_FORM_URLENCODED) + public String firmarDocumentoTransversal(@FormParam("pkcs12") String pkcs12, @FormParam("password") String password, @FormParam("json") String json, @FormParam("base64") String base64) throws Exception { + + if (pkcs12 == null || pkcs12.isEmpty()) { + return "Se debe incluir el parametro pkcs12"; + } + + if (password == null || password.isEmpty()) { + return "Se debe incluir el parametro password"; + } + + if (json == null || json.isEmpty()) { + return "Se debe incluir el parametro json"; + } + + JsonObject jsonObject; + try { + jsonObject = new JsonParser().parse(json).getAsJsonObject(); + } catch (JsonSyntaxException e) { + return getClass().getSimpleName() + "::Error al decodificar JSON: \"" + e.getMessage(); + } + + String sistema = null; + String operacion = null; + String url = null; + String versionFirmaEC = null; + String formatoDocumento = null; + String tokenJwt = null; + String llx = null; + String lly = null; + String pagina = null; + String tipoEstampado = null; + String razon = null; + boolean pre = false; + boolean des = false; + + try { + sistema = jsonObject.get("sistema").getAsString(); + } catch (NullPointerException npe) { + return "Error al decodificar JSON: Se debe incluir \"sistema\""; + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"sistema\""; + } + try { + operacion = jsonObject.get("operacion").getAsString(); + } catch (NullPointerException npe) { + return "Error al decodificar JSON: Se debe incluir \"operacion\""; + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"operacion\""; + } + try { + if (jsonObject.get("url") != null) { + url = jsonObject.get("url").getAsString(); + } + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"url\""; + } + try { + versionFirmaEC = jsonObject.get("versionFirmaEC").getAsString(); + } catch (NullPointerException npe) { + return "Error al decodificar JSON: Se debe incluir \"versionFirmaEC\""; + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"versionFirmaEC\""; + } + try { + formatoDocumento = jsonObject.get("formatoDocumento").getAsString(); + } catch (NullPointerException npe) { + formatoDocumento = "pdf"; + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"formatoDocumento\""; + } + try { + tokenJwt = jsonObject.get("tokenJwt").getAsString(); + } catch (NullPointerException npe) { + return "Error al decodificar JSON: Se debe incluir \"tokenJwt\""; + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"tokenJwt\""; + } + try { + if (jsonObject.get("llx") != null) { + llx = jsonObject.get("llx").getAsString(); + } + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"llx\""; + } + try { + if (jsonObject.get("lly") != null) { + lly = jsonObject.get("lly").getAsString(); + } + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"lly\""; + } + try { + if (jsonObject.get("pagina") != null) { + pagina = jsonObject.get("pagina").getAsString(); + } + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"pagina\""; + } + try { + if (jsonObject.get("tipoEstampado") != null) { + tipoEstampado = jsonObject.get("tipoEstampado").getAsString(); + } + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"tipoEstampado\""; + } + try { + if (jsonObject.get("razon") != null) { + razon = jsonObject.get("razon").getAsString(); + } + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"razon\""; + } + try { + if (jsonObject.get("pre") != null) { + pre = jsonObject.get("pre").getAsBoolean(); + } + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"pre\""; + } + try { + if (jsonObject.get("des") != null) { + des = jsonObject.get("des").getAsBoolean(); + } + } catch (ClassCastException cce) { + return "Error al decodificar JSON: No coincide el tipo de dato \"des\""; + } + + if (base64 == null || base64.isEmpty()) { + return "Se debe incluir el parametro base64"; + } + + return servicioAppFirmarDocumentoTransversal.firmarTransversal(pkcs12, password, sistema, operacion, url, versionFirmaEC, formatoDocumento, tokenJwt, llx, lly, pagina, tipoEstampado, razon, pre, des, base64); + } + +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioAppValidarCertificadoDigitalRest.java b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioAppValidarCertificadoDigitalRest.java new file mode 100644 index 0000000..9a55f9b --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioAppValidarCertificadoDigitalRest.java @@ -0,0 +1,61 @@ +/* + * Firma Digital: Servicio + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package ec.gob.firmadigital.servicio.rest; + +import ec.gob.firmadigital.servicio.ServicioAppValidarCertificadoDigital; +import javax.ejb.EJB; +import javax.ejb.Stateless; +import javax.ws.rs.Produces; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.core.MediaType; + +/** + * REST Web Service + * + * @author Christian Espinosa , Misael + * Fernández + */ +@Stateless +@Path("/appvalidarcertificadodigital") +public class ServicioAppValidarCertificadoDigitalRest { + + @EJB + private ServicioAppValidarCertificadoDigital servicioAppValidarCertificadoDigital; + + @POST + @Produces(MediaType.APPLICATION_JSON) + @Consumes(MediaType.APPLICATION_FORM_URLENCODED) + public String validarCertificadoDigital(@FormParam("pkcs12") String pkcs12, @FormParam("password") String password, @FormParam("base64") String base64) { + + if (pkcs12 == null || pkcs12.isEmpty()) { + return "Se debe incluir el parametro pkcs12"; + } + + if (password == null || password.isEmpty()) { + return "Se debe incluir el parametro password"; + } + + if (base64 == null || base64.isEmpty()) { + return "Se debe incluir el parametro base64"; + } + return servicioAppValidarCertificadoDigital.appValidarCertificadoDigital(pkcs12, password, base64); + } + +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioAppVerificarDocumentoRest.java b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioAppVerificarDocumentoRest.java new file mode 100644 index 0000000..2930803 --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioAppVerificarDocumentoRest.java @@ -0,0 +1,52 @@ +/* + * Firma Digital: Servicio + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package ec.gob.firmadigital.servicio.rest; + +import ec.gob.firmadigital.servicio.ServicioAppVerificarDocumento; +import javax.ejb.EJB; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.Produces; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.core.MediaType; + +/** + * REST Web Service + * + * @author Christian Espinosa , Misael + * Fernández + */ +@Path("/appverificardocumento") +public class ServicioAppVerificarDocumentoRest { + + @EJB + private ServicioAppVerificarDocumento servicioAppVerificarDocumento; + + @POST + @Produces(MediaType.TEXT_PLAIN) + @Consumes(MediaType.APPLICATION_FORM_URLENCODED) + public String validarDocumento(@FormParam("documento") String documento, @FormParam("base64") String base64) throws Exception { + if (documento == null || documento.isEmpty()) { + return "Se debe incluir el parametro documento"; + } + if (base64 == null || base64.isEmpty()) { + return "Se debe incluir el parametro base64"; + } + return servicioAppVerificarDocumento.verificarDocumento(documento, base64); + } +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioDocumentoRest.java b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioDocumentoRest.java index d127581..498b12a 100644 --- a/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioDocumentoRest.java +++ b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioDocumentoRest.java @@ -54,6 +54,7 @@ import ec.gob.firmadigital.servicio.token.TokenExpiradoException; import ec.gob.firmadigital.servicio.token.TokenInvalidoException; import ec.gob.firmadigital.servicio.util.Base64InvalidoException; +import javax.ws.rs.FormParam; /** * Servicio REST para almacenar, actualizar y obtener documentos desde los @@ -182,9 +183,11 @@ public Response obtenerDocumentos(@PathParam("token") String token) { try { documentos = servicioDocumento.obtenerDocumentos(token); } catch (TokenInvalidoException e) { + System.out.println("ServicioDocumentoRest::obtenerDocumentos Token invalido: " + token); servicioLog.error("ServicioDocumentoRest::obtenerDocumentos", "Token invalido: " + token); return Response.status(Status.BAD_REQUEST).entity("Token invalido").build(); } catch (TokenExpiradoException e) { + System.out.println("ServicioDocumentoRest::obtenerDocumentos Token expirado: " + token); servicioLog.error("ServicioDocumentoRest::obtenerDocumentos", "Token expirado: " + token); return Response.status(Status.BAD_REQUEST).entity("Token expirado").build(); } @@ -196,6 +199,11 @@ public Response obtenerDocumentos(@PathParam("token") String token) { array.add(Json.createObjectBuilder().add("id", id).add("documento", documento)); } +// System.out.println("array: "+array.build().toString()); +// System.out.println("array: "+array.build().size()); +// if (array.build().isEmpty()) { +// return Response.status(Status.BAD_REQUEST).entity("Token gestionado").build(); +// } // La fecha actual en formato ISO-8601 (2017-08-27T17:54:43.562-05:00) String fechaHora = ZonedDateTime.now().format(DateTimeFormatter.ISO_OFFSET_DATE_TIME); @@ -206,16 +214,21 @@ public Response obtenerDocumentos(@PathParam("token") String token) { @PUT @Path("{token}") - @Consumes(MediaType.APPLICATION_JSON) - public Response actualizarDocumentos(@PathParam("token") String token, JsonObject json) { - String cedulaJson = json.getString("cedula"); + @Consumes(MediaType.APPLICATION_FORM_URLENCODED) + public Response actualizarDocumentos(@PathParam("token") String token, @FormParam("json") String json, @FormParam("base64") String base64) { + JsonObject jsonObject; + try (JsonReader jsonReader = Json.createReader(new StringReader(json))) { + jsonObject = jsonReader.readObject(); + } + + String cedulaJson = jsonObject.getString("cedula"); if (cedulaJson == null || cedulaJson.isEmpty()) { servicioLog.error("ServicioDocumentoRest::actualizarDocumentos", "Cedula vacia"); return Response.status(Status.BAD_REQUEST).entity("Cedula vacia").build(); } - List array = json.getJsonArray("documentos").getValuesAs(JsonObject.class); + List array = jsonObject.getJsonArray("documentos").getValuesAs(JsonObject.class); if (array.size() == 0) { servicioLog.error("ServicioDocumentoRest::actualizarDocumentos", "No se encuentran documentos"); @@ -248,7 +261,7 @@ public Response actualizarDocumentos(@PathParam("token") String token, JsonObjec } try { - int documentosFirmados = servicioDocumento.actualizarDocumentos(token, documentos, cedulaJson); + int documentosFirmados = servicioDocumento.actualizarDocumentos(token, documentos, cedulaJson, base64); JsonObject jsonResponse = Json.createObjectBuilder().add("documentos_recibidos", documentos.size()) .add("documentos_firmados", documentosFirmados).build(); return Response.ok(jsonResponse).build(); diff --git a/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioValidacionPdfRest.java b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioValidacionPdfRest.java index 3756329..da21835 100644 --- a/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioValidacionPdfRest.java +++ b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioValidacionPdfRest.java @@ -15,23 +15,21 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ - package ec.gob.firmadigital.servicio.rest; import com.google.gson.Gson; import com.google.gson.JsonArray; -import ec.gob.firmadigital.servicio.crl.ServicioConsultaCrl; -import ec.gob.firmadigital.servicio.pdf.ServicioValidacionPdf; -import ec.gob.firmadigital.servicio.util.Base64InvalidoException; -import ec.gob.firmadigital.servicio.util.Base64Util; import io.rubrica.certificate.to.Certificado; import io.rubrica.certificate.to.Documento; -import io.rubrica.utils.FileUtils; import io.rubrica.utils.Utils; import com.google.gson.JsonObject; +import com.itextpdf.kernel.pdf.PdfReader; +import io.rubrica.sign.SignInfo; +import io.rubrica.sign.Signer; +import io.rubrica.sign.pdf.PDFSignerItext; +import java.io.ByteArrayInputStream; -import javax.ejb.EJB; import javax.ejb.Stateless; import javax.ws.rs.Consumes; import javax.ws.rs.POST; @@ -40,47 +38,30 @@ import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; -import java.io.File; -import java.io.IOException; +import java.io.InputStream; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; -import java.util.logging.Logger; @Stateless @Path("/validacionavanzadapdf") public class ServicioValidacionPdfRest { - @EJB - private ServicioConsultaCrl servicioCrl; - - private static final Logger LOGGER = Logger.getLogger(ServicioValidacionPdf.class.getName()); - @POST @Consumes(MediaType.TEXT_PLAIN) @Produces(MediaType.APPLICATION_JSON) public Response verificarPdf(String archivoBase64) - throws Exception { - - byte[] pdf; - - try { - pdf = Base64Util.decode(archivoBase64); - } catch (Base64InvalidoException e) { - return Response.status(Status.BAD_REQUEST).entity("Error al decodificar Base64").build(); - } - - File file = null; - try { - file = FileUtils.byteArrayConvertToFile(pdf); - } catch (IOException e) { - return Response.status(Status.BAD_REQUEST).entity("Error al crear el archivo temporal").build(); - } + throws Exception { + byte[] byteDocumento = java.util.Base64.getDecoder().decode(archivoBase64); + InputStream inputStreamDocumento = new ByteArrayInputStream(byteDocumento); + PdfReader pdfReader = new PdfReader(inputStreamDocumento); + Signer signer = new PDFSignerItext(); + java.util.List signInfos; + signInfos = signer.getSigners(byteDocumento); try { - - Documento documento = Utils.pdfToDocumento(file); + Documento documento = Utils.pdfToDocumento(pdfReader, signInfos); Gson gson = new Gson(); JsonObject jsonDoc = new JsonObject(); @@ -156,5 +137,4 @@ private String dateToString(Date date) { return dateFormat.format(date); } - } diff --git a/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioVersionRest.java b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioVersionRest.java new file mode 100644 index 0000000..f2b1f25 --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/rest/ServicioVersionRest.java @@ -0,0 +1,111 @@ +/* + * Firma Digital: Servicio + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package ec.gob.firmadigital.servicio.rest; + +import ec.gob.firmadigital.servicio.ServicioVersion; +import javax.ejb.EJB; +import javax.ejb.Stateless; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; +import ec.gob.firmadigital.servicio.VersionException; +import java.io.StringReader; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import java.util.Base64; +import java.util.logging.Logger; +import javax.json.Json; +import javax.json.JsonReader; +import javax.json.stream.JsonParsingException; +import javax.ws.rs.Consumes; +import javax.ws.rs.FormParam; +import javax.ws.rs.POST; + +/** + * Servicio REST para verificar Versión. + * + * @author Christian Espinosa , Misael + * Fernández + */ +@Stateless +@Path("/version") +public class ServicioVersionRest { + + private static final Logger logger = Logger.getLogger(ServicioVersionRest.class.getName()); + @EJB + private ServicioVersion servicioVersion; + + @POST + @Consumes(MediaType.APPLICATION_FORM_URLENCODED) + @Produces(MediaType.TEXT_PLAIN) + public String buscarVersion(@FormParam("base64") String base64) { + if (base64 == null || base64.isEmpty()) { + return "Se debe generar en Base64"; + } + logger.info("base64=" + base64); + String jsonParameter; + try { + jsonParameter = new String(Base64.getDecoder().decode(base64)); + } catch (IllegalArgumentException e) { + return getClass().getSimpleName() + "::Error al decodificar base64: \"" + e.getMessage(); + } + + if (jsonParameter == null || jsonParameter.isEmpty()) { + return "Se debe incluir JSON con los parámetros: sistemaOperativo, aplicacion,versionApp y sha"; + } + + javax.json.JsonObject json; + try { + JsonReader jsonReader = Json.createReader(new StringReader(URLDecoder.decode(jsonParameter, "UTF-8"))); + json = (javax.json.JsonObject) jsonReader.read(); + } catch (JsonParsingException | UnsupportedEncodingException e) { + return getClass().getSimpleName() + "::Error al decodificar JSON: " + e.getMessage(); + } + + String sistemaOperativo; + String aplicacion; + String versionApp; + String sha; + + try { + sistemaOperativo = json.getString("sistemaOperativo"); + } catch (NullPointerException e) { + return getClass().getSimpleName() + "::Error al decodificar JSON: Se debe incluir \"sistemaOperativo\""; + } + try { + aplicacion = json.getString("aplicacion"); + } catch (NullPointerException e) { + return getClass().getSimpleName() + "::Error al decodificar JSON: Se debe incluir \"aplicacion\""; + } + try { + versionApp = json.getString("versionApp"); + } catch (NullPointerException e) { + return getClass().getSimpleName() + "::Error al decodificar JSON: Se debe incluir \"versionApp\""; + } + try { + sha = json.getString("sha"); + } catch (NullPointerException e) { + return getClass().getSimpleName() + "::Error al decodificar JSON: Se debe incluir \"sha\""; + } + + try { + return servicioVersion.validarVersion(sistemaOperativo, aplicacion, versionApp, sha); + } catch (VersionException e) { + return "Url no encontrado"; + } + } +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/token/TokenTimeout.java b/src/main/java/ec/gob/firmadigital/servicio/token/TokenTimeout.java index ead8607..17635c5 100644 --- a/src/main/java/ec/gob/firmadigital/servicio/token/TokenTimeout.java +++ b/src/main/java/ec/gob/firmadigital/servicio/token/TokenTimeout.java @@ -44,7 +44,7 @@ public class TokenTimeout { * true = es ambiente produccion * false = es ambiente de pruebas */ - public static final Boolean IS_PRODUCTION = false; + public static final Boolean IS_PRODUCTION = true; /** * Agregar una cantidad de minutos a una hora dada. diff --git a/src/main/java/ec/gob/firmadigital/servicio/token/jwt/ServicioTokenJwt.java b/src/main/java/ec/gob/firmadigital/servicio/token/jwt/ServicioTokenJwt.java index 56f9691..d64a7c9 100644 --- a/src/main/java/ec/gob/firmadigital/servicio/token/jwt/ServicioTokenJwt.java +++ b/src/main/java/ec/gob/firmadigital/servicio/token/jwt/ServicioTokenJwt.java @@ -38,6 +38,7 @@ import io.jsonwebtoken.MissingClaimException; import io.jsonwebtoken.SignatureAlgorithm; import io.jsonwebtoken.SignatureException; +import io.jsonwebtoken.UnsupportedJwtException; import io.jsonwebtoken.impl.DefaultClaims; import io.jsonwebtoken.impl.crypto.MacProvider; import javax.ejb.Lock; @@ -136,7 +137,7 @@ public String generarToken(Map parametros, Date expiracion) { public Map parseToken(String token) throws TokenInvalidoException, TokenExpiradoException { try { return Jwts.parser().setSigningKey(secretKey).parseClaimsJws(token).getBody(); - } catch (MalformedJwtException | SignatureException | MissingClaimException e) { + } catch (MalformedJwtException | SignatureException | UnsupportedJwtException | IllegalArgumentException | MissingClaimException e) { throw new TokenInvalidoException(e); } catch (ExpiredJwtException e) { throw new TokenExpiradoException(e); diff --git a/src/main/java/ec/gob/firmadigital/servicio/util/FileUtil.java b/src/main/java/ec/gob/firmadigital/servicio/util/FileUtil.java index d82c55a..2615334 100644 --- a/src/main/java/ec/gob/firmadigital/servicio/util/FileUtil.java +++ b/src/main/java/ec/gob/firmadigital/servicio/util/FileUtil.java @@ -24,7 +24,6 @@ public static String getMimeType(byte[] data) { mimeType = tika.detect(is); mimeType = mimeType == null ? "" : mimeType; } catch (IOException e) { - System.out.println("No se pudo determinar el tipo de archivo"); mimeType = ""; } return mimeType; diff --git a/src/main/java/ec/gob/firmadigital/servicio/util/FirmaDigital.java b/src/main/java/ec/gob/firmadigital/servicio/util/FirmaDigital.java new file mode 100644 index 0000000..c81d32a --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/util/FirmaDigital.java @@ -0,0 +1,122 @@ +package ec.gob.firmadigital.servicio.util; + +import com.itextpdf.kernel.crypto.BadPasswordException; +import io.rubrica.exceptions.CertificadoInvalidoException; +import io.rubrica.exceptions.ConexionException; +import io.rubrica.exceptions.DocumentoException; +import io.rubrica.exceptions.EntidadCertificadoraNoValidaException; +import io.rubrica.exceptions.HoraServidorException; +import io.rubrica.exceptions.RubricaException; +import io.rubrica.exceptions.SignatureVerificationException; +import java.io.IOException; +import java.io.InputStream; +import java.security.KeyStore; +import java.security.PrivateKey; +import java.security.cert.Certificate; +import java.security.cert.X509Certificate; +import java.util.Properties; +import io.rubrica.model.Document; +import io.rubrica.model.InMemoryDocument; +import io.rubrica.sign.DigestAlgorithm; +import io.rubrica.sign.PrivateKeySigner; +import io.rubrica.sign.SignConstants; +import io.rubrica.sign.pdf.PadesBasicSigner; +import io.rubrica.sign.xades.XAdESSigner; +import io.rubrica.utils.X509CertificateUtils; +import java.security.InvalidKeyException; +import java.security.KeyStoreException; +import java.security.NoSuchAlgorithmException; +import java.security.UnrecoverableKeyException; + +public class FirmaDigital { + + /** + * Firmar un documento PDF usando un KeyStore y una clave. + * + * @param keyStore + * @param alias + * @param docByteArry + * @param keyStorePassword + * @param properties + * @param api + * @param base64 + * @return + * @throws java.security.InvalidKeyException + * @throws io.rubrica.exceptions.EntidadCertificadoraNoValidaException + * @throws io.rubrica.exceptions.HoraServidorException + * @throws java.security.UnrecoverableKeyException + * @throws java.security.KeyStoreException + * @throws io.rubrica.exceptions.CertificadoInvalidoException + * @throws java.io.IOException + * @throws java.security.NoSuchAlgorithmException + * @throws io.rubrica.exceptions.RubricaException + */ + final private String hashAlgorithm = "SHA512"; + + public byte[] firmarPDF(KeyStore keyStore, String alias, byte[] docByteArry, char[] keyStorePassword, Properties properties, String api, String base64) throws + BadPasswordException, InvalidKeyException, EntidadCertificadoraNoValidaException, HoraServidorException, UnrecoverableKeyException, KeyStoreException, CertificadoInvalidoException, IOException, NoSuchAlgorithmException, RubricaException, CertificadoInvalidoException, SignatureVerificationException, DocumentoException, ConexionException { + byte[] signed = null; + PrivateKey key = (PrivateKey) keyStore.getKey(alias, keyStorePassword); + Certificate[] certChain = keyStore.getCertificateChain(alias); + X509CertificateUtils x509CertificateUtils = new X509CertificateUtils(); + if (x509CertificateUtils.validarX509Certificate((X509Certificate) keyStore.getCertificate(alias), api, base64)) {//validación de firmaEC + Document document = new InMemoryDocument(docByteArry); + try (InputStream is = document.openStream()) { + // Crear un RubricaSigner para firmar el MessageDigest del documento + PrivateKeySigner signer = new PrivateKeySigner(key, DigestAlgorithm.forName(hashAlgorithm)); + // Crear un PdfSigner para firmar el documento + PadesBasicSigner pdfSigner = new PadesBasicSigner(signer); + // Firmar el documento + signed = pdfSigner.sign(is, signer, certChain, properties); + } catch (com.itextpdf.io.IOException ioe) { + throw new DocumentoException("El archivo no es PDF"); + } + } else { + throw new CertificadoInvalidoException(x509CertificateUtils.getError()); + } + if (x509CertificateUtils.getError() != null) { + throw new SignatureVerificationException(x509CertificateUtils.getError()); + } + return signed; + } + + /** + * Firmar un documento XML usando un KeyStore y una clave. + * + * @param keyStore + * @param alias + * @param docByteArry + * @param keyStorePassword + * @param properties + * @param api + * @param base64 + * @return + * @throws java.security.InvalidKeyException + * @throws io.rubrica.exceptions.EntidadCertificadoraNoValidaException + * @throws io.rubrica.exceptions.HoraServidorException + * @throws java.security.UnrecoverableKeyException + * @throws java.security.KeyStoreException + * @throws io.rubrica.exceptions.CertificadoInvalidoException + * @throws java.io.IOException + * @throws java.security.NoSuchAlgorithmException + * @throws io.rubrica.exceptions.RubricaException + * @throws io.rubrica.exceptions.SignatureVerificationException + */ + public byte[] firmarXML(KeyStore keyStore, String alias, byte[] docByteArry, char[] keyStorePassword, Properties properties, String api, String base64) throws + BadPasswordException, InvalidKeyException, EntidadCertificadoraNoValidaException, HoraServidorException, UnrecoverableKeyException, KeyStoreException, CertificadoInvalidoException, IOException, NoSuchAlgorithmException, RubricaException, CertificadoInvalidoException, SignatureVerificationException, ConexionException { + byte[] signed = null; + PrivateKey key = (PrivateKey) keyStore.getKey(alias, keyStorePassword); + Certificate[] certChain = keyStore.getCertificateChain(alias); + X509CertificateUtils x509CertificateUtils = new X509CertificateUtils(); + if (x509CertificateUtils.validarX509Certificate((X509Certificate) keyStore.getCertificate(alias), api, base64)) {//validación de firmaEC + XAdESSigner signer = new XAdESSigner(); + signed = signer.sign(docByteArry, SignConstants.SIGN_ALGORITHM_SHA512WITHRSA, key, certChain, null, base64); + } else { + throw new CertificadoInvalidoException(x509CertificateUtils.getError()); + } + if (x509CertificateUtils.getError() != null) { + throw new SignatureVerificationException(x509CertificateUtils.getError()); + } + return signed; + } +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/util/JsonProcessor.java b/src/main/java/ec/gob/firmadigital/servicio/util/JsonProcessor.java new file mode 100644 index 0000000..0aa1ca6 --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/util/JsonProcessor.java @@ -0,0 +1,118 @@ +///* +// * Firma Digital: Cliente +// * This program is free software: you can redistribute it and/or modify +// * it under the terms of the GNU General Public License as published by +// * the Free Software Foundation, either version 3 of the License, or +// * (at your option) any later version. +// * +// * This program is distributed in the hope that it will be useful, +// * but WITHOUT ANY WARRANTY; without even the implied warranty of +// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// * GNU General Public License for more details. +// * +// * You should have received a copy of the GNU General Public License +// * along with this program. If not, see . +// */ +package ec.gob.firmadigital.servicio.util; + +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; +import com.google.gson.JsonParser; +import com.google.gson.JsonSyntaxException; +import java.util.Base64; +import java.util.HashMap; +import java.util.Map; + +public class JsonProcessor { + + /** + * Base 64 decoder + */ + private static final Base64.Decoder BASE64_DECODER = Base64.getDecoder(); + + /** + * Base 64 encoder + */ + private static final Base64.Encoder BASE64_ENCODER = Base64.getEncoder(); + + /** + * Transforma una cadena de texto JSON con documentos en Base 64 en un Map + * de archivos binarios. + */ + public static Map parseJsonDocumentos(String json) { + Map documentosDecoder = new HashMap<>(); + try { + JsonObject jsonObject = new JsonParser().parse(json).getAsJsonObject(); + JsonArray documentos = jsonObject.get("documentos").getAsJsonArray(); + Map documentosBase64 = new HashMap<>(); + for (int i = 0; i < documentos.size(); i++) { + Long id = documentos.get(i).getAsJsonObject().get("id").getAsLong(); + String documento = documentos.get(i).getAsJsonObject().get("documento").getAsString(); + documentosBase64.put(id, documento); + } + // Documentos a retornar + documentosDecoder = new HashMap<>(); + for (Long id : documentosBase64.keySet()) { + String base64 = documentosBase64.get(id); + documentosDecoder.put(id, BASE64_DECODER.decode(base64)); + } + } catch (JsonSyntaxException e) { + e.printStackTrace(); + } + return documentosDecoder; + } + + public static String parseJsonFechaHora(String json) { + JsonObject jsonObject = new JsonParser().parse(json).getAsJsonObject(); + return jsonObject.get("fecha_hora").getAsString(); + } + + public static String parseJsonDocumentoFirmado(String json) { + try { + JsonObject jsonObject = new JsonParser().parse(json).getAsJsonObject(); + int documentosRecibidos = jsonObject.get("documentos_recibidos").getAsInt(); + int documentosFirmados = jsonObject.get("documentos_firmados").getAsInt(); + if (documentosFirmados == documentosRecibidos + || (documentosFirmados > 0 && documentosFirmados < documentosRecibidos)) { + return "Se firmó exitosamente " + documentosFirmados + " documento(s) de " + documentosRecibidos; + } else { + return "No se firmaron los documentos"; + } + } catch (JsonSyntaxException e) { + e.printStackTrace(); + return "Problemas con la respuesta desde el servidor"; + } + } + + /** + * Crear una cadena de texto JSON para representar documentos en Base 64. + */ + public static String buildJson(Map documentos, String cedula) { + // Documentos a retornar + JsonArray jsonArray = new JsonArray(); + JsonObject jsonObject = new JsonObject(); + JsonObject documentosEncoder = null; + for (Long id : documentos.keySet()) { + documentosEncoder = new JsonObject(); + byte[] documento = documentos.get(id); + String base64 = BASE64_ENCODER.encodeToString(documento); + documentosEncoder.addProperty("id", id); + documentosEncoder.addProperty("documento", base64); + jsonArray.add(documentosEncoder); + } + jsonObject.addProperty("cedula", cedula); + jsonObject.add("documentos", new com.google.gson.JsonParser() + .parse(new com.google.gson.Gson().toJson(jsonArray)).getAsJsonArray()); + return jsonObject.toString(); + } + + /** + * Crear una cadena de texto JSON con información del API para autorizar. + */ + public static String buildJsonApi(String sistema, String url) { + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("sistema", sistema); + jsonObject.addProperty("url", url); + return jsonObject.toString(); + } +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/util/Pkcs12.java b/src/main/java/ec/gob/firmadigital/servicio/util/Pkcs12.java new file mode 100644 index 0000000..12f3ac6 --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/util/Pkcs12.java @@ -0,0 +1,37 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package ec.gob.firmadigital.servicio.util; + +import io.rubrica.keystore.Alias; +import io.rubrica.keystore.FileKeyStoreProvider; +import io.rubrica.keystore.KeyStoreProvider; +import io.rubrica.keystore.KeyStoreUtilities; +import java.io.ByteArrayInputStream; +import java.io.InputStream; +import java.security.KeyStore; +import java.security.KeyStoreException; +import java.util.Base64; +import java.util.List; + +/** + * + * @author mfernandez + */ +public class Pkcs12 { + + public static KeyStore getKeyStore(String pkcs12, String password) throws KeyStoreException { + byte encodedPkcs12[] = Base64.getDecoder().decode(pkcs12); + InputStream inputStreamPkcs12 = new ByteArrayInputStream(encodedPkcs12); + + KeyStoreProvider ksp = new FileKeyStoreProvider(inputStreamPkcs12); + return ksp.getKeystore(password.toCharArray()); + } + + public static String getAlias(KeyStore keyStore) { + List signingAliases = KeyStoreUtilities.getSigningAliases(keyStore); + return signingAliases.get(0).getAlias(); + } +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/util/PropertiesUtils.java b/src/main/java/ec/gob/firmadigital/servicio/util/PropertiesUtils.java new file mode 100644 index 0000000..0bb808b --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/util/PropertiesUtils.java @@ -0,0 +1,45 @@ +/* + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package ec.gob.firmadigital.servicio.util; + +import java.io.IOException; +import java.util.Properties; +import java.util.logging.Level; +import java.util.logging.Logger; + +/** + * + * @author mfernandez + */ +public class PropertiesUtils { + + private static final String CONFIG = "config.servicio.properties"; + private static Properties config; + + public static Properties getConfig() { + config = new Properties(); + try { + config.load(PropertiesUtils.class.getClassLoader().getResourceAsStream(CONFIG)); + } catch (IOException ex) { + Logger.getLogger(PropertiesUtils.class.getName()).log(Level.SEVERE, null, ex); + } + return config; + } + + public static String getDocumentoKB() { + getConfig(); + return config.getProperty("documentoKB"); + } +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/util/Propiedades.java b/src/main/java/ec/gob/firmadigital/servicio/util/Propiedades.java new file mode 100644 index 0000000..264250a --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/util/Propiedades.java @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2020 + * Authors: Ricardo Arguello, Misael Fernández + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version.* + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ +package ec.gob.firmadigital.servicio.util; + +import io.rubrica.exceptions.HoraServidorException; +import java.io.IOException; +import java.util.Properties; + +import io.rubrica.sign.pdf.PDFSignerItext; +import io.rubrica.sign.pdf.RectanguloUtil; +import io.rubrica.utils.TiempoUtils; +import java.io.StringReader; +import java.net.URLDecoder; +import java.util.Base64; +import javax.json.Json; +import javax.json.JsonReader; + +public class Propiedades { + + public static Properties propiedades(String version, String llx, String lly, String pagina, String tipoEstampa, String razon, String url, String fechaHora, String base64) throws IOException, HoraServidorException { + Properties properties = new Properties(); + properties.setProperty(PDFSignerItext.SIGNING_LOCATION, ""); + if (fechaHora == null) { + properties.setProperty(PDFSignerItext.SIGN_TIME, TiempoUtils.getFechaHoraServidor(url != null ? url + "/fecha-hora" : null, base64)); + } else { + properties.setProperty(PDFSignerItext.SIGN_TIME, fechaHora); + } + String jsonParameter = new String(Base64.getDecoder().decode(base64)); + javax.json.JsonObject json; + JsonReader jsonReader = Json.createReader(new StringReader(URLDecoder.decode(jsonParameter, "UTF-8"))); + json = (javax.json.JsonObject) jsonReader.read(); + String sistemaOperativo; + sistemaOperativo = json.getString("sistemaOperativo"); + + properties.setProperty(PDFSignerItext.INFO_QR, "VALIDAR CON: www.firmadigital.gob.ec\n" + "Firmado digitalmente con FirmaEC mobile " + version + " " +sistemaOperativo); + if (llx != null) { + properties.setProperty(RectanguloUtil.POSITION_ON_PAGE_LOWER_LEFT_X, llx); + } + if (lly != null) { + properties.setProperty(RectanguloUtil.POSITION_ON_PAGE_LOWER_LEFT_Y, lly); + } + if (pagina != null) { + properties.setProperty(PDFSignerItext.LAST_PAGE, pagina); + } + if (tipoEstampa != null) { + properties.setProperty(PDFSignerItext.TYPE_SIG, tipoEstampa); + }else{ + properties.setProperty(PDFSignerItext.TYPE_SIG, "QR"); + } + if (razon != null) { + properties.setProperty(PDFSignerItext.SIGNING_REASON, URLDecoder.decode(razon, "UTF-8")); + } + return properties; + } +} diff --git a/src/main/java/ec/gob/firmadigital/servicio/util/ProtocoloFirmaDigital.java b/src/main/java/ec/gob/firmadigital/servicio/util/ProtocoloFirmaDigital.java new file mode 100644 index 0000000..dcbdc1f --- /dev/null +++ b/src/main/java/ec/gob/firmadigital/servicio/util/ProtocoloFirmaDigital.java @@ -0,0 +1,67 @@ +package ec.gob.firmadigital.servicio.util; + +import java.net.URI; +import java.net.URISyntaxException; +import java.util.HashMap; +import java.util.Map; + +import ec.gob.firmadigital.firmaec_app.exceptions.ProtocoloInvalidoException; + +public class ProtocoloFirmaDigital { + private final String SISTEMA; + private final String OPERACION; + private final Map PARAMETROS; + private static final String PROTOCOLO = "firmaec"; + + public ProtocoloFirmaDigital(String str) throws ProtocoloInvalidoException { + URI uri; + try { + uri = new URI(str); + } catch (URISyntaxException e) { + throw new ProtocoloInvalidoException(e); + } + if (!PROTOCOLO.equals(uri.getScheme())) { + throw new ProtocoloInvalidoException("Solo se soporta el protocolo '" + PROTOCOLO + "'"); + } + if (uri.getAuthority() == null || uri.getQuery() == null || uri.getQuery().isEmpty()) { + throw new ProtocoloInvalidoException("Se debe incluir un sistema en el protocolo"); + } + if (uri.getPath() == null || uri.getQuery() == null || uri.getQuery().isEmpty()) { + throw new ProtocoloInvalidoException("Se debe incluir una operacion en el protocolo"); + } + if (uri.getQuery() == null || uri.getQuery() == null || uri.getQuery().isEmpty()) { + throw new ProtocoloInvalidoException("Se deben incluir parámetros en el protocolo"); + } + this.SISTEMA = uri.getAuthority(); + this.OPERACION = uri.getPath(); + this.PARAMETROS = parseQuery(uri.getQuery()); + } + + public String getSistema() { + return SISTEMA; + } + + public String getOperacion() { + return OPERACION; + } + + public Map getParametros() { + return PARAMETROS; + } + + /** + * Analiza el query y extrae un Map con los parametros y sus + * valores. + */ + private Map parseQuery(String query) { + Map map = new HashMap<>(); + String[] parameters = query.split("&"); + for (String param : parameters) { + String[] valores = param.split("="); + String name = valores[0]; + String value = (valores.length == 2 ? valores[1] : null); + map.put(name, value); + } + return map; + } +} \ No newline at end of file diff --git a/src/main/resources/config.servicio.properties b/src/main/resources/config.servicio.properties new file mode 100644 index 0000000..246ba50 --- /dev/null +++ b/src/main/resources/config.servicio.properties @@ -0,0 +1,15 @@ +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +documentoKB=1024 +version=3.0.0 +fecha=2023-01-21 \ No newline at end of file