class JDBCSSHRecordStoreConnection implements SSHRecordStoreConnection {

    @Override
    public int deleteExpiredSSHCertRecords(int expiryTimeMins) {

        int affectedRows;
        final String caller = "deleteExpiredSSHCertRecords";
        
        // make sure we have a valid value specified for expiry time
        
        if (expiryTimeMins <= 0) {
            return 0;
        }
        
        try (PreparedStatement ps = con.prepareStatement(SQL_DELETE_EXPIRED_X509_RECORDS)) {
            ps.setInt(1, expiryTimeMins);
            affectedRows = executeUpdate(ps, caller);
        } catch (SQLException ex) {
            throw sqlError(ex, caller);
        }
        return affectedRows;
    }

    public  JDBCSSHRecordStoreConnection(Connection con);

}