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

com.ohadr.crypto.config.CryptoProperties Maven / Gradle / Ivy

The newest version!
package com.ohadr.crypto.config;

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


@Component
public class CryptoProperties
{
	@Value("${com.ohadr.crypto.keystore}")
	private String simpleKeystore;

	@Value("${com.ohadr.crypto.password}")
	private String simplePassword;

	@Value("${com.ohadr.crypto.keyAlias}")
	private String keyAlias;

	@Value("${com.ohadr.crypto.createKeystoreFileIfNotExist}")
	private String createKeystoreFileIfNotExist;

	public String getSimpleKeystore()
	{
		return simpleKeystore;
	}

	public void setSimpleKeystore(String simpleKeystore)
	{
		this.simpleKeystore = simpleKeystore;
	}

	public String getSimplePassword()
	{
		return simplePassword;
	}

	public void setSimplePassword(String simplePassword)
	{
		this.simplePassword = simplePassword;
	}

	public String getKeyAlias() 
	{
		return keyAlias;
	}

	public boolean getCreateKeystoreFileIfNotExist()
	{
		return Boolean.parseBoolean( createKeystoreFileIfNotExist );
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy