Class CommandLineInput

    • Constructor Detail

      • CommandLineInput

        public CommandLineInput()
    • Method Detail

      • promptProlongationRequest

        public boolean promptProlongationRequest​(java.lang.String prefix)
        Description copied from interface: UserInterface
        prompts user to accept/decline a prolongation request
        Specified by:
        promptProlongationRequest in interface UserInterface
        Parameters:
        prefix - server/client with port number
        Returns:
        true if user accepted the prolongation request, else false
      • promptSendPin

        public boolean promptSendPin​(java.lang.String prefix)
        Description copied from interface: UserInterface
        asks user if user wants to send a PIN
        Specified by:
        promptSendPin in interface UserInterface
        Parameters:
        prefix - server/client with port number
        Returns:
        true if user wants to send a PIN, else false
      • promptInputPin

        public java.lang.String promptInputPin​(java.lang.String prefix)
        Description copied from interface: UserInterface
        prompts user to input a PIN. The returned PIN can then be sent to the communication partner
        Specified by:
        promptInputPin in interface UserInterface
        Parameters:
        prefix - server/client with port number
        Returns:
        the input PIN