本文整理汇总了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);
}
示例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);
}
示例3: standardPBEBigIntegerEncryptor
import org.jasypt.encryption.pbe.StandardPBEBigIntegerEncryptor; //导入依赖的package包/类
@Bean
public StandardPBEBigIntegerEncryptor standardPBEBigIntegerEncryptor() {
StandardPBEBigIntegerEncryptor sse = new StandardPBEBigIntegerEncryptor();
sse.setConfig(environmentStringPBEConfig());
return sse;
}
示例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");
}
示例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");
}