code: public byte[] encryptSharedKey(Key sharedKey, Key publicKey) throws java.io.IOException {
          byte[] encryptedSharedKey = null;
          if (sharedKey == null) {
              if (tc.isDebugEnabled()) {
                  Tr.debug(tc, "ERROR!!! shared key is null!");
              }
              return null;
          }
          byte[] encodedPublicKey = publicKey.getEncoded();
          encryptor = new AuditKeyEncryptor(encodedPublicKey);
          byte[] encodedSharedKey = sharedKey.getEncoded();
          encryptedSharedKey = encryptor.encrypt(encodedSharedKey);
          return encryptedSharedKey;
      }
docs: <p>
  The <code>encryptSharedKey</code> method encrypts a symmetric key with a public key.
  </p>
  
  @return an encoded array of bytes representing the encrypted key