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


Java Encryptors.noOpText方法代码示例

本文整理汇总了Java中org.springframework.security.crypto.encrypt.Encryptors.noOpText方法的典型用法代码示例。如果您正苦于以下问题:Java Encryptors.noOpText方法的具体用法?Java Encryptors.noOpText怎么用?Java Encryptors.noOpText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.springframework.security.crypto.encrypt.Encryptors的用法示例。


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

示例1: testDecryptNonStandardParent

import org.springframework.security.crypto.encrypt.Encryptors; //导入方法依赖的package包/类
@Test
public void testDecryptNonStandardParent() {
	ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext();
	EnvironmentDecryptApplicationInitializer initializer = new EnvironmentDecryptApplicationInitializer(
			Encryptors.noOpText());

	TestPropertyValues.of("key:{cipher}value").applyTo(ctx);

	ApplicationContext ctxParent = mock(ApplicationContext.class);
	when(ctxParent.getEnvironment()).thenReturn(mock(Environment.class));

	ctx.setParent(ctxParent);

	initializer.initialize(ctx);

	assertEquals("value", ctx.getEnvironment().getProperty("key"));
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-commons,代码行数:18,代码来源:EnvironmentDecryptApplicationInitializerTests.java

示例2: getUsersConnectionRepository

import org.springframework.security.crypto.encrypt.Encryptors; //导入方法依赖的package包/类
@Override
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator connectionFactoryLocator) {
    return new JdbcUsersConnectionRepository(
            dataSource,
            connectionFactoryLocator,
            /**
             * The TextEncryptor object encrypts the authorization details of the connection. In
             * our example, the authorization details are stored as plain text.
             * DO NOT USE THIS IN PRODUCTION.
             */
            Encryptors.noOpText()
    );
}
 
开发者ID:eduyayo,项目名称:gamesboard,代码行数:14,代码来源:SocialContext.java

示例3: getUsersConnectionRepository

import org.springframework.security.crypto.encrypt.Encryptors; //导入方法依赖的package包/类
@Override
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator locator) {
    UsersConnectionRepositoryTable.update(dataSource);
    final JdbcUsersConnectionRepository repository = new JdbcUsersConnectionRepository(dataSource,
            locator, Encryptors.noOpText());
    repository.setConnectionSignUp(connectionSignUp);
    return repository;
}
 
开发者ID:music-for-all,项目名称:music-for-all-application,代码行数:9,代码来源:SocialConfig.java

示例4: getUsersConnectionRepository

import org.springframework.security.crypto.encrypt.Encryptors; //导入方法依赖的package包/类
/**
 * Singleton data access object providing access to connections across all users.
 */
@Override
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator connectionFactoryLocator) {
	JdbcUsersConnectionRepository repository = new JdbcUsersConnectionRepository(dataSource, connectionFactoryLocator, Encryptors.noOpText());
	repository.setConnectionSignUp(new OpenTipBotConnectionSignUp(opentipbotUserService, bitcoinService));
	return repository;
}
 
开发者ID:gill3s,项目名称:opentipbot,代码行数:10,代码来源:SocialContext.java

示例5: getUsersConnectionRepository

import org.springframework.security.crypto.encrypt.Encryptors; //导入方法依赖的package包/类
/**
 * Singleton data access object providing access to connections across all users.
 */
@Override
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator connectionFactoryLocator) {
	JdbcUsersConnectionRepository repository = new JdbcUsersConnectionRepository(dataSource, connectionFactoryLocator, Encryptors.noOpText());
	repository.setConnectionSignUp(new SimpleConnectionSignUp());
	return repository;
}
 
开发者ID:yarli4u,项目名称:spring-social-meetup,代码行数:10,代码来源:SocialConfig.java

示例6: getUsersConnectionRepository

import org.springframework.security.crypto.encrypt.Encryptors; //导入方法依赖的package包/类
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator connectionFactoryLocator) {
    return new SocialRedisUsersConnectionRepository(connectionFactoryLocator, Encryptors.noOpText(), socialConnectionRepository);
}
 
开发者ID:Turbots,项目名称:social-redis-spring-boot-starter,代码行数:4,代码来源:SocialRedisConfigurer.java

