|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.apacheds.impl.ApacheKDCServer
public class ApacheKDCServer
An implementation of the KDC server. This uses KDC server which comes with ApacheDS.
| Field Summary | |
|---|---|
protected LdapContext |
schemaRoot
the context root for the schema |
| Constructor Summary | |
|---|---|
ApacheKDCServer()
|
|
| Method Summary | |
|---|---|
protected Attributes |
getPrincipalAttributes(String sn,
String cn,
String uid,
String userPassword,
String principal)
Convenience method for creating principals. |
void |
init(KdcConfiguration configuration,
LDAPServer ldapServer)
Initializes the KDC server. |
boolean |
isKDCServerStarted()
Says whether KDC server is started or not. |
void |
kerberizePartition(PartitionInfo partitionInfo,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LdapContext schemaRoot
| Constructor Detail |
|---|
public ApacheKDCServer()
| Method Detail |
|---|
public void init(KdcConfiguration configuration,
LDAPServer ldapServer)
throws DirectoryServerException
KDCServer
init in interface KDCServerconfiguration - 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.
DirectoryServerException - If an error occurred during initialization.
public void kerberizePartition(PartitionInfo partitionInfo,
LDAPServer ldapServer)
throws DirectoryServerException
KDCServer
kerberizePartition in interface KDCServerpartitionInfo - Partition configurations.ldapServer - The LDAP server instance which we add the partition.
DirectoryServerException - If an error occurred during operation.
protected Attributes getPrincipalAttributes(String sn,
String cn,
String uid,
String userPassword,
String principal)
cn - the commonName of the personprincipal - the kerberos principal name for the personsn - the surName of the personuid - the unique identifier for the personuserPassword - the credentials of the person
public void start()
throws DirectoryServerException
KDCServer
start in interface KDCServerDirectoryServerException - If an error occurred during startup.public boolean isKDCServerStarted()
KDCServer
isKDCServerStarted in interface KDCServertrue if started else false.
public void stop()
throws DirectoryServerException
KDCServer
stop in interface KDCServerDirectoryServerException - If an error occurred during server termination.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||