package net.unit8.occupypub.model; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.ManyToOne; import java.io.Serializable; import java.time.LocalDate; /** * @author kawasima */ @Entity public class Cert implements Serializable { @Id private int serialNo; private byte[] privateKey; private byte[] clientCert; private LocalDate expires; private String token; private boolean active; @ManyToOne private User user; public int getSerialNo() { return serialNo; } public void setSerialNo(int serialNo) { this.serialNo = serialNo; } public byte[] getPrivateKey() { return privateKey; } public void setPrivateKey(byte[] privateKey) { this.privateKey = privateKey; } public byte[] getClientCert() { return clientCert; } public void setClientCert(byte[] clientCert) { this.clientCert = clientCert; } public LocalDate getExpires() { return expires; } public void setExpires(LocalDate expires) { this.expires = expires; } public String getToken() { return token; } public void setToken(String token) { this.token = token; } public boolean isActive() { return active; } public void setActive(boolean active) { this.active = active; } public User getUser() { return user; } public void setUser(User user) { this.user = user; } }