org.sonar.api.security
Class SecurityRealm

java.lang.Object
  extended by org.sonar.api.security.SecurityRealm
All Implemented Interfaces:
Extension, ServerComponent, ServerExtension

public abstract class SecurityRealm
extends Object
implements ServerExtension

Since:
2.14

Constructor Summary
SecurityRealm()
           
 
Method Summary
 Authenticator doGetAuthenticator()
           
 ExternalGroupsProvider getGroupsProvider()
           
 LoginPasswordAuthenticator getLoginPasswordAuthenticator()
          Deprecated. replaced by doGetAuthenticator in version 3.1
 String getName()
           
 ExternalUsersProvider getUsersProvider()
           
 void init()
          Invoked during server startup and can be used to initialize internal state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityRealm

public SecurityRealm()
Method Detail

getName

public String getName()
Returns:
unique name of this realm, e.g. "ldap"

init

public void init()
Invoked during server startup and can be used to initialize internal state.


getLoginPasswordAuthenticator

@Deprecated
public LoginPasswordAuthenticator getLoginPasswordAuthenticator()
Deprecated. replaced by doGetAuthenticator in version 3.1

Returns:
LoginPasswordAuthenticator associated with this realm, never null

doGetAuthenticator

public Authenticator doGetAuthenticator()
Since:
3.1

getUsersProvider

public ExternalUsersProvider getUsersProvider()
Returns:
ExternalUsersProvider associated with this realm, null if not supported

getGroupsProvider

public ExternalGroupsProvider getGroupsProvider()
Returns:
ExternalGroupsProvider associated with this realm, null if not supported


Copyright © 2009–2015 SonarSource. All rights reserved.