114115116117118119120121122
KeyGenerator kgen = KeyGenerator.getInstance(type.cipher); SecretKey skey = kgen.generateKey(); return skey.getEncoded(); } catch (Exception e) { throw new OperationException(Convert.toString( e.getClass().getName(), " -> ", e.getMessage()), e); } }