src/com/frohno/pseudossl/PseudoSSLServer.java
/**
     * Waits for an object, which is then decrypted on arrival
     * @return the decrypted object, which has to be cast by the user to the original type
     */
Waits for an object, which is then decrypted on arrival
@return the decrypted object, which has to be cast by the user to the original type
Waits for an object which is then decrypted on arrival @return the decrypted object which has to be cast by the user to the original type
public Object recieveObject() {
        try {
            return ObjectParser.toObject(AESEncrypter.decrypt(aESecretKey, (SealedObject) inputStream.readObject(), iv));
        } catch (SocketException | EOFException ex) {
            System.out.println("Connection reset");
        } catch (IOException | ClassNotFoundException ex) {
            ex.printStackTrace();
        }
        return null;
    }
public Object recieveObject ( ) { try { return ObjectParser . toObject ( AESEncrypter . decrypt ( aESecretKey , ( SealedObject ) inputStream . readObject ( ) , iv ) ) ; } catch ( SocketException | EOFException ex ) { System . out . println ( "Connection reset" ) ; } catch ( IOException | ClassNotFoundException ex ) { ex . printStackTrace ( ) ; } return null ; }
Waits for an object, which is then decrypted on arrival
 @return the decrypted object, which has to be cast by the user to the original type
Waits for an object which is then decrypted on arrival @return the decrypted object which has to be cast by the user to the original type