code: public Key generateSharedKey() throws KeyException {
          javax.crypto.spec.SecretKeySpec sharedKey = null;
          try {
              if (crypto != null) {
                  try {
                      sharedKey = new javax.crypto.spec.SecretKeySpec(AuditCrypto.generate3DESKey(), 0, 24, "DESede");
                  } catch (Exception me) {
                      if (tc.isDebugEnabled())
                          Tr.debug(tc, "me.getMessage: " + me.getMessage());
                  }
              }
  
              if (sharedKey != null) {
                  return sharedKey;
              } else {
                  throw new com.ibm.websphere.crypto.KeyException("Key could not be generated.");
              }
  
          } catch (Exception e) {
              if (tc.isDebugEnabled())
                  Tr.debug(tc, "Error generating key.", new Object[] { e });
  
              if (e instanceof KeyException)
                  throw (KeyException) e;
              else
                  throw new KeyException(e.getMessage(), e);
          }
      }
docs: <p>
  The <code>generateSharedKey</code> method generates and returns a symmetric key
  </p>
  
  @return a Key object