示例7: textEncryptor

import org.springframework.security.crypto.encrypt.Encryptors; //导入方法依赖的package包/类
private static TextEncryptor textEncryptor() {
    log.debug("New instance of " + TextEncryptor.class);
    return Encryptors.noOpText();
}
 
开发者ID:esutoniagodesu,项目名称:egd-web,代码行数:5,代码来源:SocialConfig.java

示例8: textEncryptor

import org.springframework.security.crypto.encrypt.Encryptors; //导入方法依赖的package包/类
@Bean
public TextEncryptor textEncryptor() {
  return Encryptors.noOpText();
}
 
开发者ID:MikhailErofeev,项目名称:mars-calendar,代码行数:5,代码来源:SocialConfig.java

示例9: get

import org.springframework.security.crypto.encrypt.Encryptors; //导入方法依赖的package包/类
@Override
public TextEncryptor get() {
	return Encryptors.noOpText();
}
 
开发者ID:wastevens,项目名称:ElysiumFrontend,代码行数:5,代码来源:TextEncryptorSupplier.java

示例10: textEncryptor

import org.springframework.security.crypto.encrypt.Encryptors; //导入方法依赖的package包/类
@Bean
public TextEncryptor textEncryptor() {
	return Encryptors.noOpText();
}
 
开发者ID:markoradinovic,项目名称:Vaadin4Spring-MVP-Sample-SpringSecurity,代码行数:5,代码来源:SecurityConfig.java

示例11: SingleTextEncryptorLocator

import org.springframework.security.crypto.encrypt.Encryptors; //导入方法依赖的package包/类
public SingleTextEncryptorLocator(TextEncryptor encryptor) {
	this.encryptor = encryptor == null ? Encryptors.noOpText() : encryptor;
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-config,代码行数:4,代码来源:SingleTextEncryptorLocator.java

示例12: defaultTextEncryptor

import org.springframework.security.crypto.encrypt.Encryptors; //导入方法依赖的package包/类
@Bean
public TextEncryptor defaultTextEncryptor() {
	if (locator != null) {
		return new LocatorTextEncryptor(locator);
	}
	if (StringUtils.hasText(this.key.getKey())) {
		return new EncryptorFactory().create(this.key.getKey());
	}
	return Encryptors.noOpText();
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-config,代码行数:11,代码来源:EncryptionAutoConfiguration.java

示例13: getUsersConnectionRepository

import org.springframework.security.crypto.encrypt.Encryptors; //导入方法依赖的package包/类
@Override
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator connectionFactoryLocator) {
    JdbcUsersConnectionRepository repository = new JdbcUsersConnectionRepository(dataSource,connectionFactoryLocator, Encryptors.noOpText());
    repository.setConnectionSignUp(new AccountConnectionSignUpService(usersDao));
    return repository;
}
 
开发者ID:miosman,项目名称:kotoby,代码行数:7,代码来源:SocialConfig.java

示例14: getUsersConnectionRepository

import org.springframework.security.crypto.encrypt.Encryptors; //导入方法依赖的package包/类
@Override
public UsersConnectionRepository getUsersConnectionRepository(
		ConnectionFactoryLocator connectionFactoryLocator) {
	JdbcUsersConnectionRepository repository = new JdbcUsersConnectionRepository(dataSource, connectionFactoryLocator, Encryptors.noOpText());
	
	/*
	 * To allow implicit signup, uncomment this line 
	 */
	//repository.setConnectionSignUp(new AccountConnectionSignUp(accountRepository));
	
	return repository;
}
 
开发者ID:markoradinovic,项目名称:Vaadin4Spring-MVP-Sample-SpringSecuritySocial,代码行数:13,代码来源:SocialConfig.java

示例15: getUsersConnectionRepository

import org.springframework.security.crypto.encrypt.Encryptors; //导入方法依赖的package包/类
@Override
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator connectionFactoryLocator) {
    return new JpaUsersConnectionRepository(jpaTemplate, connectionFactoryLocator, Encryptors.noOpText());
}
 
开发者ID:chocotan,项目名称:lolibox,代码行数:5,代码来源:SocialConfig.java


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