Пример #1
0
 public void writeObject(Object obj, String algorithm, char[] password, SecureRandom random)
     throws IOException {
   try {
     super.writeObject(new MiscPEMGenerator(obj, algorithm, password, random, provider));
   } catch (NoSuchProviderException e) {
     throw new EncryptionException(e.getMessage(), e);
   }
 }
Пример #2
0
  public void writeObject(Object obj) throws IOException {
    try {
      super.writeObject(new MiscPEMGenerator(obj));
    } catch (PemGenerationException e) {
      if (e.getCause() instanceof IOException) {
        throw (IOException) e.getCause();
      }

      throw e;
    }
  }
Пример #3
0
 public void writeObject(PemObjectGenerator obj) throws IOException {
   super.writeObject(obj);
 }