org.wso2.carbon.apacheds
Class PartitionInfo

java.lang.Object
  extended by org.wso2.carbon.apacheds.DomainNameEntry
      extended by org.wso2.carbon.apacheds.PartitionInfo

public class PartitionInfo
extends DomainNameEntry

This class encapsulates information needed to create an apacheds partition. root wso2.com false secret randall


Field Summary
 
Fields inherited from class org.wso2.carbon.apacheds.DomainNameEntry
objectClassList
 
Constructor Summary
PartitionInfo()
           
PartitionInfo(String partitionId, String realm, String rootDN, AdminInfo partitionAdministrator)
           
 
Method Summary
 String getAdminDomainName()
          This method will construct the admin domain name for given partition.
 String getLdapServerPrinciplePassword()
           
 AdminInfo getPartitionAdministrator()
           
 String getPartitionId()
           
 String getPartitionKdcPassword()
           
 String getPreferredDomainComponent()
          Usually domain DN of a partition will have a domain component.
 String getRealm()
           
 String getRootDN()
           
 boolean isKdcEnabled()
           
 void setKdcEnabled(boolean kdcEnabled)
           
 void setLdapServerPrinciplePassword(String ldapServerPrinciplePassword)
           
 void setPartitionAdministrator(AdminInfo partitionAdministrator)
           
 void setPartitionId(String partitionId)
           
 void setPartitionKdcPassword(String partitionKdcPassword)
           
 void setRealm(String realm)
           
 void setRootDN(String rootDN)
           
 
Methods inherited from class org.wso2.carbon.apacheds.DomainNameEntry
addObjectClass, getObjectClasses
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionInfo

public PartitionInfo()

PartitionInfo

public PartitionInfo(String partitionId,
                     String realm,
                     String rootDN,
                     AdminInfo partitionAdministrator)
Method Detail

isKdcEnabled

public boolean isKdcEnabled()

setKdcEnabled

public void setKdcEnabled(boolean kdcEnabled)

getPartitionId

public String getPartitionId()

setPartitionId

public void setPartitionId(String partitionId)

getRealm

public String getRealm()

setRealm

public void setRealm(String realm)

getRootDN

public String getRootDN()

setRootDN

public void setRootDN(String rootDN)

getPartitionAdministrator

public AdminInfo getPartitionAdministrator()

setPartitionAdministrator

public void setPartitionAdministrator(AdminInfo partitionAdministrator)

getAdminDomainName

public String getAdminDomainName()
This method will construct the admin domain name for given partition.

Returns:
Will return domain name in the form, uid=aj,dc=example,dc=com

getPreferredDomainComponent

public String getPreferredDomainComponent()
Usually domain DN of a partition will have a domain component. This method will gets the first domain component. E.g :- dc=example,dc=com would return "example" as the domain component.

Returns:
First domain component in the domain name. If dc not found in rootDN will return null.

getPartitionKdcPassword

public String getPartitionKdcPassword()

setPartitionKdcPassword

public void setPartitionKdcPassword(String partitionKdcPassword)

getLdapServerPrinciplePassword

public String getLdapServerPrinciplePassword()

setLdapServerPrinciplePassword

public void setLdapServerPrinciplePassword(String ldapServerPrinciplePassword)


Copyright © 2015 WSO2. All rights reserved.