Class SubjectFacePhoto


  • public final class SubjectFacePhoto
    extends DecoderObject
    Foto(s) de la cara del titular de un eMRTD (DG2 en ICAO 9303 parte 10). Solo se soporta un DG2 que contenga una úica foto del rostro.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static byte TAG  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void decodeValue()
      Decodifica el valor DER establecido comprobando que corresponde al esperado y formando las estructuras internas.
      protected byte getDefaultTag()
      Obtiene la etiqueta de tipo ASN.1 del objeto.
      byte[] getSubjectPhotoAsJpeg2k()
      Obtiene la foto del titular en formato JPEG2000.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SubjectFacePhoto

        public SubjectFacePhoto()
    • Method Detail

      • getDefaultTag

        protected byte getDefaultTag()
        Description copied from class: DecoderObject
        Obtiene la etiqueta de tipo ASN.1 del objeto.
        Specified by:
        getDefaultTag in class DecoderObject
        Returns:
        Etiqueta de tipo ASN.1 del objeto.
      • getSubjectPhotoAsJpeg2k

        public byte[] getSubjectPhotoAsJpeg2k()
                                       throws java.io.IOException
        Obtiene la foto del titular en formato JPEG2000.
        Returns:
        Foto del titular en formato JPEG2000.
        Throws:
        java.io.IOException - Si la imagen del MRTD no está en formato JPEG2000.