Class SMSCredential


  • public class SMSCredential
    extends java.lang.Object
    Represents business object of sms credential. Supports (de)serialization of the state to/from JSON.
    Author:
    P.Piernik
    • Constructor Detail

      • SMSCredential

        public SMSCredential()
    • Method Detail

      • getSerializedConfiguration

        public com.fasterxml.jackson.databind.node.ObjectNode getSerializedConfiguration()
                                                                                  throws pl.edu.icm.unity.exceptions.InternalException
        Throws:
        pl.edu.icm.unity.exceptions.InternalException
      • setSerializedConfiguration

        public void setSerializedConfiguration​(com.fasterxml.jackson.databind.node.ObjectNode root)
                                        throws pl.edu.icm.unity.exceptions.InternalException
        Throws:
        pl.edu.icm.unity.exceptions.InternalException
      • getValidityTime

        public int getValidityTime()
      • setValidityTime

        public void setValidityTime​(int validityTime)
      • getCodeLength

        public int getCodeLength()
      • setCodeLength

        public void setCodeLength​(int codeLength)
      • setMobileNumberConfirmationConfiguration

        public void setMobileNumberConfirmationConfiguration​(pl.edu.icm.unity.types.confirmation.MobileNumberConfirmationConfiguration confirmationConfiguration)
      • getMobileNumberConfirmationConfiguration

        public java.util.Optional<pl.edu.icm.unity.types.confirmation.MobileNumberConfirmationConfiguration> getMobileNumberConfirmationConfiguration()
      • getMessageTemplate

        public java.lang.String getMessageTemplate()
      • setMessageTemplate

        public void setMessageTemplate​(java.lang.String messageTemplate)
      • getAuthnSMSLimit

        public int getAuthnSMSLimit()
      • setAuthnSMSLimit

        public void setAuthnSMSLimit​(int authnSMSLimit)