Package org.openmuc.jeebus.ship.view
Class CommandLineInput
- java.lang.Object
-
- org.openmuc.jeebus.ship.view.CommandLineInput
-
- All Implemented Interfaces:
UserInterface
public class CommandLineInput extends java.lang.Object implements UserInterface
-
-
Constructor Summary
Constructors Constructor Description CommandLineInput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanpromptEnterRestrictedOk(java.lang.String prefix)java.lang.StringpromptInputPin(java.lang.String prefix)prompts user to input a PIN.booleanpromptProlongationRequest(java.lang.String prefix)prompts user to accept/decline a prolongation requestbooleanpromptSendPin(java.lang.String prefix)asks user if user wants to send a PINbooleanpromptTrustCommunicationPartner(java.lang.String prefix, java.lang.String ski)
-
-
-
Method Detail
-
promptTrustCommunicationPartner
public boolean promptTrustCommunicationPartner(java.lang.String prefix, java.lang.String ski)- Specified by:
promptTrustCommunicationPartnerin interfaceUserInterface
-
promptProlongationRequest
public boolean promptProlongationRequest(java.lang.String prefix)
Description copied from interface:UserInterfaceprompts user to accept/decline a prolongation request- Specified by:
promptProlongationRequestin interfaceUserInterface- Parameters:
prefix- server/client with port number- Returns:
trueif user accepted the prolongation request, elsefalse
-
promptEnterRestrictedOk
public boolean promptEnterRestrictedOk(java.lang.String prefix)
- Specified by:
promptEnterRestrictedOkin interfaceUserInterface
-
promptSendPin
public boolean promptSendPin(java.lang.String prefix)
Description copied from interface:UserInterfaceasks user if user wants to send a PIN- Specified by:
promptSendPinin interfaceUserInterface- Parameters:
prefix- server/client with port number- Returns:
trueif user wants to send a PIN, elsefalse
-
promptInputPin
public java.lang.String promptInputPin(java.lang.String prefix)
Description copied from interface:UserInterfaceprompts user to input a PIN. The returned PIN can then be sent to the communication partner- Specified by:
promptInputPinin interfaceUserInterface- Parameters:
prefix- server/client with port number- Returns:
- the input PIN
-
-