
org.craftercms.profile.api.Ticket Maven / Gradle / Ivy
package org.craftercms.profile.api;
import java.util.Date;
/**
* An authentication ticket for a profile. The ticket will later be encrypted for secure transmission.
*
* @author avasquez
*/
public class Ticket {
private String _id;
private String tenant;
private String profileId;
private Date lastRequestTime;
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 getLastRequestTime() {
return lastRequestTime;
}
public void setLastRequestTime(Date lastRequestTime) {
this.lastRequestTime = lastRequestTime;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Ticket ticket = (Ticket) o;
if (!_id.equals(ticket._id)) {
return false;
}
return true;
}
@Override
public int hashCode() {
return _id.hashCode();
}
@Override
public String toString() {
return "Ticket{" +
"id=" + _id +
", tenant='" + tenant + '\'' +
", profileId='" + profileId + '\'' +
", lastRequestTime=" + lastRequestTime +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy