Class KerberosUsernamePasswordAuthenticator

    • Constructor Detail

      • KerberosUsernamePasswordAuthenticator

        public KerberosUsernamePasswordAuthenticator​(CommonKerberosConfig config)
    • Method Detail

      • isUserAvailable

        public boolean isUserAvailable​(String username)
        Returns true if user with given username exists in kerberos database
        Parameters:
        username - username without Kerberos realm attached or with correct realm attached
        Returns:
        true if user available
      • validUser

        public boolean validUser​(String username,
                                 String password)
        Returns true if user was successfully authenticated against Kerberos
        Parameters:
        username - username without Kerberos realm attached or with correct realm attached
        password - kerberos password
        Returns:
        true if user was successfully authenticated
      • checkKerberosServerAvailable

        protected void checkKerberosServerAvailable​(LoginException le)
      • checkKerberosUsername

        protected void checkKerberosUsername​(LoginException le)
      • authenticateSubject

        public Subject authenticateSubject​(String username,
                                           String password)
                                    throws LoginException
        Returns true if user was successfully authenticated against Kerberos
        Parameters:
        username - username without Kerberos realm attached
        password - kerberos password
        Returns:
        true if user was successfully authenticated
        Throws:
        LoginException
      • logoutSubject

        public void logoutSubject()
      • createJaasConfiguration

        protected Configuration createJaasConfiguration()