Class AccountsServiceWebSecurityConfiguration

java.lang.Object
com.skava.accounts.config.security.AccountsServiceWebSecurityConfiguration
All Implemented Interfaces:
com.skava.core.auth.CustomSecurityConfigurer

@Component public class AccountsServiceWebSecurityConfiguration extends Object implements com.skava.core.auth.CustomSecurityConfigurer
The Class AccountsServiceWebSecurityConfiguration
See Also:
  • Component
  • Constructor Details

    • AccountsServiceWebSecurityConfiguration

      public AccountsServiceWebSecurityConfiguration()
      Default constructor
  • Method Details

    • customConfigure

      public void customConfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity)
      Handles AuthToken and Validates it
      Specified by:
      customConfigure in interface com.skava.core.auth.CustomSecurityConfigurer
      Parameters:
      httpSecurity - - reference for HttpSecurity class
    • getBusinessId

      public Long getBusinessId(Long collectionId)
      Specified by:
      getBusinessId in interface com.skava.core.auth.CustomSecurityConfigurer
      Parameters:
      collectionId - a {link Long object}. Holds collection id
      Returns:
      a {link Long object} .Returns business for the given collection.