/* */ private KeyGenerator initKeyGenerator(String keygenFactoryName) throws DeploymentException
/* */ {
/* */ try
/* */ {
/* 62 */ InitialContext ctx = new InitialContext();
/* 63 */ KeyGeneratorFactory keygenFactory = (KeyGeneratorFactory)ctx.lookup(keygenFactoryName);
/* 64 */ return keygenFactory.getKeyGenerator();
/* */ }
/* */ catch (NamingException e)
/* */ {
/* 68 */ throw new DeploymentException("Could not lookup key generator factory: " + keygenFactoryName, e);
/* */ }