Class AuthenticationEvaluatorImpl<C extends AbstractCredentialType,​T extends AbstractAuthenticationContext>

    • Field Detail

      • messages

        protected org.springframework.context.support.MessageSourceAccessor messages
    • Constructor Detail

      • AuthenticationEvaluatorImpl

        public AuthenticationEvaluatorImpl()
    • Method Detail

      • setMessageSource

        public void setMessageSource​(org.springframework.context.MessageSource messageSource)
        Specified by:
        setMessageSource in interface org.springframework.context.MessageSourceAware
      • checkEnteredCredentials

        protected abstract void checkEnteredCredentials​(ConnectionEnvironment connEnv,
                                                        T authCtx)
      • supportsAuthzCheck

        protected abstract boolean supportsAuthzCheck()
      • getCredential

        protected abstract C getCredential​(CredentialsType credentials)
      • supportsActivation

        protected abstract boolean supportsActivation()
      • authenticate

        public org.springframework.security.authentication.UsernamePasswordAuthenticationToken authenticate​(ConnectionEnvironment connEnv,
                                                                                                            T authnCtx)
                                                                                                     throws org.springframework.security.authentication.BadCredentialsException,
                                                                                                            org.springframework.security.authentication.AuthenticationCredentialsNotFoundException,
                                                                                                            org.springframework.security.authentication.DisabledException,
                                                                                                            org.springframework.security.authentication.LockedException,
                                                                                                            org.springframework.security.authentication.CredentialsExpiredException,
                                                                                                            org.springframework.security.authentication.AuthenticationServiceException,
                                                                                                            org.springframework.security.access.AccessDeniedException,
                                                                                                            org.springframework.security.core.userdetails.UsernameNotFoundException
        Specified by:
        authenticate in interface AuthenticationEvaluator<C extends AbstractCredentialType>
        Throws:
        org.springframework.security.authentication.BadCredentialsException
        org.springframework.security.authentication.AuthenticationCredentialsNotFoundException
        org.springframework.security.authentication.DisabledException
        org.springframework.security.authentication.LockedException
        org.springframework.security.authentication.CredentialsExpiredException
        org.springframework.security.authentication.AuthenticationServiceException
        org.springframework.security.access.AccessDeniedException
        org.springframework.security.core.userdetails.UsernameNotFoundException
      • checkCredentials

        @NotNull
        public @NotNull FocusType checkCredentials​(ConnectionEnvironment connEnv,
                                                   T authnCtx)
                                            throws org.springframework.security.authentication.BadCredentialsException,
                                                   org.springframework.security.authentication.AuthenticationCredentialsNotFoundException,
                                                   org.springframework.security.authentication.DisabledException,
                                                   org.springframework.security.authentication.LockedException,
                                                   org.springframework.security.authentication.CredentialsExpiredException,
                                                   org.springframework.security.authentication.AuthenticationServiceException,
                                                   org.springframework.security.access.AccessDeniedException,
                                                   org.springframework.security.core.userdetails.UsernameNotFoundException
        Specified by:
        checkCredentials in interface AuthenticationEvaluator<C extends AbstractCredentialType>
        Throws:
        org.springframework.security.authentication.BadCredentialsException
        org.springframework.security.authentication.AuthenticationCredentialsNotFoundException
        org.springframework.security.authentication.DisabledException
        org.springframework.security.authentication.LockedException
        org.springframework.security.authentication.CredentialsExpiredException
        org.springframework.security.authentication.AuthenticationServiceException
        org.springframework.security.access.AccessDeniedException
        org.springframework.security.core.userdetails.UsernameNotFoundException
      • getAndCheckUserPassword

        public String getAndCheckUserPassword​(ConnectionEnvironment connEnv,
                                              String username)
                                       throws org.springframework.security.authentication.AuthenticationCredentialsNotFoundException,
                                              org.springframework.security.authentication.DisabledException,
                                              org.springframework.security.authentication.LockedException,
                                              org.springframework.security.authentication.CredentialsExpiredException,
                                              org.springframework.security.authentication.AuthenticationServiceException,
                                              org.springframework.security.access.AccessDeniedException,
                                              org.springframework.security.core.userdetails.UsernameNotFoundException
        Special-purpose method used for Web Service authentication based on javax.security callbacks. In that case there is no reasonable way how to reuse existing methods. Therefore this method is NOT part of the AuthenticationEvaluator interface. It is mostly a glue to make the old Java security code work.
        Throws:
        org.springframework.security.authentication.AuthenticationCredentialsNotFoundException
        org.springframework.security.authentication.DisabledException
        org.springframework.security.authentication.LockedException
        org.springframework.security.authentication.CredentialsExpiredException
        org.springframework.security.authentication.AuthenticationServiceException
        org.springframework.security.access.AccessDeniedException
        org.springframework.security.core.userdetails.UsernameNotFoundException