com.netgrif.application.engine.configuration.security.jwt.JwtProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.configuration.security.jwt;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.Resource;
@Data
@Configuration
@ConfigurationProperties(prefix = "nae.security.jwt")
public class JwtProperties {
/**
* Defines the validity duration for a token in milliseconds, then expiration dateTime is
* counted using "System.currentTimeMillis() + this.expiration"
*/
private long expiration = 900000;
/**
* Defines path to a file that contains generated private key with certificate
*/
private Resource privateKey;
/**
* Defines which algorithm is used when generating JWT token
*/
private String algorithm = "RSA";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy