ZhuDongming
2019-08-08 2d4d397ce9ea8e53d4a63b6463c02a7586fb27ea
src/main/java/com/moral/security/config/JwtSettings.java
@@ -2,14 +2,12 @@
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
@Component
@Configuration
@ConfigurationProperties(prefix = "moral.security.jwt")
public class JwtSettings {
    /**
     * {@link com.moral.security.model.token.JwtToken} will expire after this time.
     * {@link JwtToken} will expire after this time.
     */
    private Integer tokenExpirationTime;
@@ -19,12 +17,12 @@
    private String tokenIssuer;
    
    /**
     * Key is used to sign {@link com.moral.security.model.token.JwtToken}.
     * Key is used to sign {@link JwtToken}.
     */
    private String tokenSigningKey;
    
    /**
     * {@link com.moral.security.model.token.JwtToken} can be refreshed during this timeframe.
     * {@link JwtToken} can be refreshed during this timeframe.
     */
    private Integer refreshTokenExpTime;