package com.kidgrow.jwt.server.properties;
|
|
import lombok.Data;
|
import lombok.NoArgsConstructor;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
import static com.kidgrow.jwt.server.properties.AuthServerProperties.PREFIX;
|
|
/**
|
* 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
|
*
|
* @Description: 认证服务端 属性<br>
|
* @Project: <br>
|
* @CreateDate: Created in 2020/2/11 13:50 <br>
|
* @Author: <a href="4345453@kidgrow.com">liuke</a>
|
*/
|
@Data
|
@NoArgsConstructor
|
@ConfigurationProperties(prefix = PREFIX)
|
public class AuthServerProperties {
|
public static final String PREFIX = "authentication";
|
|
private TokenInfo user;
|
|
@Data
|
public static class TokenInfo {
|
/**
|
* 过期时间
|
*/
|
private Integer expire = 7200;
|
/**
|
* 加密 服务使用
|
*/
|
private String priKey;
|
/**
|
* 解密
|
*/
|
private String pubKey;
|
}
|
|
}
|