Interface LoginPasswordAuthenticator

    • Method Detail

      • init

        @Deprecated
        void init()
        Deprecated.
        in 2.14, but was left for backward compatibility - when this authenticator is not a part of SecurityRealm, otherwise has no effect and not invoked
        Throws:
        java.lang.RuntimeException - if the authenticator can not be initialized at sonar server startup, eg. if the connection to LDAP server is refused
      • authenticate

        boolean authenticate​(java.lang.String username,
                             java.lang.String password)
        Deprecated.
        Returns:
        true, if user was successfully authenticated with specified username and password, false otherwise
        Throws:
        java.lang.RuntimeException - in case of unexpected error such as connection failure