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
 ExternalGroupsProvider getGroupsProvider()
           
abstract  LoginPasswordAuthenticator getLoginPasswordAuthenticator()
           
 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

public abstract LoginPasswordAuthenticator getLoginPasswordAuthenticator()
Returns:
LoginPasswordAuthenticator associated with this realm, never null

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-2012 SonarSource. All Rights Reserved.