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); } }
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; } }
public void writeObject(PemObjectGenerator obj) throws IOException { super.writeObject(obj); }