org.surfnet.oaaas.config
Class SpringConfiguration
java.lang.Object
org.surfnet.oaaas.config.SpringConfiguration
@Configuration
@PropertySource(value="classpath:apis.application.properties")
@ComponentScan(basePackages="org.surfnet.oaaas.resource")
@ImportResource(value="classpath:spring-repositories.xml")
@EnableTransactionManagement
public class SpringConfiguration
- extends Object
The SpringConfiguration is a Configuration that can be overridden if
you want to plugin your own implementations. Note that the two most likely
candidates to change are the AbstractAuthenticator an
AbstractUserConsentHandler. You can change the implementation by
editing the application.apis.properties file where the implementations are
configured.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringConfiguration
public SpringConfiguration()
dataSource
@Bean
public DataSource dataSource()
flyway
@Bean
public com.googlecode.flyway.core.Flyway flyway()
transactionManager
@Bean
public org.springframework.orm.jpa.JpaTransactionManager transactionManager()
entityManagerFactory
@Bean
public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactory()
oauth2AuthenticationFilter
@Bean
public javax.servlet.Filter oauth2AuthenticationFilter()
oauth2UserConsentFilter
@Bean
public javax.servlet.Filter oauth2UserConsentFilter()
oAuth2Validator
@Bean
public OAuth2Validator oAuth2Validator()
authenticator
@Bean
public AbstractAuthenticator authenticator()
- Returns the
AbstractAuthenticator that is responsible for the
authentication of Resource Owners.
- Returns:
- an
AbstractAuthenticator
userConsentHandler
@Bean
public AbstractUserConsentHandler userConsentHandler()
exceptionTranslator
@Bean
public ExceptionTranslator exceptionTranslator()
validator
@Bean
public javax.validation.Validator validator()
Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.