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 Abstract Methods Concrete Methods Modifier and Type Method Description abstract AuthenticatordoGetAuthenticator()ExternalGroupsProvidergetGroupsProvider()java.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.
-
doGetAuthenticator
public abstract Authenticator doGetAuthenticator()
- Since:
- 3.1, 10.0 this method does not provide a default implementation anymore
-
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
-
-