53 lines
899 B
Java
53 lines
899 B
Java
package dev.dinauer.oidcproxy.session;
|
|
|
|
import jakarta.persistence.*;
|
|
|
|
import java.time.ZonedDateTime;
|
|
|
|
@Entity
|
|
@Table(name = "access_token")
|
|
public class AccessTokenEntity
|
|
{
|
|
@Id
|
|
private String id;
|
|
|
|
@Column(name = "expires_at")
|
|
private ZonedDateTime expiresAt;
|
|
|
|
@Column(columnDefinition = "text")
|
|
private String token;
|
|
|
|
public String getId()
|
|
{
|
|
return id;
|
|
}
|
|
|
|
public AccessTokenEntity setId(String id)
|
|
{
|
|
this.id = id;
|
|
return this;
|
|
}
|
|
|
|
public ZonedDateTime getExpiresAt()
|
|
{
|
|
return expiresAt;
|
|
}
|
|
|
|
public AccessTokenEntity setExpiresAt(ZonedDateTime expiresAt)
|
|
{
|
|
this.expiresAt = expiresAt;
|
|
return this;
|
|
}
|
|
|
|
public String getToken()
|
|
{
|
|
return token;
|
|
}
|
|
|
|
public AccessTokenEntity setToken(String token)
|
|
{
|
|
this.token = token;
|
|
return this;
|
|
}
|
|
}
|