List<WSSecurityEngineResult> results =
secEngine.processSecurityHeader(encryptedDoc, null, callbackHandler, null);
WSSecurityEngineResult actionResult =
WSSecurityUtil.fetchActionResult(results, WSConstants.BST);
BinarySecurity token =
(BinarySecurity)actionResult.get(WSSecurityEngineResult.TAG_BINARY_SECURITY_TOKEN);
Assert.assertTrue(token != null);
Principal principal = (Principal)actionResult.get(WSSecurityEngineResult.TAG_PRINCIPAL);
Assert.assertTrue(principal instanceof KerberosPrincipal);