Class SmePinState


  • public class SmePinState
    extends State
    • Field Detail

      • log

        protected final org.slf4j.Logger log
    • Method Detail

      • init

        public void init()
        Specified by:
        init in class State
      • processMsg

        public void processMsg​(byte[] msg)
        Specified by:
        processMsg in class State
      • commonSendPinRequirement

        public void commonSendPinRequirement​(ConnectionPinStateType cpsType)
        used to send own PIN requirement
        Parameters:
        cpsType - the PIN requirement
      • commonEnableConnectionDataExchange

        public void commonEnableConnectionDataExchange()
        used to enable Connection Data Exchange
      • commonPinError

        public void commonPinError​(PinError error)
        used to indicate that a wrong PIN was received
      • nextState

        protected void nextState()
        Specified by:
        nextState in class State
      • getSubState

        public Check getSubState()
        assumes that user wants the CHECK sub-state, for ASK sub-state use getAskSubState()
        Specified by:
        getSubState in class State
        Returns:
        the specific CHECK sub-state
      • getAskSubState

        public Ask getAskSubState()
      • timedOut

        protected void timedOut​(TimeoutTimer timeoutTimer)
        Description copied from class: State
        what should happen if a timer times out
        Specified by:
        timedOut in class State
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object