All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netgrif.application.engine.configuration.security.jwt.JwtProperties Maven / Gradle / Ivy

Go to download

System provides workflow management functions including user, role and data management.

There is a newer version: 6.3.3
Show newest version
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