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

com.ohadr.authentication.config.AuthProperties Maven / Gradle / Ivy

There is a newer version: 2.1-RELEASE
Show newest version
package com.ohadr.authentication.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class AuthProperties
{
	@Value("${com.ohadr.oauth2.token.issuer}")
	private String tokenIssuer;

	@Value("${com.ohadr.oauth2.token.timeToLive}")
	private int tokenTimeToLive;

	@Value("${com.ohadr.oauth2.token.refreshTimeToLive}")
	private int refreshTokenTimeToLive;

	
	public String getTokenIssuer()
	{
		return tokenIssuer;
	}

	public void setTokenIssuer(String tokenIssuer)
	{
		this.tokenIssuer = tokenIssuer;
	}

	public int getTokenTimeToLive()
	{
		return tokenTimeToLive;
	}

	public void setTokenTimeToLive(int tokenTimeToLive)
	{
		this.tokenTimeToLive = tokenTimeToLive;
	}

	public int getRefreshTokenTimeToLive()
	{
		return refreshTokenTimeToLive;
	}

	public void setRefreshTokenTimeToLive(int refreshTokenTimeToLive)
	{
		this.refreshTokenTimeToLive = refreshTokenTimeToLive;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy