public class SwitchToStandaloneAuthenticationService extends SwitchAuthenticationService
Warning: This service should not be used while any ODI application is connected to the ODI repository.
Constructor and Description |
---|
SwitchToStandaloneAuthenticationService(javax.sql.DataSource pMasterDataSource)
Create a SwitchToStandaloneAuthenticationService for the master
repository to which the pMasterDataSource is connected.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMasterAlreadyConfiguredWithStandaloneAuthentication()
Return true if this master repository is already configured with standalone authentication.
|
void |
switchToStandalone(java.lang.String pNewSupervisorUsername,
char[] pSupervisorPasword)
This method will do the actual switch of the repository authentication
configuration to standalone.
|
isMasterAlreadyConfiguredWithExternalAuthentication, validateAuthenticationConfiguration
public SwitchToStandaloneAuthenticationService(javax.sql.DataSource pMasterDataSource)
pMasterDataSource
- the data source to the master repository.public boolean isMasterAlreadyConfiguredWithStandaloneAuthentication() throws AuthenticationConfigurationSwitchingException
AuthenticationConfigurationSwitchingException
- if something goes wrong.public void switchToStandalone(java.lang.String pNewSupervisorUsername, char[] pSupervisorPasword) throws AuthenticationConfigurationSwitchingException
The existing users will be preserved but they will be set as "account expired" user. A new user with pNewSupervisorUsername as username and pSupervisorPasword as password and will be granted SUPERVISOR privileges. The created SUPERVISOR user will be used to manually go and activate the accounts (including setting up passwords) in order for these users to be able to login.
pNewSupervisorUsername
- the supervisor username.pSupervisorPasword
- the supervisor password.AuthenticationConfigurationSwitchingException
- if something goes wrong during the switch.