Class OTPPolicy

    • Field Detail

      • logger

        protected static final org.jboss.logging.Logger logger
      • algorithm

        protected String algorithm
      • initialCounter

        protected int initialCounter
      • digits

        protected int digits
      • lookAheadWindow

        protected int lookAheadWindow
      • period

        protected int period
      • DEFAULT_POLICY

        public static OTPPolicy DEFAULT_POLICY
    • Constructor Detail

      • OTPPolicy

        public OTPPolicy()
      • OTPPolicy

        public OTPPolicy​(String type,
                         String algorithm,
                         int initialCounter,
                         int digits,
                         int lookAheadWindow,
                         int period)
    • Method Detail

      • getAlgorithmKey

        public String getAlgorithmKey()
      • getType

        public String getType()
      • setType

        public void setType​(String type)
      • getAlgorithm

        public String getAlgorithm()
      • setAlgorithm

        public void setAlgorithm​(String algorithm)
      • getInitialCounter

        public int getInitialCounter()
      • setInitialCounter

        public void setInitialCounter​(int initialCounter)
      • getDigits

        public int getDigits()
      • setDigits

        public void setDigits​(int digits)
      • getLookAheadWindow

        public int getLookAheadWindow()
      • setLookAheadWindow

        public void setLookAheadWindow​(int lookAheadWindow)
      • getPeriod

        public int getPeriod()
      • setPeriod

        public void setPeriod​(int period)
      • getSupportedApplications

        public List<String> getSupportedApplications()