All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.craftercms.profile.api.VerificationToken Maven / Gradle / Ivy

There is a newer version: 4.3.1
Show newest version
package org.craftercms.profile.api;

import java.util.Date;

/**
 * Verification token, used for email related verification.
 *
 * @author avasquez
 */
public class VerificationToken {

    private String _id;
    private String tenant;
    private String profileId;
    private Date timestamp;

    public String getId() {
        return _id;
    }

    public void setId(String id) {
        this._id = id;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public String getProfileId() {
        return profileId;
    }

    public void setProfileId(String profileId) {
        this.profileId = profileId;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        VerificationToken token = (VerificationToken) o;

        if (!_id.equals(token._id)) {
            return false;
        }

        return true;
    }

    @Override
    public int hashCode() {
        return _id.hashCode();
    }

    @Override
    public String toString() {
        return "VerificationToken{" +
               "id='" + _id + '\'' +
               ", tenant='" + tenant + '\'' +
               ", profileId='" + profileId + '\'' +
               ", timestamp=" + timestamp +
               '}';
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy