@Override
    public String format(AuditEvent event) {
        String formatText = super.format(event);

        try {
            return util.encrypt(formatText);
        } catch (InvalidKeyException e) {
            throw new Audit4jRuntimeException("", e);
        } catch (IllegalBlockSizeException e) {
            throw new Audit4jRuntimeException("", e);
        } catch (BadPaddingException e) {
            throw new Audit4jRuntimeException("", e);
        } catch (UnsupportedEncodingException e) {
            throw new Audit4jRuntimeException("", e);
        } catch (InvalidAlgorithmParameterException e) {
            throw new Audit4jRuntimeException("", e);
        } catch (NoSuchAlgorithmException e) {
            throw new Audit4jRuntimeException("", e);
        } catch (NoSuchPaddingException e) {
            throw new Audit4jRuntimeException("", e);
        }
    }
@ Override public String format ( AuditEvent event ) { String formatText = super . format ( event ) ; try { return util . encrypt ( formatText ) ; } catch ( InvalidKeyException e ) { throw new Audit4jRuntimeException ( "" , e ) ; } catch ( IllegalBlockSizeException e ) { throw new Audit4jRuntimeException ( "" , e ) ; } catch ( BadPaddingException e ) { throw new Audit4jRuntimeException ( "" , e ) ; } catch ( UnsupportedEncodingException e ) { throw new Audit4jRuntimeException ( "" , e ) ; } catch ( InvalidAlgorithmParameterException e ) { throw new Audit4jRuntimeException ( "" , e ) ; } catch ( NoSuchAlgorithmException e ) { throw new Audit4jRuntimeException ( "" , e ) ; } catch ( NoSuchPaddingException e ) { throw new Audit4jRuntimeException ( "" , e ) ; } }
/*
(non-Javadoc)

@see
org.audit4j.core.SimpleLayout#format(org.audit4j.core.dto.AuditEvent)