org.wso2.carbon.apacheds
Interface KDCServer

All Known Implementing Classes:
ApacheKDCServer

public interface KDCServer

This interface represents a KDC (Key Distribution Center) server. Currently we have an apacheDS based KDC server implementation.


Method Summary
 void init(KdcConfiguration configuration, LDAPServer ldapServer)
          Initializes the KDC server.
 boolean isKDCServerStarted()
          Says whether KDC server is started or not.
 void kerberizePartition(PartitionInfo configuration, LDAPServer ldapServer)
          Once we add a new partition to LDAP server we need to make it a kerberos enabled realm.
 void start()
          Starts the KDC server.
 void stop()
          Stops the KDC server.
 

Method Detail

init

void init(KdcConfiguration configuration,
          LDAPServer ldapServer)
          throws DirectoryServerException
Initializes the KDC server.

Parameters:
configuration - Configuration of the KDC server. This includes, host name to use, port numbers to use etc ... *
ldapServer - KDC server also needs a user store to authenticate users. This variable represents the LDAP server which stores users.
Throws:
DirectoryServerException - If an error occurred during initialization.

start

void start()
           throws DirectoryServerException
Starts the KDC server.

Throws:
DirectoryServerException - If an error occurred during startup.

kerberizePartition

void kerberizePartition(PartitionInfo configuration,
                        LDAPServer ldapServer)
                        throws DirectoryServerException
Once we add a new partition to LDAP server we need to make it a kerberos enabled realm. For this we need to add special server principles to newly added partition. Following method will add those new server principles to the given partition.

Parameters:
configuration - Partition configurations.
ldapServer - The LDAP server instance which we add the partition.
Throws:
DirectoryServerException - If an error occurred during operation.

stop

void stop()
          throws DirectoryServerException
Stops the KDC server.

Throws:
DirectoryServerException - If an error occurred during server termination.

isKDCServerStarted

boolean isKDCServerStarted()
Says whether KDC server is started or not.

Returns:
true if started else false.


Copyright © 2015 WSO2. All rights reserved.