当前位置: 首页>>代码示例>>Java>>正文


Java StandardPBEBigIntegerEncryptor类代码示例

本文整理汇总了Java中org.jasypt.encryption.pbe.StandardPBEBigIntegerEncryptor的典型用法代码示例。如果您正苦于以下问题:Java StandardPBEBigIntegerEncryptor类的具体用法?Java StandardPBEBigIntegerEncryptor怎么用?Java StandardPBEBigIntegerEncryptor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


StandardPBEBigIntegerEncryptor类属于org.jasypt.encryption.pbe包,在下文中一共展示了StandardPBEBigIntegerEncryptor类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initEncryption

import org.jasypt.encryption.pbe.StandardPBEBigIntegerEncryptor; //导入依赖的package包/类
private void initEncryption() {
	StandardPBEStringEncryptor strongEncryptor = new StandardPBEStringEncryptor();
	StandardPBEBigDecimalEncryptor bigDecimalEncryptor = new StandardPBEBigDecimalEncryptor();
	StandardPBEBigIntegerEncryptor bigIntegerEncryptor = new StandardPBEBigIntegerEncryptor();

	try {
		String encryptionPassword = environment.getProperty("security.password");
		strongEncryptor.setPassword(encryptionPassword);
		bigDecimalEncryptor.setPassword(encryptionPassword);
		bigIntegerEncryptor.setPassword(encryptionPassword);
	} catch (Exception e) {
		e.printStackTrace();
		throw new RuntimeException("TechyTax properties not found!");
	}

	HibernatePBEEncryptorRegistry registry = HibernatePBEEncryptorRegistry.getInstance();
	registry.registerPBEStringEncryptor("strongHibernateStringEncryptor", strongEncryptor);
	registry.registerPBEBigDecimalEncryptor("bigDecimalEncryptor", bigDecimalEncryptor);
	registry.registerPBEBigIntegerEncryptor("integerEncryptor", bigIntegerEncryptor);
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:21,代码来源:ApplicationContext.java

示例2: initEncryption

import org.jasypt.encryption.pbe.StandardPBEBigIntegerEncryptor; //导入依赖的package包/类
private void initEncryption() {
		StandardPBEStringEncryptor strongEncryptor = new StandardPBEStringEncryptor();
		StandardPBEBigDecimalEncryptor bigDecimalEncryptor = new StandardPBEBigDecimalEncryptor();
		StandardPBEBigIntegerEncryptor bigIntegerEncryptor = new StandardPBEBigIntegerEncryptor();
	
		try {
//			String encryptionPassword = PropsFactory.getProperty("security.password");
//			strongEncryptor.setPassword(encryptionPassword);
//			bigDecimalEncryptor.setPassword(encryptionPassword);
//			bigIntegerEncryptor.setPassword(encryptionPassword);
		} catch (Exception e) {
			e.printStackTrace();
			throw new RuntimeException("TechyTax properties not found!");
		}
	
		HibernatePBEEncryptorRegistry registry = HibernatePBEEncryptorRegistry.getInstance();
		registry.registerPBEStringEncryptor("strongHibernateStringEncryptor", strongEncryptor);
		registry.registerPBEBigDecimalEncryptor("bigDecimalEncryptor", bigDecimalEncryptor);
		registry.registerPBEBigIntegerEncryptor("integerEncryptor", bigIntegerEncryptor);
	}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:21,代码来源:TransactionReaderTest.java

示例3: standardPBEBigIntegerEncryptor

import org.jasypt.encryption.pbe.StandardPBEBigIntegerEncryptor; //导入依赖的package包/类
@Bean
public StandardPBEBigIntegerEncryptor standardPBEBigIntegerEncryptor() {
    StandardPBEBigIntegerEncryptor sse = new StandardPBEBigIntegerEncryptor();
    sse.setConfig(environmentStringPBEConfig());

    return sse;
}
 
开发者ID:bjornharvold,项目名称:bearchoke,代码行数:8,代码来源:EncryptionConfig.java

示例4: StrongIntegerNumberEncryptor

import org.jasypt.encryption.pbe.StandardPBEBigIntegerEncryptor; //导入依赖的package包/类
/**
 * Creates a new instance of <tt>StrongIntegerNumberEncryptor</tt>.
 */
public StrongIntegerNumberEncryptor() {
    super();
    this.encryptor = new StandardPBEBigIntegerEncryptor();
    this.encryptor.setAlgorithm("PBEWithMD5AndTripleDES");
}
 
开发者ID:DiamondLightSource,项目名称:daq-eclipse,代码行数:9,代码来源:StrongIntegerNumberEncryptor.java

示例5: BasicIntegerNumberEncryptor

import org.jasypt.encryption.pbe.StandardPBEBigIntegerEncryptor; //导入依赖的package包/类
/**
 * Creates a new instance of <tt>BasicIntegerNumberEncryptor</tt>.
 */
public BasicIntegerNumberEncryptor() {
    super();
    this.encryptor = new StandardPBEBigIntegerEncryptor();
    this.encryptor.setAlgorithm("PBEWithMD5AndDES");
}
 
开发者ID:DiamondLightSource,项目名称:daq-eclipse,代码行数:9,代码来源:BasicIntegerNumberEncryptor.java


注:本文中的org.jasypt.encryption.pbe.StandardPBEBigIntegerEncryptor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。