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 Authenticator
doGetAuthenticator()
ExternalGroupsProvider
getGroupsProvider()
LoginPasswordAuthenticator
getLoginPasswordAuthenticator()
Deprecated.replaced by doGetAuthenticator in version 3.1java.lang.String
getName()
ExternalUsersProvider
getUsersProvider()
void
init()
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:
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
-
-