org.sonar.api.security
Interface LoginPasswordAuthenticator

All Superinterfaces:
Extension, ServerComponent, ServerExtension

Deprecated. replaced by Authenticator in version 3.1

@Deprecated
public interface LoginPasswordAuthenticator
extends ServerExtension

Since:
1.12
See Also:
SecurityRealm

Method Summary
 boolean authenticate(String username, String password)
          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
 

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:
RuntimeException - if the authenticator can not be initialized at sonar server startup, eg. if the connection to LDAP server is refused

authenticate

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


Copyright © 2009-2013 SonarSource. All Rights Reserved.