Package org.sonar.api.security
Interface LoginPasswordAuthenticator
-
@Deprecated @ServerSide @ExtensionPoint public interface LoginPasswordAuthenticator
Deprecated.replaced by Authenticator in version 3.1- Since:
- 1.12
- See Also:
SecurityRealm
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
authenticate(java.lang.String username, java.lang.String password)
Deprecated.void
init()
Deprecated.in 2.14, but was left for backward compatibility - when this authenticator is not a part ofSecurityRealm
, otherwise has no effect and not invoked
-
-
-
Method Detail
-
init
@Deprecated void init()
Deprecated.in 2.14, but was left for backward compatibility - when this authenticator is not a part ofSecurityRealm
, 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
-
-