Class SoSigningDevice

    • Field Detail

      • identifier

        protected java.lang.String identifier
        The identifier.
      • signer

        protected Signer signer
        The signer
      • documentRenderer

        protected DocumentRenderer documentRenderer
        The document renderer
      • log

        protected static java.util.logging.Logger log
        The log.
      • bioData

        protected com.stepover.opensignatureapi.jna.sopad.BioData bioData
        The bio data.
      • threads

        public static java.util.Vector<java.lang.Thread> threads
        keep track of threads
    • Constructor Detail

      • SoSigningDevice

        public SoSigningDevice​(java.lang.String identifier)
        Instantiates a new so signing device.
      • SoSigningDevice

        public SoSigningDevice()
    • Method Detail

      • setIdentifier

        public void setIdentifier​(java.lang.String identifier)
        Sets the identifier.
        Parameters:
        identifier - the new identifier
      • getInfo

        public SigningDeviceInfo getInfo​(java.util.Locale locale)
        Specified by:
        getInfo in interface SigningDevice
        Parameters:
        locale - the locale in which the SigningDeviceInfo shall be returned. If locale is null, Locale.getDefault() shall be used. If there is no matching translation is available, the implementation shall use the closest substitute. How a substitute is selected is up to the implementation. We encourage to follow the guidelines of ResourceBundle.
      • registerHandlers

        protected void registerHandlers()
        Register handlers.
      • getSigner

        public Signer getSigner()
        Gets the signer.
        Returns:
        the signer
      • getConfiguration

        public SoDeviceConfiguration getConfiguration()
        Gets the configuration.
        Returns:
        the configuration
      • getRenderer

        public DocumentRenderer getRenderer()
        Gets the renderer.
        Returns:
        the renderer
      • setRenderer

        public void setRenderer​(DocumentRenderer documentRenderer)
        Sets the renderer.
        Parameters:
        documentRenderer - the new renderer
      • setDocumentViewer

        public void setDocumentViewer​(AbstractDocumentViewer viewer)
        Sets the document viewer.
        Parameters:
        viewer - the new document viewer
      • getDocumentViewer

        public AbstractDocumentViewer getDocumentViewer()
        Gets the document viewer.
        Returns:
        the document viewer
      • getBioData

        public com.stepover.opensignatureapi.jna.sopad.BioData getBioData()
      • setBioData

        public void setBioData​(com.stepover.opensignatureapi.jna.sopad.BioData bioData)
      • sleep

        public static void sleep​(long millis)
        Sleep.
        Parameters:
        millis - the millis
      • isGeneration

        public boolean isGeneration​(int generation)
      • getSignImage

        public java.awt.image.BufferedImage getSignImage()
      • getThreadExecuter

        public java.util.concurrent.ExecutorService getThreadExecuter()