}
public static class ServerManagersFactory {
public static KeyManager[] getKeyManagers() {
KeyManagersType kmt = new KeyManagersType();
KeyStoreType kst = new KeyStoreType();
kst.setFile("src/test/java/org/apache/cxf/systest/http/resources/Bethal.jks");
kst.setPassword("password");
kst.setType("JKS");
kmt.setKeyStore(kst);
kmt.setKeyPassword("password");
try {
return TLSParameterJaxBUtils.getKeyManagers(kmt);
} catch (Exception e) {
throw new RuntimeException("failed to retrieve key managers", e);
}