public class DirectoryServerManager
extends org.wso2.carbon.core.AbstractAdmin
Constructor and Description |
---|
DirectoryServerManager() |
Modifier and Type | Method and Description |
---|---|
void |
addServer(String serverName,
String serverDescription,
String serverPassword)
Adds a server principle to directory server.
|
void |
changePassword(String serverPrinciple,
String existingPassword,
String newPassword)
Changes the password of a given server principle.
|
String |
getPasswordConformanceRegularExpression()
Gets the regular expression which defines the format of the service principle, password.
|
String |
getServiceNameConformanceRegularExpression()
Gets the regular expression which defines the format of the service principle.
|
boolean |
isExistingServicePrinciple(String servicePrinciple)
This method checks whether give service principle already exists in the LDAP KDC.
|
boolean |
isKDCEnabled()
This method checks whether KDC is enabled.
|
org.wso2.carbon.directory.server.manager.common.ServerPrinciple[] |
listServicePrinciples(String filter)
List service principles, current available in the directory server.
|
void |
removeServer(String serverName)
Removes given server principle.
|
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
public void addServer(String serverName, String serverDescription, String serverPassword) throws DirectoryServerManagerException
serverName
- Name of the server to be added.serverDescription
- Description of the server principle.serverPassword
- Server principle password.DirectoryServerManagerException
- If an error occurred while adding a new server principle.public void removeServer(String serverName) throws DirectoryServerManagerException
serverName
- Name of the server principle to remove.DirectoryServerManagerException
- If an error occurred while adding a new server principle.public void changePassword(String serverPrinciple, String existingPassword, String newPassword) throws DirectoryServerManagerException
serverPrinciple
- Name of the server principle.existingPassword
- Existing password of the server principle.newPassword
- New password of the principle.DirectoryServerManagerException
- If an error occurred while adding a new server principle.public org.wso2.carbon.directory.server.manager.common.ServerPrinciple[] listServicePrinciples(String filter) throws DirectoryServerManagerException
filter
- Filter service principles based on this parameter.DirectoryServerManagerException
- If an error occurred while listing service principles.public boolean isExistingServicePrinciple(String servicePrinciple) throws DirectoryServerManagerException
servicePrinciple
- Name of the service principle.true
if given service principle already exists, else false
.DirectoryServerManagerException
- In case if there is an error while check is being done.public String getPasswordConformanceRegularExpression() throws DirectoryServerManagerException
DirectoryServerManagerException
- If unable to get RealmConfiguration.public String getServiceNameConformanceRegularExpression() throws DirectoryServerManagerException
DirectoryServerManagerException
- If unable to retrieve RealmConfiguration.public boolean isKDCEnabled() throws DirectoryServerManagerException
DirectoryServerManagerException
- If an error occurred while querying user realm.Copyright © 2015 WSO2. All rights reserved.