@Entity
public class ApiToken
extends java.lang.Object
Constructor and Description |
---|
ApiToken() |
ApiToken(java.lang.String tokenHash,
java.lang.String name,
java.lang.Integer expires,
User user) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.sql.Timestamp |
getCreationDate() |
java.sql.Timestamp |
getExpirationDate() |
java.lang.Integer |
getExpires() |
java.lang.Long |
getId() |
java.lang.String |
getName() |
java.lang.String |
getTokenHash() |
User |
getUser() |
int |
hashCode() |
boolean |
isActive() |
boolean |
isAdminToken() |
boolean |
isExpired() |
void |
setActive(boolean active) |
void |
setCreationDate(java.sql.Timestamp creationDate) |
void |
setExpires(java.lang.Integer expires) |
void |
setId(java.lang.Long id) |
void |
setName(java.lang.String name) |
void |
setTokenHash(java.lang.String tokenHash) |
void |
setUser(User user) |
java.lang.String |
toString() |
public ApiToken(java.lang.String tokenHash, java.lang.String name, java.lang.Integer expires, User user)
public ApiToken()
public java.sql.Timestamp getExpirationDate()
public boolean isExpired()
public boolean isAdminToken()
public java.lang.Long getId()
public void setId(java.lang.Long id)
public java.lang.String getTokenHash()
public void setTokenHash(java.lang.String tokenHash)
public java.lang.String getName()
public void setName(java.lang.String name)
public User getUser()
public void setUser(User user)
public java.sql.Timestamp getCreationDate()
public void setCreationDate(java.sql.Timestamp creationDate)
public java.lang.Integer getExpires()
public void setExpires(java.lang.Integer expires)
public boolean isActive()
public void setActive(boolean active)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object