Class UserMfaTempToken

  • All Implemented Interfaces:
    de.xima.cmn.dao.interfaces.IEntity<Long>, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>

    @Entity
    public class UserMfaTempToken
    extends Object
    implements de.xima.cmn.dao.interfaces.IEntity<Long>
    Entity representing the temporary token that is needed in conjunction with the two-factor authentication code when verifying a user via two-factor authentication.
    Since:
    8.4.0
    Author:
    Norman Lorenz
    See Also:
    Serialized Form
    • Constructor Detail

      • UserMfaTempToken

        public UserMfaTempToken()
    • Method Detail

      • compareTo

        public int compareTo​(de.xima.cmn.dao.interfaces.IEntity<Long> o)
        Specified by:
        compareTo in interface Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
      • setUserDataJson

        public void setUserDataJson​(com.alibaba.fastjson.JSONObject userDataJson)
      • getUserDataJson

        public com.alibaba.fastjson.JSONObject getUserDataJson()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • isPersisted

        public boolean isPersisted()
        Specified by:
        isPersisted in interface de.xima.cmn.dao.interfaces.IEntity<Long>
      • onCreate

        protected void onCreate()
        Pre persist hook to set the creation date.