當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。