Package org.openmuc.jship.view
Class CommandLineInput
- java.lang.Object
-
- org.openmuc.jship.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 boolean
promptEnterRestrictedOk(java.lang.String prefix)
java.lang.String
promptInputPin(java.lang.String prefix)
prompts user to input a PIN.boolean
promptProlongationRequest(java.lang.String prefix)
prompts user to accept/decline a prolongation requestboolean
promptSendPin(java.lang.String prefix)
asks user if user wants to send a PINboolean
promptTrustCommunicationPartner(java.lang.String prefix, java.lang.String ski)
-
-
-
Method Detail
-
promptTrustCommunicationPartner
public boolean promptTrustCommunicationPartner(java.lang.String prefix, java.lang.String ski)
- Specified by:
promptTrustCommunicationPartner
in interfaceUserInterface
-
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 interfaceUserInterface
- Parameters:
prefix
- server/client with port number- Returns:
true
if user accepted the prolongation request, elsefalse
-
promptEnterRestrictedOk
public boolean promptEnterRestrictedOk(java.lang.String prefix)
- Specified by:
promptEnterRestrictedOk
in interfaceUserInterface
-
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 interfaceUserInterface
- Parameters:
prefix
- server/client with port number- Returns:
true
if user wants to send a PIN, elsefalse
-
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 interfaceUserInterface
- Parameters:
prefix
- server/client with port number- Returns:
- the input PIN
-
-