本文整理匯總了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()
);
}
示例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;
}
示例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;
}
示例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;
}
示例6: getUsersConnectionRepository
import org.springframework.security.crypto.encrypt.Encryptors; //導入方法依賴的package包/類
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator connectionFactoryLocator) {
return new SocialRedisUsersConnectionRepository(connectionFactoryLocator, Encryptors.noOpText(), socialConnectionRepository);
}
示例7: textEncryptor
import org.springframework.security.crypto.encrypt.Encryptors; //導入方法依賴的package包/類
private static TextEncryptor textEncryptor() {
log.debug("New instance of " + TextEncryptor.class);
return Encryptors.noOpText();
}
示例8: textEncryptor
import org.springframework.security.crypto.encrypt.Encryptors; //導入方法依賴的package包/類
@Bean
public TextEncryptor textEncryptor() {
return Encryptors.noOpText();
}
示例9: get
import org.springframework.security.crypto.encrypt.Encryptors; //導入方法依賴的package包/類
@Override
public TextEncryptor get() {
return Encryptors.noOpText();
}
示例10: textEncryptor
import org.springframework.security.crypto.encrypt.Encryptors; //導入方法依賴的package包/類
@Bean
public TextEncryptor textEncryptor() {
return Encryptors.noOpText();
}
示例11: SingleTextEncryptorLocator
import org.springframework.security.crypto.encrypt.Encryptors; //導入方法依賴的package包/類
public SingleTextEncryptorLocator(TextEncryptor encryptor) {
this.encryptor = encryptor == null ? Encryptors.noOpText() : encryptor;
}
示例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();
}
示例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;
}
示例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());
}