예제 #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);
 }