code: private static PubkeyElement createPubkeyElement(byte[] bytes, Date date) {
          return new PubkeyElement(new PubkeyElement.PubkeyDataElement(Base64.encode(bytes)), date);
      }
docs: Create a {@link PubkeyElement} which contains the given {@code data} base64 encoded.
  
  @param bytes byte representation of an OpenPGP public key
  @param date date of creation of the element
  @return {@link PubkeyElement} containing the key