沈斌
2018-02-02 f9532628a53ab9214dbb1605752f861117d20678
src/main/java/com/moral/security/config/JwtSettings.java
@@ -2,12 +2,14 @@
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 JwtToken} will expire after this time.
     * {@link com.moral.security.model.token.JwtToken} will expire after this time.
     */
    private Integer tokenExpirationTime;
@@ -17,12 +19,12 @@
    private String tokenIssuer;
    
    /**
     * Key is used to sign {@link JwtToken}.
     * Key is used to sign {@link com.moral.security.model.token.JwtToken}.
     */
    private String tokenSigningKey;
    
    /**
     * {@link JwtToken} can be refreshed during this timeframe.
     * {@link com.moral.security.model.token.JwtToken} can be refreshed during this timeframe.
     */
    private Integer refreshTokenExpTime;