package com.cloud.model.common;
|
|
import lombok.Data;
|
import lombok.extern.slf4j.Slf4j;
|
|
import java.io.Serializable;
|
|
@Slf4j
|
@Data
|
public class TokenInfo implements Serializable {
|
private static final long serialVersionUID = -1L;
|
public static final int EXPRISE_IN = 8 * 60 * 60; // 8 * 60 * 60
|
public static final String BEARER_TYPE = "Bearer";
|
|
private String access_token;
|
private String token_type;
|
private String refresh_token;
|
private int expires_in;
|
private String scope;
|
|
public TokenInfo(){}
|
|
public TokenInfo(String access_token){
|
this.access_token = access_token;
|
this.token_type = "bearer";
|
this.refresh_token = access_token;
|
this.expires_in = TokenInfo.EXPRISE_IN;
|
this.scope = "app";
|
}
|
}
|