Class SignatureCommand

    • Constructor Detail

      • SignatureCommand

        public SignatureCommand​(int[] bytes)
        Decoding constructor.
        Parameters:
        bytes - encoded option starting with the COM-PORT-OPTION byte NullPointerException if bytes is null IllegalArgumentException if bytes has length that is too short or too long IllegalArgumentException if bytes[0] is not RFC2217.COM_PORT_OPTION IllegalArgumentException if bytes[1] is not RFC2217.SIGNATURE (client or server)
      • SignatureCommand

        public SignatureCommand​(boolean client,
                                java.lang.String signature)
        Encoding constructor.
        Parameters:
        signature - signature string
        client - true for the client-to-server command, false for the server-to-client command
      • SignatureCommand

        public SignatureCommand​(boolean client)
        Encoding constructor for signature requests.
        Parameters:
        client - true for the client command, false for the server command
    • Method Detail

      • toString

        public java.lang.String toString()
        Description copied from class: ComPortCommand
        Get the human-readable description of this option.
        Specified by:
        toString in class ComPortCommand
      • getSignature

        public java.lang.String getSignature()
      • decodeFailed

        public boolean decodeFailed()