package io.loli.box.oauth2;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
/**
* @author choco
*/
@Entity
public class OauthAccessToken {
private String tokenId;
@Lob
private String token;
@Id
private String authenticationId;
private String userName;
private String clientId;
@Lob
private String authentication;
private String refreshToken;
public String getAuthentication() {
return authentication;
}
public void setAuthentication(String authentication) {
this.authentication = authentication;
}
public String getAuthenticationId() {
return authenticationId;
}
public void setAuthenticationId(String authenticationId) {
this.authenticationId = authenticationId;
}
public String getClientId() {
return clientId;
}
public void setClientId(String clientId) {
this.clientId = clientId;
}
public String getRefreshToken() {
return refreshToken;
}
public void setRefreshToken(String refreshToken) {
this.refreshToken = refreshToken;
}
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public String getTokenId() {
return tokenId;
}
public void setTokenId(String tokenId) {
this.tokenId = tokenId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
}