Class Ansi378v2009Am1Template

    • Field Detail

      • subformat

        public int subformat
        Vendor-specified subformat (SUBFORMAT).
      • sensorCertified

        public boolean sensorCertified
        Indicates that the fingerprint reader has certificate of compliance with Appendix F of CJIS-RS-0010 V7. This is the top bit of DEVSTAMP field.
      • sensorId

        public int sensorId
        Sensor ID (DEVID).
    • Constructor Detail

      • Ansi378v2009Am1Template

        public Ansi378v2009Am1Template()
        Creates new ANSI INCITS 378-2009/AM 1 template.
      • Ansi378v2009Am1Template

        public Ansi378v2009Am1Template​(byte[] template)
        Parses and validates ANSI INCITS 378-2009/AM 1 template.
        Parameters:
        template - serialized template in ANSI INCITS 378-2009/AM 1 format
        Throws:
        TemplateFormatException - if the template cannot be parsed or it fails validation
      • Ansi378v2009Am1Template

        @Deprecated
        public Ansi378v2009Am1Template​(byte[] template,
                                       boolean strict)
        Parses and optionally validates ANSI INCITS 378-2009/AM 1 template.
        Parameters:
        template - serialized template in ANSI INCITS 378-2009/AM 1 format
        strict - true to validate the template, false to tolerate parsing errors as much as possible
        Throws:
        TemplateFormatException - if the template cannot be parsed or if strict is true and the template fails validation
      • Ansi378v2009Am1Template

        public Ansi378v2009Am1Template​(byte[] template,
                                       ExceptionHandler handler)
        Parses and optionally validates ANSI INCITS 378-2009/AM 1 template.

        Recoverable validation exceptions encountered during parsing will be fed to the provided exception handler. Pass in Exceptions.silence() to ignore all recoverable validation errors or Exceptions.propagate() to throw exception even for recoverable errors.

        Parameters:
        template - serialized template in ANSI INCITS 378-2009/AM 1 format
        handler - handler for recoverable validation exceptions
        Throws:
        TemplateFormatException - if unrecoverable validation error is encountered or the provided exception handler returns false
    • Method Detail

      • accepts

        public static boolean accepts​(byte[] template)
        Checks whether provided template is an ANSI INCITS 378-2009/AM 1 template. This method does not do any template validation or conformance checking. It just differentiates ANSI INCITS 378-2009/AM 1 from other template formats as quickly as possible, mostly by looking at template header.
        Parameters:
        template - serialized template that is to be evaluated
        Returns:
        true if template is an ANSI INCITS 378-2009/AM 1 template, false otherwise
      • toByteArray

        public byte[] toByteArray()
        Validates and serializes the template in ANSI INCITS 378-2009/AM 1 format.
        Returns:
        serialized template in ANSI INCITS 378-2009/AM 1 format
        Throws:
        TemplateFormatException - if the template fails validation