Package org.sonar.api.security
Class SecurityRealm
- java.lang.Object
-
- org.sonar.api.security.SecurityRealm
-
@ServerSide @ExtensionPoint public abstract class SecurityRealm extends java.lang.Object
- Since:
- 2.14
-
-
Constructor Summary
Constructors Constructor Description SecurityRealm()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AuthenticatordoGetAuthenticator()ExternalGroupsProvidergetGroupsProvider()LoginPasswordAuthenticatorgetLoginPasswordAuthenticator()Deprecated.replaced by doGetAuthenticator in version 3.1java.lang.StringgetName()ExternalUsersProvidergetUsersProvider()voidinit()Invoked during server startup and can be used to initialize internal state.
-
-
-
Method Detail
-
getName
public java.lang.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:
LoginPasswordAuthenticatorassociated with this realm, never null
-
doGetAuthenticator
public Authenticator doGetAuthenticator()
- Since:
- 3.1
-
getUsersProvider
public ExternalUsersProvider getUsersProvider()
- Returns:
ExternalUsersProviderassociated with this realm, null if not supported
-
getGroupsProvider
public ExternalGroupsProvider getGroupsProvider()
- Returns:
ExternalGroupsProviderassociated with this realm, null if not supported
-
-