Class OAuthConsumerDetailsService

java.lang.Object
org.opencastproject.kernel.security.OAuthConsumerDetailsService
All Implemented Interfaces:
org.osgi.service.cm.ManagedService, org.springframework.security.core.userdetails.UserDetailsService, org.springframework.security.oauth.provider.ConsumerDetailsService

public class OAuthConsumerDetailsService extends Object implements org.springframework.security.oauth.provider.ConsumerDetailsService, org.springframework.security.core.userdetails.UserDetailsService, org.osgi.service.cm.ManagedService
A OAuth consumer details service with multiple consumers. UserDetailsService is used for delegating user lookup requests.
  • Constructor Details

    • OAuthConsumerDetailsService

      public OAuthConsumerDetailsService()
  • Method Details

    • setDelegate

      public void setDelegate(org.springframework.security.core.userdetails.UserDetailsService delegate)
      OSGi DI
    • updated

      public void updated(Dictionary<String,?> properties) throws org.osgi.service.cm.ConfigurationException
      Specified by:
      updated in interface org.osgi.service.cm.ManagedService
      Throws:
      org.osgi.service.cm.ConfigurationException
    • loadConsumerByConsumerKey

      public org.springframework.security.oauth.provider.ConsumerDetails loadConsumerByConsumerKey(String key) throws org.springframework.security.oauth.common.OAuthException
      Specified by:
      loadConsumerByConsumerKey in interface org.springframework.security.oauth.provider.ConsumerDetailsService
      Throws:
      org.springframework.security.oauth.common.OAuthException
    • loadUserByUsername

      public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
      Specified by:
      loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsService
      Throws:
      org.springframework.security.core.userdetails.UsernameNotFoundException