src/com/frohno/pseudossl/PseudoSSLServer.java
/**
     * Sends and encrypts an object
     * @param o the object to be sent
     */
Sends and encrypts an object
@param o the object to be sent
Sends and encrypts an object @param o the object to be sent
public void sendObject(Object o) {
        try {
            outputStream.writeObject(AESEncrypter.encrypt(aESecretKey, ObjectParser.toByteArray(o), iv));
        } catch (SocketException | EOFException ex) {
            System.out.println("Connection reset");
        } catch (IOException ex) {
            ex.printStackTrace();
        }
    }
public void sendObject ( Object o ) { try { outputStream . writeObject ( AESEncrypter . encrypt ( aESecretKey , ObjectParser . toByteArray ( o ) , iv ) ) ; } catch ( SocketException | EOFException ex ) { System . out . println ( "Connection reset" ) ; } catch ( IOException ex ) { ex . printStackTrace ( ) ; } }
Sends and encrypts an object
 @param o the object to be sent
Sends and encrypts an object @param o the object to be sent