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


Java PBEStringEncryptor类代码示例

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


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

示例1: newEncryptor

import org.jasypt.encryption.pbe.PBEStringEncryptor; //导入依赖的package包/类
/**
 * AES algorithm
 * @param passphrase
 * @return
 */
private PBEStringEncryptor newEncryptor(String passphrase) {
  StandardPBEStringEncryptor encryptor = new StandardPBEStringEncryptor();
  encryptor.setPassword(passphrase);
  encryptor.setProvider(PROVIDER);
  encryptor.setAlgorithm(CRYPTO_ALGO);
  return encryptor;
}
 
开发者ID:azkaban,项目名称:azkaban-plugins,代码行数:13,代码来源:CryptoV1_1.java

示例2: stringEncryptor

import org.jasypt.encryption.pbe.PBEStringEncryptor; //导入依赖的package包/类
@Bean
PBEStringEncryptor stringEncryptor(String encryptionKey) {
    StandardPBEStringEncryptor encryptor = new StandardPBEStringEncryptor();
    encryptor.setAlgorithm("PBEWithMD5AndDES");
    encryptor.setKeyObtentionIterations(1000);
    encryptor.setPassword(encryptionKey);

    HibernatePBEEncryptorRegistry.getInstance().registerPBEStringEncryptor("basicStringEncryptor", encryptor);

    return encryptor;
}
 
开发者ID:pivotalsoftware,项目名称:github-cla-integration,代码行数:12,代码来源:RepositoryConfiguration.java

示例3: setTextEncryptor

import org.jasypt.encryption.pbe.PBEStringEncryptor; //导入依赖的package包/类
public void setTextEncryptor(PBEStringEncryptor textEncryptor) {
    this.textEncryptor = textEncryptor;
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:4,代码来源:StoredConfigService.java

示例4: newEncryptor

import org.jasypt.encryption.pbe.PBEStringEncryptor; //导入依赖的package包/类
/**
 * DES algorithm
 * @param passphrase
 * @return
 */
private PBEStringEncryptor newEncryptor(String passphrase) {
  StandardPBEStringEncryptor encryptor = new StandardPBEStringEncryptor();
  encryptor.setPassword(passphrase);
  return encryptor;
}
 
开发者ID:azkaban,项目名称:azkaban-plugins,代码行数:11,代码来源:CryptoV1.java

示例5: setEncryptors

import org.jasypt.encryption.pbe.PBEStringEncryptor; //导入依赖的package包/类
/**
 * Registers the given {@link PBEStringEncryptor PBEStringEncryptors} by name.
 *
 * @param encryptors a map of names and encryptors.
 */
public synchronized void setEncryptors( Map<String, PBEStringEncryptor> encryptors )
{
    INSTANCE.encryptors.putAll( encryptors );
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:10,代码来源:HibernateEncryptorRegistry.java

示例6: getEncryptor

import org.jasypt.encryption.pbe.PBEStringEncryptor; //导入依赖的package包/类
/**
 * Get encryptor from registry by name.
 *
 * @param name the name of the encryptor.
 * @return an instance of {@link PBEStringEncryptor} or null.
 */
public PBEStringEncryptor getEncryptor( String name )
{
    return INSTANCE.encryptors.get( name );
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:11,代码来源:HibernateEncryptorRegistry.java


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