Class OTP.AuthParameters

  • All Implemented Interfaces:

    
    public final class OTP.AuthParameters
    
                        

    Data class used for wrapping parameters used with OTP authentication

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getToken() the value sent to the user via the otp delivery method
      final String getMethodId() the identifier returned from the corresponding loginOrCreate or send method
      final Integer getSessionDurationMinutes() indicates how long the session should last before it expires
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OTP.AuthParameters

        OTP.AuthParameters(String token, String methodId, Integer sessionDurationMinutes)
      • OTP.AuthParameters

        OTP.AuthParameters(String token, String methodId)
    • Method Detail

      • getToken

         final String getToken()

        the value sent to the user via the otp delivery method

      • getMethodId

         final String getMethodId()

        the identifier returned from the corresponding loginOrCreate or send method