コード例 #1
0
  @Before
  public void init() throws Exception {

    testKdc = new TestKDC();
    testKdc.startDirectoryService();
    testKdc.startKDC();

    clientSubject = JaasUtil.loginClient();
    serverSubject = JaasUtil.loginServer();
  }
コード例 #2
0
 @After
 public void dispose() throws Exception {
   if (client != null) client.dispose();
   if (server != null) server.dispose();
   if (testKdc != null) testKdc.stopAll();
 }