org.surfnet.oaaas.config
Class SpringConfiguration

java.lang.Object
  extended by 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.


Constructor Summary
SpringConfiguration()
           
 
Method Summary
 AbstractAuthenticator authenticator()
          Returns the AbstractAuthenticator that is responsible for the authentication of Resource Owners.
 DataSource dataSource()
           
 org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactory()
           
 ExceptionTranslator exceptionTranslator()
           
 com.googlecode.flyway.core.Flyway flyway()
           
 javax.servlet.Filter oauth2AuthenticationFilter()
           
 javax.servlet.Filter oauth2UserConsentFilter()
           
 OAuth2Validator oAuth2Validator()
           
 org.springframework.orm.jpa.JpaTransactionManager transactionManager()
           
 AbstractUserConsentHandler userConsentHandler()
           
 javax.validation.Validator validator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringConfiguration

public SpringConfiguration()
Method Detail

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.