Class KDCServerAnnotationProcessor

java.lang.Object
org.jboss.as.test.integration.security.common.KDCServerAnnotationProcessor

public class KDCServerAnnotationProcessor extends Object
Annotation processor for creating Kerberos servers - based on original implementation in ServerAnnotationProcessor. This implementation only adds a workaround for https://issues.apache.org/jira/browse/DIRKRB-85
Use this class together with ExtCreateKdcServer annotation.
Author:
Josef Cacek
See Also:
  • ExtCreateKdcServer
  • Constructor Details

    • KDCServerAnnotationProcessor

      public KDCServerAnnotationProcessor()
  • Method Details

    • getKdcServer

      public static org.apache.directory.server.kerberos.kdc.KdcServer getKdcServer(org.apache.directory.server.core.api.DirectoryService directoryService, int startPort, String address) throws Exception
      Creates and starts KdcServer based on configuration from ExtCreateKdcServer annotation.
      Parameters:
      directoryService -
      startPort - start port number used for searching free ports in case the transport has no port number preconfigured.
      Returns:
      Throws:
      Exception