Class CoreUserDetailsService

    • Constructor Detail

      • CoreUserDetailsService

        public CoreUserDetailsService()
    • Method Detail

      • loadUserByUsername

        public CoreUserDetails loadUserByUsername​(java.lang.String username)
        Locates the user based on the username

        (see 'activateCatalogVersions' in the corresponding spring configuration)

        Specified by:
        loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsService
        Parameters:
        username - the username presented to the AuthenticationProvider
        Returns:
        a fully populated user record (could be null)
        Throws:
        org.springframework.security.core.userdetails.UsernameNotFoundException - if the user could not be found or the user has no GrantedAuthority
      • isNotAnonymousOrAnonymousLoginIsAllowed

        protected boolean isNotAnonymousOrAnonymousLoginIsAllowed​(User user)
        Tells whether this is not anonymous account or anonymous login is allowed by setting login.anonymous.always.disabled configuration parameter to false.
      • setRolePrefix

        public void setRolePrefix​(java.lang.String rolePrefix)