Example usage for org.springframework.security.authentication AnonymousAuthenticationProvider AnonymousAuthenticationProvider

List of usage examples for org.springframework.security.authentication AnonymousAuthenticationProvider AnonymousAuthenticationProvider

Introduction

In this page you can find the example usage for org.springframework.security.authentication AnonymousAuthenticationProvider AnonymousAuthenticationProvider.

Prototype

public AnonymousAuthenticationProvider(String key) 

Source Link

Usage

From source file:org.opendatakit.configuration.TestBasicSecurityConfiguration.java

@Bean
public AnonymousAuthenticationProvider anonymousProvider() throws ODKDatastoreException, PropertyVetoException {
    AnonymousAuthenticationProvider anonymousProvider = new AnonymousAuthenticationProvider(
            ServerPreferencesPropertiesTable.getSiteKey(testUserServiceConfiguration.callingContext()));

    return anonymousProvider;
}

From source file:org.opendatakit.configuration.SecurityConfiguration.java

@Bean
public AnonymousAuthenticationProvider anonymousProvider() throws ODKDatastoreException, PropertyVetoException {
    AnonymousAuthenticationProvider anonymousProvider = new AnonymousAuthenticationProvider(
            ServerPreferencesPropertiesTable.getSiteKey(userServiceConfiguration.callingContext()));
    return anonymousProvider;
}

From source file:nu.localhost.tapestry5.springsecurity.services.SecurityModule.java

@Marker(SpringSecurityServices.class)
public final AuthenticationProvider buildAnonymousAuthenticationProvider(
        @Inject @Value("${spring-security.anonymous.key}") final String anonymousKey) throws Exception {

    final AnonymousAuthenticationProvider provider = new AnonymousAuthenticationProvider(anonymousKey);
    provider.afterPropertiesSet();/*  w w  w. j a va2s .c o  m*/
    return provider;
}